[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] vbdmount: a script to mount/umount virtual disks


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Alain Barthe <ab266061@xxxxxxxxx>
  • Date: Sun, 8 Feb 2009 16:37:20 +0100
  • Delivery-date: Sun, 08 Feb 2009 07:38:36 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=uU7rzptRzeaHX1o4pvxLQ7OwdfEOVw5PzvVkjwZAaprNMs9PJWFfDRBrzeI47D12Nv fub0T3RMirBUhy55JESuVw9NsbEjpWpn1Wh5YZ7Lon5wkfKlbgUfqhsAan+eOWihh2bd REWtBClY7tROIJJazD9mPuHlJO59t/HfAwe7Y=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello xen users,

I wrote a script to mount/umount virtual disks. It sets up needed parttions and/or LVM,
looks for a fstab inside the virtual disks and then mounts partitions according to it.
It is useful to modify a domU (fix configuration, install packages, ...) while it is off.

It can be found at http://www.albar.fr/downloads/vbdmount.py
The documentation is at http://www.albar.fr/vbdmount_html/index.html

Here is the usage:

Usages:
        vbdmount.py [-v] [-o mount-opts] { -f config-file | -b block-device }[:path-to-mount] mount-point'
        vbdmount.py [-v] -u mount-point

Mounts one or more virtual block devices, expressed either as a string (flag
-b) or as a domU configuration file (flag -f).

options:
  -h, --help            show this help message and exit
  -o MOUNTOPTS, --mount-options=MOUNTOPTS
                        Options to be passed to the mount command
  -f CONFIGFILE, --domu-config-file=CONFIGFILE
                        A domU configuration file
  -b VBD, --block-device=VBD
                        A virtual block device path (file or LV or raw device)
  -u, --umount          Unmounts the mounted virtual block device
  -v, --verbose         Prints a verbose output


Any feedback will be appreciated, particularly for non standard configuration that does not work.

Enjoy.

Alain.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.