Creating partitions on domain U
Hello,
Does a guest (domain U) have the ability to create partitions on a virtual disk drive (/dev/hda1)? For example, can I use parted/fdisk to create my own partitions on a VBD from within domain U?
Also, does the XEN front-end block driver support any IOCTLs? I looked in the code and it explicitely fails all IOCTLs received from the kernel.
Thanks,
Eric
---------------------------------
Do you Yahoo!?
Meet the all-new My Yahoo! – Try it today!
Quoted 3 lines
Does a guest (domain U) have the ability to create partitions on a virtual
disk drive (/dev/hda1)? For example, can I use parted/fdisk to create my
own partitions on a VBD from within domain U?
Yup, should work fine, with the caveat that it's a bit more fiddly viewing these "partitions" in dom0 (unless the VBD corresponds to a whole disk) because it won't be expecting to see partitions in a file / another partition. I don't know what dom0 would make of partitions in LVM volumes.
Quoted 2 lines
Also, does the XEN front-end block driver support any IOCTLs? I looked in the code and it explicitely fails all IOCTLs received from the kernel.
Generic block device IOCTLs will be provided by the kernel (whereas in 2.4 the driver had to do more of this work itself). Anything else (e.g. CD-ROM-specific ioctls) isn't supported.
Cheers,
Mark
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eric Tessler wrote:
| Hello, | | Does a guest (domain U) have the ability to create partitions on a | virtual disk drive (/dev/hda1)? For example, can I use parted/fdisk to | create my own partitions on a VBD from within domain U?
I assume it does, though I haven't tried it. However I would say to export the device as the whole disk (eg /dev/hda) as opposed to a partition (eg /dev/hda1), as parted/fdisk are likely to complain about trying to partion a partion.
- --
Jerome Brown
Technology Architect
Hub.Net
P: +64 3 961-5116
M: +64 29 453 7663
F: +64 3 961-5129
E: [email protected]
W: http://www.hub.net.nz/
O: Level 4, 818 Colombo St, Christchurch, New Zealand
S: PO Box 1879, Christchurch, New Zealand -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFB7cBU4vUJX2iGcHMRArKXAJ4jb5/5Ia3CVkxfQJGRZPDtY0i+WACdHEUz EtTOMAGJ8v5CBZ55L3NQrDA=
=fYOM
-----END PGP SIGNATURE-----
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
Quoted 8 lines · Jerome Brown
| Does a guest (domain U) have the ability to create partitions on a | virtual disk drive (/dev/hda1)? For example, can I use parted/fdisk to | create my own partitions on a VBD from within domain U?I assume it does, though I haven't tried it. However I would say to export the device as the whole disk (eg
/dev/hda) as opposed to a partition (eg/dev/hda1), as parted/fdisk are likely to complain about trying to partion a partion.
even that doesn't work: maybe they partition the device (after heavily complaining about unsupportet ioctls; maybe it's the get-geometry ioctl that isn't correctly implemented, because also "sfdisk -g /dev/hda" fails).
After partitioning, the kernel-re-read-partitiontable ioctl fails.
shutting down domU and "fdisk -lf $vbdlocation" shows it has been partitioned.
booting the domU machine again leads to the following situation: the kernel doesn't see any partitions./proc/partitions shows a strange mapping of minor 0 to /dev/hda0 instead of /dev/hda, no minors are assigned to any partition (but once again, fdisk /dev/hda sees the partitions).
Signature · 8 lines
c u henning ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt