/l3/users/als/nt-scale/linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 |
|
#ls /etc/xen/
![]() scripts/ xend-config.sxp xend-pci-quirks.sxp vm-linux2 xend-pci-permissive.sxp |
#grep -v ^# /etc/xen/vm-linux2 | grep -vx ''
![]() kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64" memory = 64 name = "vm-linux2" vif = [ 'bridge=eth0' ] disk = [ 'phy:VG0/xen4vol,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
#grep -v ^# /etc/xen/vm-linux2 | grep -vx ''
kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64" memory = 64 name = "vm-linux2" vif = [ 'bridge=eth0' ] disk = [ 'phy:VG0/xen4vol,hda1,w' ] root = "/dev/hda1 ro" extra = "4" |
#lvdisplay
![]() --- Logical volume --- LV Name /dev/VG0/xen4vol VG Name VG0 LV UUID AFYO17-7jci-lEqr-Bwbt-MHCC-cR5e-HmvOQU LV Write Access read/write LV Status available # open 1 LV Size 60,00 GiB Current LE 15360 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:0 |
#lvdisplay
--- Logical volume --- LV Name /dev/VG0/xen4vol VG Name VG0 LV UUID AFYO17-7jci-lEqr-Bwbt-MHCC-cR5e-HmvOQU LV Write Access read/write LV Status available # open 1 LV Size 60,00 GiB Current LE 15360 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:0 |
#vi /etc/xen/vm-linux2
![]() --- /tmp/l3-saved-2766.13464.8528 2011-02-25 11:10:38.000000000 +0200 +++ /etc/xen/vm-linux2 2011-02-25 11:11:24.000000000 +0200 @@ -131,7 +131,7 @@ #hostname= "vm%d" % vmid # Set root device. -root = "/dev/hda1 ro" +root = "/dev/xvda1 ro" # Root device for nfs. #root = "/dev/nfs" |
#what you want them accessible as.
![]() LV VG Attr LSize Origin Snap% Move Log Copy% Convert xen4vol VG0 -wi-ao 60,00g |
#what you want them accessible as.
LV VG Attr LSize Origin Snap% Move Log Copy% Convert xen4vol VG0 -wi-ao 60,00g |
#mount
![]() /dev/sda1 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) fusectl on /sys/fs/fuse/connections type fusectl (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) xenfs on /proc/xen type xenfs (rw) /dev/mapper/VG0-xen4vol on /mnt type ext3 (rw) |
#mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) fusectl on /sys/fs/fuse/connections type fusectl (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) xenfs on /proc/xen type xenfs (rw) /dev/mapper/VG0-xen4vol on /mnt type ext3 (rw) |
#umount /mnt
![]() |