Журнал лабораторных работ

Содержание

Журнал

Пятница (02/25/11)

/dev/pts/3
09:55:27
#ls /etc/xen/
scripts/                 xend-config.sxp          xend-pci-quirks.sxp
vm-linux2                xend-pci-permissive.sxp
/dev/pts/4
09:55:27
#ls /etc/xen/vm-linux2
/etc/xen/vm-linux2
/dev/pts/3
09:55:27
#ls /etc/xen/vm-linux2
/etc/xen/vm-linux2
/dev/pts/4
09:56:05
#name = "vm-linux2"
grep: /etc/xen/vm-linux3: No such file or directory
/dev/pts/3
09:56:05
#name = "vm-linux2"
grep: /etc/xen/vm-linux3: No such file or directory
/dev/pts/4
09:56:15
#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"
/dev/pts/3
09:56:15
#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"
/dev/pts/4
09:56:19
#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
/dev/pts/3
09:56:19
#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
/dev/pts/4
09:57:30
#ls /dev/x*
/dev/xconsole
/dev/xen:
evtchn  gntdev
/dev/pts/3
09:57:30
#ls /dev/x*
/dev/xconsole
/dev/xen:
evtchn  gntdev
/dev/pts/4
09:58:20
#grep / | grep hd
^C
/dev/pts/3
09:58:20
#grep / | grep hd
^C
прошло 11 минут
/dev/pts/4
10:09:52
#grep / | grep hd*
^C
/dev/pts/3
10:09:52
#grep / | grep hd*
^C
/dev/pts/4
10:09:58
#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"
/dev/pts/3
10:09:58
#vi /etc/xen/vm-linux2
/dev/pts/4
10:14:18
#what you want them accessible as.
  LV      VG   Attr   LSize  Origin Snap%  Move Log Copy%  Convert
  xen4vol VG0  -wi-ao 60,00g
/dev/pts/3
10:14:18
#what you want them accessible as.
  LV      VG   Attr   LSize  Origin Snap%  Move Log Copy%  Convert
  xen4vol VG0  -wi-ao 60,00g
10:14:26
#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)
/dev/pts/4
10:14:26
#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)
10:14:37
#umount /mnt

/dev/pts/3
10:14:37
#umount /mnt

/dev/pts/4
10:14:50
#cat /var/log/xen/
domain-builder-ng.log  xend.log
xend-debug.log         xen-hotplug.log
/dev/pts/3
10:14:50