[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] SWAP on domUs is not mounted.
Tom Brown wrote: On Mon, 26 Feb 2007, kanour-xen wrote:Tom Brown wrote:> - domU disk config: > disk=['phy:/dev/vm_vg/monit1_root,hda1,w', > 'phy:/dev/vm_vg/monit1_swap,hda2,w'] you've exported hda1 and hda2 > - !!!! domU does not have /dev/hda1 /dev/hda2 in /dev directory > Some other commands on domU (monit1): > /etc/fstab > /dev/sda1 / ext3 defaults 1 2 > /dev/sda2 none swap sw 0 0 ... and told it to look for sda1 and sda2 (sda does not match hda) pick one, I don't think it matters which. try swapon /dev/hda2 and see if _that_ works :) then again it may fail due to the missing /dev/hda2 file. -TomSorry, That was just typo. I have both /dev/hda.I was trying hda and even sda. Both do not work. It is strength that domUs do not have it in /dev.Thanks for another advice.ok, what do you see in /sys/block in the domU? e.g. [root@pd3 ~]# ls /sys/block/ loop0/ loop3/ loop6/ ram1/ ram12/ ram15/ ram4/ ram7/ sda1/ loop1/ loop4/ loop7/ ram10/ ram13/ ram2/ ram5/ ram8/ sdb1/ loop2/ loop5/ ram0/ ram11/ ram14/ ram3/ ram6/ ram9/ sdc1/ and in dom0 I have [root@xen5 ~]# xm list | grep pallad palladium 8 2048 2 ------ 5410190.9 [root@xen5 ~]# xm block-list 8(2049 ((virtual-device 2049) (backend-id 0) (state 4) (backend /local/domain/0/backend/vbd/8/2049) (ring-ref 8) (event-channel 9))) (2065 ((virtual-device 2065) (backend-id 0) (state 4) (backend /local/domain/0/backend/vbd/8/2065) (ring-ref 9) (event-channel 10))) (2081 ((virtual-device 2081) (backend-id 0) (state 4) (backend /local/domain/0/backend/vbd/8/2081) (ring-ref 10) (event-channel 11)))it may look a _lot_ different on your box, this is a xen 3.0.0 box :( and it's different on my 3.0.3 boxesbut the /sys/block output should show whether or not your domU has the extra device, and the block-list should show whether or not your dom0 is trying to export the extra device.-Tom Hi Tom. Here is what you wanted. domU monit1:~# ll /sys/block/ total 0 drwxr-xr-x 21 root root 0 2007-02-26 06:55 . drwxr-xr-x 11 root root 0 2007-02-26 06:55 .. drwxr-xr-x 3 root root 0 2007-02-26 06:55 hda1 drwxr-xr-x 3 root root 0 2007-02-26 06:55 hda2 drwxr-xr-x 3 root root 0 2007-02-26 06:55 md0 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram0 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram1 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram10 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram11 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram12 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram13 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram14 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram15 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram2 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram3 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram4 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram5 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram6 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram7 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram8 drwxr-xr-x 2 root root 0 2007-02-26 06:55 ram9 dom0 dom0:~# xm list | grep monit1 monit1 18 256 1 -b---- 4.4 dom0:~# xm block-list monit1 Vdev BE handle state evt-ch ring-ref BE-path 769 0 0 4 6 8 /local/domain/0/backend/vbd/18/769 770 0 0 4 7 9 /local/domain/0/backend/vbd/18/770 What do you think? Is there anything else what I can check? I installed xen 3.0.4_1I have no udev installed on both dom0 and domU (on my running 2nd machine xen 3.0.1 on i386 I have not udev neither). Jiri _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |