[xen-tools-discuss] Defining Partitions
Stéphane Jourdois
sjourdois at gmail.com
Sat Oct 30 18:01:13 CEST 2010
Le 22/10/2010 16:19, Tim Bordemann a écrit :
> Hi,
>
> I'm using XEN 4.0.1 and xen-tools 4.2 on one of my servers.
> I'd like to define several partitions, like root , /boot and swap, so I
> created a file in /etc/xen-tools/partitions.d/ and then created a new vm
> using the --partitions= and --pygrub options.
> Unfortunately the grub configuration was wrong - I had to remove all
> occurrences of "/boot" to get the vm booting:
>
> title Ubuntu 10.04 LTS
> root (hd0,0)
> kernel /boot/vmlinuz-2.6.32-25-server root=/dev/xvda2 ro
> initrd /boot/initrd.img-2.6.32-25-server
>
> My partitions.d/xfs looks like this:
>
> [boot]
> size=200M
> type=ext3
> mountpoint=/boot
> options=defaults
>
> [root]
> size=300G
> type=xfs
> mountpoint=/
> options=defaults
>
> [swap]
> size=4G
> type=swap
>
> Is this a bug or did I forget anything?
Hi,
Both, curiously: You did not order your partitions in "mount" order, and
xen-tools neither did :-) So /foo/bar/boot was mounted before /foo/bar,
and then the former could not be seen...
Just put your "boot" _after_ your "root" partition, and it "should" work.
Proper fix pushed to git if you wish to try it.
Axel will decide to include it in next release and when to release it :-)
Thanks for your report.
Stephane.
--
/// Stephane Jourdois /"\ ASCII RIBBON CAMPAIGN \\\
((( Consultant securite \ / AGAINST HTML MAIL )))
\\\ 157 Bd Davout X ///
\\\ 75020 Paris / \ +33 6 8643 3085 ///
More information about the xen-tools-discuss
mailing list