OpenVZ Forum


Home » General » Support » Best way to handle removeable disks?
Best way to handle removeable disks? [message #36899] Tue, 28 July 2009 18:27
divB is currently offline  divB
Messages: 79
Registered: April 2009
Member
Hi again,

I need some removeable disks (USB, FAT/NTFS) inside the VE. The problem is: The device is only plugged to the hardware node when it's used. I do not want to reboot the specific VE each time. Is this possible?

My thoughts:

1.) First I added in /etc/dev/ on the hardware node:
SUBSYSTEM=="block", KERNEL=="sd*1", SUBSYSTEMS=="usb", ATTRS{serial}=="XL0000000139", SYMLINK+="media"


And set:
vzctl --devnodes media:rw --save


First I thought: Great idea! But then I saw that FAT is unsupported inside VE: mount: you must specify the filesystem type Sad

2.) Using bindmounts: I mount the drive first on the host and then use bind mounts inside the VE. This would work if my drive is always connected. But this way it gets very, very difficult.

3.) Using NFS: Export on the hardware node to the VE. Not very cool. Also I need some kind of automounting on the hardware node. While this may somehow be accomplished, unmounting and removing the drive gets hard (only inside the VE0!).

Any ideas?

Regards,
divB
















 
Read Message
Previous Topic: Mounting specific /etc on VEs
Next Topic: Easy networking problem..well..easy for some. :)
Goto Forum:
  


Current Time: Mon Nov 04 11:23:27 GMT 2024

Total time taken to generate the page: 0.03544 seconds