/l3/users/max-public/nt-scale/debian3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 |
|
#vim /etc/xen/xend-config.sxp
--- /tmp/l3-saved-2776.6570.30372 2012-02-23 15:05:13.000000000 +0200 +++ /etc/xen/xend-config.sxp 2012-02-23 15:14:41.000000000 +0200 @@ -146,7 +146,7 @@ # Your default ethernet device is used as the outgoing interface, by default. # To use a different one (e.g. eth1) use # -# (network-script 'network-bridge netdev=eth1') + (network-script 'network-bridge netdev=eth0') # # The bridge is named xenbr0, by default. To rename the bridge, use # |
#ifconfig
![]() eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17085 errors:0 dropped:0 overruns:0 frame:0 TX packets:992 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1424636 (1.3 MiB) TX bytes:139561 (136.2 KiB) eth0.30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:0 RX bytes:5949 (5.8 KiB) TX bytes:6483 (6.3 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:800 (800.0 B) TX bytes:800 (800.0 B) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17085 errors:0 dropped:0 overruns:0 frame:0 TX packets:992 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1424636 (1.3 MiB) TX bytes:139561 (136.2 KiB) eth0.30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:0 RX bytes:5949 (5.8 KiB) TX bytes:6483 (6.3 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:800 (800.0 B) TX bytes:800 (800.0 B) |
#vim /etc/network/interfaces
--- /tmp/l3-saved-2776.7204.11178 2012-02-23 15:14:49.000000000 +0200 +++ /etc/network/interfaces 2012-02-23 15:16:02.000000000 +0200 @@ -2,11 +2,11 @@ # and how to activate them. For more information, see interfaces(5). # The loopback network interface -auto lo eth0.30 eth0.40 +auto lo #eth0.30 eth0.40 iface lo inet loopback # The primary network interface -allow-hotplug eth0 eth0.30 eth0.40 +allow-hotplug eth0 #eth0.30 eth0.40 iface eth0 inet static address 10.0.35.43 netmask 255.255.255.0 @@ -16,10 +16,11 @@ # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.35.1 dns-search unix.nt -iface eth0.30 inet static - address 192.168.30.3 - netmask 255.255.255.0 -iface eth0.40 inet static - address 192.168.40.3 - netmask 255.255.255.0 + +#iface eth0.30 inet static +# address 192.168.30.3 +# netmask 255.255.255.0 +#iface eth0.40 inet static +# address 192.168.40.3 +# netmask 255.255.255.0 |
#/etc/init.d/xend
![]() xend xendomains |
#/etc/init.d/xend restart
![]() Restarting Xen daemons: xend xend. |
#brctl show
![]() bridge name bridge id STP enabled interfaces eth0 8000.0007e90c4511 no peth0 pan0 8000.000000000000 no |
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.0007e90c4511 no peth0 pan0 8000.000000000000 no |
#ifconfig
![]() eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3874 errors:0 dropped:0 overruns:0 frame:0 TX packets:182 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:258363 (252.3 KiB) TX bytes:22012 (21.4 KiB) eth0.30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 ... TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:800 (800.0 B) TX bytes:800 (800.0 B) peth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:32706 errors:0 dropped:6 overruns:0 frame:0 TX packets:1618 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2677056 (2.5 MiB) TX bytes:209280 (204.3 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3874 errors:0 dropped:0 overruns:0 frame:0 TX packets:182 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:258363 (252.3 KiB) TX bytes:22012 (21.4 KiB) eth0.30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 ... TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:800 (800.0 B) TX bytes:800 (800.0 B) peth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:32706 errors:0 dropped:6 overruns:0 frame:0 TX packets:1618 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2677056 (2.5 MiB) TX bytes:209280 (204.3 KiB) |
#ping google.com
![]() PING google.com (173.194.70.101) 56(84) bytes of data. 64 bytes from fa-in-f101.1e100.net (173.194.70.101): icmp_req=1 ttl=50 time=38.5 ms 64 bytes from fa-in-f101.1e100.net (173.194.70.101): icmp_req=2 ttl=50 time=38.6 ms 64 bytes from fa-in-f101.1e100.net (173.194.70.101): icmp_req=3 ttl=50 time=38.4 ms ^C --- google.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 38.458/38.540/38.641/0.177 ms |
#ping google.com
PING google.com (173.194.70.101) 56(84) bytes of data. 64 bytes from fa-in-f101.1e100.net (173.194.70.101): icmp_req=1 ttl=50 time=38.5 ms 64 bytes from fa-in-f101.1e100.net (173.194.70.101): icmp_req=2 ttl=50 time=38.6 ms 64 bytes from fa-in-f101.1e100.net (173.194.70.101): icmp_req=3 ttl=50 time=38.4 ms ^C --- google.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 38.458/38.540/38.641/0.177 ms |
#ls /dev/VG0/vol1
![]() /dev/VG0/vol1 |
#vim /etc/xen/dom1
--- /tmp/l3-saved-2776.13253.31266 2012-02-23 15:27:03.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 15:33:29.000000000 +0200 @@ -8,10 +8,10 @@ #---------------------------------------------------------------------------- # Kernel image file. -kernel = "/boot/vmlinuz-2.6.10-xenU" +kernel = "/boot/vmlinuz-2.6.39-bpo.2-686-pae" # Optional ramdisk. -#ramdisk = "/boot/initrd.gz" +ramdisk = "/boot/initrd.img-2.6.39-bpo.2-686-pae" # The domain build function. Default is 'linux'. #builder='linux' @@ -21,10 +21,10 @@ # WARNING: Creating a domain with insufficient memory may cause out of # memory errors. The domain needs enough memory to boot kernel # and modules. Allocating less than 32MBs is not recommended. -memory = 64 +memory = 128 # A name for your domain. All domains must have different names. -name = "ExampleDomain" +name = "dom1" # 128-bit UUID for the domain. The default behavior is to generate a new UUID # on each call to 'xm create'. @@ -55,7 +55,7 @@ # # vif = [ '', 'bridge=xenbr1' ] -vif = [ '' ] +vif = [ 'bridge=eth0' ] #---------------------------------------------------------------------------- # Define the disk devices you want the domain to have access to, and @@ -64,7 +64,7 @@ # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. -disk = [ 'phy:hda1,hda1,w' ] +disk = [ 'phy:/dev/VG0/vol1,hda1,w' ] #---------------------------------------------------------------------------- # Define frame buffer device. |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Error: Device 0 (vif) could not be connected. Hotplug scripts not working. |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Error: Device 0 (vif) could not be connected. Hotplug scripts not working. |
#brctl show
![]() bridge name bridge id STP enabled interfaces eth0 8000.0007e90c4511 no peth0 pan0 8000.000000000000 no |
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.0007e90c4511 no peth0 pan0 8000.000000000000 no |
#vim /etc/xen/dom1
![]() |
#vim /etc/xen/dom1
--- /tmp/l3-saved-2776.3197.8745 2012-02-23 15:37:12.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 15:38:00.000000000 +0200 @@ -55,7 +55,8 @@ # # vif = [ '', 'bridge=xenbr1' ] -vif = [ 'bridge=eth0' ] +#vif = [ 'bridge=eth0' ] +vif = [] #---------------------------------------------------------------------------- # Define the disk devices you want the domain to have access to, and |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Started domain dom1 (id=2) |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 1033.2 dom1 2 128 1 -b---- 1.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 1033.2 dom1 2 128 1 -b---- 1.1 |
#xm shutdown dom1
![]() |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 1127.8 dom1 2 128 1 -b---- 1.5 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 1127.8 dom1 2 128 1 -b---- 1.5 |
#xm console dom1
![]() [ 0.000000] Reserving virtual address space above 0xf5800000 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011 [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] released 0 pages of unused memory [ 0.000000] Set 0 page(s) to 1-1 mapping. [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable) [ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved) ... - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Check root= (did the system wait for the right device?) - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/hda1 does not exist. Dropping to a shell! BusyBox v1.17.1 (Debian 1:1.17.1-8.1) built-in shell (ash) Enter 'help' for a list of built-in commands. /bin/sh: can't access tty; job control turned off (initramfs) 85s...80s...75s...70s...65s...60s...55s...50s...45s...40s...35s...30s...25s...20s...15s...10s...5s...0s... [ 300.633177] XENBUS: Timeout connecting to device: device/vbd/769 (local state 3, remote state 1) |
#xm console dom1
[ 0.000000] Reserving virtual address space above 0xf5800000 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011 [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] released 0 pages of unused memory [ 0.000000] Set 0 page(s) to 1-1 mapping. [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable) [ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved) ... - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Check root= (did the system wait for the right device?) - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/hda1 does not exist. Dropping to a shell! BusyBox v1.17.1 (Debian 1:1.17.1-8.1) built-in shell (ash) Enter 'help' for a list of built-in commands. /bin/sh: can't access tty; job control turned off (initramfs) 85s...80s...75s...70s...65s...60s...55s...50s...45s...40s...35s...30s...25s...20s...15s...10s...5s...0s... [ 300.633177] XENBUS: Timeout connecting to device: device/vbd/769 (local state 3, remote state 1) |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 1799.7 dom1 2 128 1 -b---- 2.5 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 7038 2 r----- 1799.7 dom1 2 128 1 -b---- 2.5 |
#vim /etc/xen/dom1
--- /tmp/l3-saved-2776.28455.6449 2012-02-23 16:13:54.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 16:18:45.000000000 +0200 @@ -65,7 +65,7 @@ # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. -disk = [ 'phy:/dev/VG0/vol1,hda1,w' ] +disk = [ 'file:/dev/VG0/vol1,hda1,w' ] #---------------------------------------------------------------------------- # Define frame buffer device. |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Error: Device 769 (vbd) could not be connected. /dev/dm-0 does not exist. |
#xm create dom1
![]() Using config file "/etc/xen/dom1". Error: Device 769 (vbd) could not be connected. /dev/dm-0 does not exist. |
#lvdisplay
![]() --- Logical volume --- LV Name /dev/VG0/vol1 VG Name VG0 LV UUID pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex LV Write Access read/write LV Status available # open 0 LV Size 2.00 GiB Current LE 512 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 |
#lvdisplay
--- Logical volume --- LV Name /dev/VG0/vol1 VG Name VG0 LV UUID pS5ghr-UfcZ-CBJz-u1xI-eP7V-vlf4-tpr2ex LV Write Access read/write LV Status available # open 0 LV Size 2.00 GiB Current LE 512 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0 |
#pvdisplay
![]() --- Physical volume --- PV Name /dev/md0 VG Name VG0 PV Size 4.66 GiB / not usable 260.00 KiB Allocatable yes PE Size 4.00 MiB Total PE 1192 Free PE 680 Allocated PE 512 PV UUID s6FIs9-d29s-Csk7-bFtV-U1UP-rIO9-nN2ud9 "/dev/sda6" is a new physical volume of "4.66 GiB" --- NEW Physical volume --- PV Name /dev/sda6 VG Name PV Size 4.66 GiB Allocatable NO PE Size 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID he43Jp-5QUa-uS2V-2clZ-Lhuy-MzdV-0PcTAy |
#pvdisplay
--- Physical volume --- PV Name /dev/md0 VG Name VG0 PV Size 4.66 GiB / not usable 260.00 KiB Allocatable yes PE Size 4.00 MiB Total PE 1192 Free PE 680 Allocated PE 512 PV UUID s6FIs9-d29s-Csk7-bFtV-U1UP-rIO9-nN2ud9 "/dev/sda6" is a new physical volume of "4.66 GiB" --- NEW Physical volume --- PV Name /dev/sda6 VG Name PV Size 4.66 GiB Allocatable NO PE Size 0 Total PE 0 Free PE 0 Allocated PE 0 PV UUID he43Jp-5QUa-uS2V-2clZ-Lhuy-MzdV-0PcTAy |
#md
![]() md5sum mdadm mdatopbm mdeltree mdmon md5sum.textutils mdadm-startall mdel mdir mdu |
#md
![]() md5sum mdadm mdatopbm mdeltree mdmon md5sum.textutils mdadm-startall mdel mdir mdu |
#mdadm
![]() Usage: mdadm --help for help |
#mdadm --help
![]() mdadm is used for building, managing, and monitoring Linux md devices (aka RAID arrays) Usage: mdadm --create device options... Create a new array from unused devices. mdadm --assemble device options... Assemble a previously created array. mdadm --build device options... Create or assemble an array without metadata. mdadm --manage device options... make changes to an existing array. ... Shorthand for --manage. Any parameter that does not start with '-' is treated as a device name or, for --examine-bitmap, a file name. The first such name is often the name of an md device. Subsequent names are often names of component devices. For detailed help on the above major modes use --help after the mode e.g. mdadm --assemble --help For general help on options use mdadm --help-options |
#mdadm --help
mdadm is used for building, managing, and monitoring Linux md devices (aka RAID arrays) Usage: mdadm --create device options... Create a new array from unused devices. mdadm --assemble device options... Assemble a previously created array. mdadm --build device options... Create or assemble an array without metadata. mdadm --manage device options... make changes to an existing array. ... Shorthand for --manage. Any parameter that does not start with '-' is treated as a device name or, for --examine-bitmap, a file name. The first such name is often the name of an md device. Subsequent names are often names of component devices. For detailed help on the above major modes use --help after the mode e.g. mdadm --assemble --help For general help on options use mdadm --help-options |
#cat /proc/mdstat
![]() Personalities : [raid1] md0 : active (auto-read-only) raid1 sda5[0] sdb5[1] 4882692 blocks super 1.2 [2/2] [UU] unused devices: <none> |
#cat /proc/mdstat
Personalities : [raid1] md0 : active (auto-read-only) raid1 sda5[0] sdb5[1] 4882692 blocks super 1.2 [2/2] [UU] unused devices: <none> |
#vim /etc/xen/xend-
![]() |
#vim /etc/xen/xend-
![]() |
#vim /etc/xen/
![]() |
#vim /etc/xen/xend-
![]() |
#vim /etc/xen/
![]() |
#vim /etc/xen/dom1
![]() --- /tmp/l3-saved-2776.26666.14026 2012-02-23 16:21:43.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 16:22:58.000000000 +0200 @@ -65,7 +65,7 @@ # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. -disk = [ 'file:/dev/VG0/vol1,hda1,w' ] +disk = [ 'phy:/dev/VG0/vol1,hda1,w' ] #---------------------------------------------------------------------------- # Define frame buffer device. |
#fdisk -l
![]() Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000b4942 Device Boot Start End Blocks Id System /dev/sda1 1 6079 48827392 83 Linux /dev/sda2 6079 6687 4882432 82 Linux swap / Solaris /dev/sda3 6687 7903 9767520 5 Extended ... I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/md0 doesn't contain a valid partition table Disk /dev/dm-0: 2147 MB, 2147483648 bytes 255 heads, 63 sectors/track, 261 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/dm-0 doesn't contain a valid partition table |
#fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000b4942 Device Boot Start End Blocks Id System /dev/sda1 1 6079 48827392 83 Linux /dev/sda2 6079 6687 4882432 82 Linux swap / Solaris /dev/sda3 6687 7903 9767520 5 Extended ... I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/md0 doesn't contain a valid partition table Disk /dev/dm-0: 2147 MB, 2147483648 bytes 255 heads, 63 sectors/track, 261 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/dm-0 doesn't contain a valid partition table |
#vim /etc/xen/dom1
--- /tmp/l3-saved-2776.2783.15070 2012-02-23 16:27:02.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 16:27:37.000000000 +0200 @@ -65,7 +65,7 @@ # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. -disk = [ 'phy:/dev/VG0/vol1,hda1,w' ] +disk = [ 'phy:/dev/VG0/vol1,sda1,w' ] #---------------------------------------------------------------------------- # Define frame buffer device. @@ -132,7 +132,7 @@ #hostname= "vm%d" % vmid # Set root device. -root = "/dev/hda1 ro" +root = "/dev/sda1 ro" # Root device for nfs. #root = "/dev/nfs" |
#xm console dom1
![]() [ 0.000000] Reserving virtual address space above 0xf5800000 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011 [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] released 0 pages of unused memory [ 0.000000] Set 0 page(s) to 1-1 mapping. [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable) [ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved) ... [ 0.554922] XENBUS: Device with no driver: device/vbd/2049 [ 0.554931] XENBUS: Device with no driver: device/console/0 [ 0.554955] /build/buildd-linux-2.6_2.6.39-3~bpo60+1-i386-zNzAuF/linux-2.6-2.6.39/debian/build/source_i386_none/drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 0.554988] Initializing network drop monitor service [ 0.555255] Freeing unused kernel memory: 440k freed [ 0.556348] Write protecting the kernel text: 2788k [ 0.556715] Write protecting the kernel read-only data: 1036k [ 0.556724] NX-protecting the kernel data: 3356k Loading, please wait... [ 0.588224] udev[45]: starting version 164 |
#xm console dom1
[ 0.000000] Reserving virtual address space above 0xf5800000 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.39-bpo.2-686-pae (Debian 2.6.39-3~bpo60+1) (norbert@tretkowski.de) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Thu Aug 4 11:02:22 UTC 2011 [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] released 0 pages of unused memory [ 0.000000] Set 0 page(s) to 1-1 mapping. [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable) [ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved) ... [ 0.554922] XENBUS: Device with no driver: device/vbd/2049 [ 0.554931] XENBUS: Device with no driver: device/console/0 [ 0.554955] /build/buildd-linux-2.6_2.6.39-3~bpo60+1-i386-zNzAuF/linux-2.6-2.6.39/debian/build/source_i386_none/drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 0.554988] Initializing network drop monitor service [ 0.555255] Freeing unused kernel memory: 440k freed [ 0.556348] Write protecting the kernel text: 2788k [ 0.556715] Write protecting the kernel read-only data: 1036k [ 0.556724] NX-protecting the kernel data: 3356k Loading, please wait... [ 0.588224] udev[45]: starting version 164 |
#vim /etc/xen/dom1
![]() --- /tmp/l3-saved-2776.32019.8443 2012-02-23 16:29:36.000000000 +0200 +++ /etc/xen/dom1 2012-02-23 16:30:32.000000000 +0200 @@ -65,7 +65,7 @@ # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. -disk = [ 'phy:/dev/VG0/vol1,sda1,w' ] +disk = [ 'phy:/dev/VG0/vol1,hda1,w' ] #---------------------------------------------------------------------------- # Define frame buffer device. @@ -132,7 +132,7 @@ #hostname= "vm%d" % vmid # Set root device. -root = "/dev/sda1 ro" +root = "/dev/hda1 ro" # Root device for nfs. #root = "/dev/nfs" |
Personalities : [raid1] md0 : active (auto-read-only) raid1 sda5[0] sdb5[1] 4882692 blocks super 1.2 [2/2] [UU] unused devices: <none>
Время первой команды журнала | 14:04:23 2012- 2-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:29:27 2012- 2-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 7.92 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.93 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008