Rudi Ahlers
2008-Sep-17 13:32 UTC
[Xen-users] is it possible to mount a domU''s LVM partition in dom0 ?
Hi all, I''m trying to create a tar.gz image of a domU VM, but have had no luck in mounting the domU''s partition in dom0 I have tried mounting it, but keep on getting an error: [root@saturn ~]# mount -o loop /dev/System/newcpanel /newcpanel/ mount: you must specify the filesystem type [root@saturn ~]# So, the question is, how exactly do I mount it in dom0? -- Kind Regards Rudi Ahlers _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nemeth, Tamas
2008-Sep-17 13:41 UTC
Re: [Xen-users] is it possible to mount a domU''s LVM partition in dom0 ?
Please do the two following things: 1. Issue the following command in the dom0: xm list --long <NAME_OF_THE_DOMU> (And send the output in mail.) 2. Issue the following command in the (running ;) domU: cat /proc/mounts (And send the output in mail.) 2008. 09. 17, szerda keltezéssel 15.32-kor Rudi Ahlers ezt írta:> Hi all, > > I''m trying to create a tar.gz image of a domU VM, but have had no luck > in mounting the domU''s partition in dom0 > > I have tried mounting it, but keep on getting an error: > > [root@saturn ~]# mount -o loop /dev/System/newcpanel /newcpanel/ > mount: you must specify the filesystem type > [root@saturn ~]# > > > > So, the question is, how exactly do I mount it in dom0? > > -- > > Kind Regards > Rudi Ahlers > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Haxby
2008-Sep-17 13:57 UTC
Re: [Xen-users] is it possible to mount a domU''s LVM partition in dom0 ?
Rudi Ahlers wrote:> I''m trying to create a tar.gz image of a domU VM, but have had no luck > in mounting the domU''s partition in dom0 > > I have tried mounting it, but keep on getting an error: > > [root@saturn ~]# mount -o loop /dev/System/newcpanel /newcpanel/ > mount: you must specify the filesystem type > [root@saturn ~]## kpartx -v -a /dev/System/newcpanel This will create as many entries in /dev/mapper as there are partitions in /dev/System/newcpanel. You can then mount these or activate the embedded logical volume as necessary if /dev/System/newcpanel is a file rather than a logical volume or similar, then you''ll need to make it into a device with losetup. kpartx is nothing to do with kde or X :-) jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nemeth, Tamas
2008-Sep-17 14:18 UTC
Re: [Xen-users] is it possible to mount a domU''s LVM partition in dom0 ?
Please issue two more commands in the domU: fdisk -l /dev/xvda cat /etc/fstab And finally, some kpartx magic may be the solution, indeed. 2008. 09. 17, szerda keltezéssel 15.55-kor Rudi Ahlers ezt írta:> > > On Wed, Sep 17, 2008 at 3:41 PM, Nemeth, Tamas <nice@titanic.nyme.hu> > wrote: > Please do the two following things: > > 1. Issue the following command in the dom0: > xm list --long <NAME_OF_THE_DOMU> > (And send the output in mail.) > > 2. Issue the following command in the (running ;) domU: > cat /proc/mounts > (And send the output in mail.) > > > 1. > > root@venus ~]# xm list --long wiseguy > (domain > (domid 8) > (uuid fd3df09f-4f67-3740-974a-6b87408a5812) > (vcpus 1) > (cpu_weight 1.0) > (memory 512) > (shadow_memory 0) > (maxmem 512) > (bootloader /usr/bin/pygrub) > (features ) > (name wiseguy) > (on_poweroff destroy) > (on_reboot restart) > (on_crash restart) > (image > (linux > (ramdisk /var/lib/xen/boot_ramdisk.oOP5t3) > (kernel /var/lib/xen/boot_kernel.krkOns) > (args ''ro root=/dev/VolGroup00/LogVol00 console=xvc0'') > ) > ) > (device > (vif > (backend 0) > (script vif-bridge) > (bridge xenbr0) > (mac 00:16:3e:0f:0a:8e) > ) > ) > (device > (vbd > (backend 0) > (dev xvda:disk) > (uname phy:/dev/backup/wiseguy) > (mode w) > ) > ) > (state -b----) > (shutdown_reason poweroff) > (cpu_time 12.382073884) > (online_vcpus 1) > (up_time 1571.13343596) > (start_time 1221658923.02) > (store_mfn 1220573) > (console_mfn 1220572) > ) > [root@venus ~]# > > > > > > > 2. > > [root@wiseguy ~]# cat /proc/mounts > rootfs / rootfs rw 0 0 > /dev/root / ext3 rw,data=ordered 0 0 > /dev /dev tmpfs rw 0 0 > /proc /proc proc rw 0 0 > /sys /sys sysfs rw 0 0 > none /selinux selinuxfs rw 0 0 > /proc/bus/usb /proc/bus/usb usbfs rw 0 0 > devpts /dev/pts devpts rw 0 0 > /dev/xvda1 /boot ext3 rw,data=ordered 0 0 > tmpfs /dev/shm tmpfs rw 0 0 > none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 > sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0 > /etc/auto.misc /misc autofs > rw,fd=6,pgrp=1321,timeout=300,minproto=5,maxproto=5,indirect 0 0 > -hosts /net autofs > rw,fd=11,pgrp=1321,timeout=300,minproto=5,maxproto=5,indirect 0 0 > > > > > > -- > > Kind Regards > Rudi Ahlers >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rudi Ahlers
2008-Sep-17 14:33 UTC
Re: [Xen-users] is it possible to mount a domU''s LVM partition in dom0 ?
On Wed, Sep 17, 2008 at 4:18 PM, Nemeth, Tamas <nice@titanic.nyme.hu> wrote:> Please issue two more commands in the domU: > > fdisk -l /dev/xvda > cat /etc/fstab > > And finally, some kpartx magic may be the solution, indeed. > >root@wiseguy ~]# fdisk -l /dev/xvda Disk /dev/xvda: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/xvda1 * 1 13 104391 83 Linux /dev/xvda2 14 1305 10377990 8e Linux LVM [root@wiseguy ~]# cat /etc/fstab /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 -- Kind Regards Rudi Ahlers _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users