/l3/users/tigor/nt-scale/linux3.unix.nt/root :1 :2 :3 :4 :5 :6 |
|
#apt-get install aoetools
Читання переліків пакетів... Виконано Побудова дерева залежностей Reading state information... Виконано НОВІ пакунки, які будуть встановлені: aoetools оновлено 0, встановлено 1 нових пакунків, для видалення відмічено 0 пакунків, і 10 пакунків не оновлено. Необхідно завантажити 35,6 kB архівів. After this operation, 168 kB of additional disk space will be used. Отр:1 http://10.0.35.1/debian/ squeeze/main aoetools amd64 30-3 [35,6 kB] Отримано 35,6 kB за 0sB (1 149 kB/s) Selecting previously deselected package aoetools. (Reading database ... 130422 files and directories currently installed.) Unpacking aoetools (from .../aoetools_30-3_amd64.deb) ... Processing triggers for man-db ... Setting up aoetools (30-3) ... Starting AoE devices discovery and mounting AoE filesystems: not started. |
#aoe-discover
![]() aoe-discover: /dev/etherd/discover does not exist or is not writeable. |
#modprobe aoe
|
#aoe-discover
|
#aoe-stat
e1.1 42.949GB eth1,eth0 up |
#vim /etc/xen/xend-config.sxp
--- /tmp/l3-saved-19387.30490.22048 2011-02-25 16:17:31.000000000 +0200 +++ /etc/xen/xend-config.sxp 2011-02-25 16:18:06.000000000 +0200 @@ -61,7 +61,7 @@ #(xend-unix-server no) #(xend-tcp-xmlrpc-server no) #(xend-unix-xmlrpc-server yes) -#(xend-relocation-server no) +(xend-relocation-server yes) #(xend-relocation-ssl-server no) #(xend-udev-event-server no) |
#(xend-relocation-server yes) neobhodima dlya migratsii!
![]() bash: syntax error near unexpected token `neobhodima' |
#(xend-relocation-server yes) neobhodima dlya migratsii!
![]() bash: syntax error near unexpected token `neobhodima' |
#/etc/xen/xend-config.sxp eto pravitsya zdes!
![]() bash: /etc/xen/xend-config.sxp: Permission denied |
#/etc/xen/xend-config.sxp eto pravitsya zdes!
![]() bash: /etc/xen/xend-config.sxp: Permission denied |
#xm create -c vm-linux1
Using config file "/etc/xen/vm-linux1". Started domain vm-linux1 (id=20) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro 4 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls ... Processing triggers for man-db ... Setting up console-terminus (4.30-2) ... Setting up xkb-data (1.8-2) ... Setting up keyboard-configuration (1.68) ... Setting up console-setup (1.68) ... Setting up cmatrix (1.2a-4) ... Setting up kbd (1.15.2-2) ... Setting console screen modes. Skipping font and keymap setup (handled by console-setup). root@vm-linux1:~# cmatrix |
#ping 192.168.15.101
![]() PING 192.168.15.101 (192.168.15.101) 56(84) bytes of data. 64 bytes from 192.168.15.101: icmp_req=1 ttl=64 time=8.23 ms 64 bytes from 192.168.15.101: icmp_req=2 ttl=64 time=0.131 ms ^C --- 192.168.15.101 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.131/4.181/8.232/4.051 ms |
#ping 192.168.15.101
PING 192.168.15.101 (192.168.15.101) 56(84) bytes of data. 64 bytes from 192.168.15.101: icmp_req=1 ttl=64 time=8.23 ms 64 bytes from 192.168.15.101: icmp_req=2 ttl=64 time=0.131 ms ^C --- 192.168.15.101 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.131/4.181/8.232/4.051 ms |
#ssh root@192.168.15.101
![]() The authenticity of host '192.168.15.101 (192.168.15.101)' can't be established. RSA key fingerprint is da:0b:87:93:f6:37:3e:f4:12:14:46:72:46:d7:64:4f. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.101' (RSA) to the list of known hosts. root@192.168.15.101's password: Linux vm-linux1 2.6.32-5-xen-amd64 #1 SMP Wed Jan 12 05:46:49 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Feb 25 14:21:11 2011 from 192.168.15.2 root@vm-linux1:~# cmatrix |
#ssh root@192.168.15.101
The authenticity of host '192.168.15.101 (192.168.15.101)' can't be established. RSA key fingerprint is da:0b:87:93:f6:37:3e:f4:12:14:46:72:46:d7:64:4f. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.101' (RSA) to the list of known hosts. root@192.168.15.101's password: Linux vm-linux1 2.6.32-5-xen-amd64 #1 SMP Wed Jan 12 05:46:49 UTC 2011 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Feb 25 14:21:11 2011 from 192.168.15.2 root@vm-linux1:~# cmatrix |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 6239 2 r----- 1050.5 vm-linux1 20 512 1 -b---- 7.6 vm1 1 128 1 -b---- 0.6 vm10 2 124 1 -b---- 0.5 vm11 3 124 1 -b---- 0.5 vm12 4 124 1 -b---- 0.5 vm13 5 124 1 -b---- 0.5 vm14 6 124 1 -b---- 0.5 vm15 7 124 1 -b---- 0.5 ... vm18 10 124 1 -b---- 0.5 vm19 11 124 1 -b---- 0.5 vm2 12 124 1 -b---- 0.5 vm20 13 124 1 -b---- 0.5 vm3 14 124 1 -b---- 0.5 vm4 15 124 1 -b---- 0.5 vm5 16 124 1 -b---- 0.5 vm6 17 124 1 -b---- 0.5 vm7 18 124 1 -b---- 0.5 vm8 19 124 1 -b---- 0.5 |
#xm --live migrate vm-linux1 192.168.15.2
![]() Error: Subcommand --live not found! Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. Common 'xm' commands: console Attach to <Domain>'s console. vncviewer Attach to <Domain>'s VNC server. create Create a domain based on <ConfigFile>. new Adds a domain to Xend domain management delete Remove a domain from Xend domain management. destroy Terminate a domain immediately. ... unpause Unpause a paused domain. uptime Print uptime for all/some domains. usb-add Add the usb device to FV VM. usb-del Delete the usb device to FV VM. vcpu-set Set the number of active VCPUs for allowed for the domain. <Domain> can either be the Domain Name or Id. For more help on 'xm' see the xm(1) man page. For more help on 'xm create' see the xmdomain.cfg(5) man page. For a complete list of subcommands run 'xm help'. |
#xm migrate --live vm-linux1 192.168.15.2
|
#xm migrate --live vm-linux1 192.168.15.2
|
#apt-cache search ganeti
ganeti-htools - Cluster allocation tools for Ganeti ganeti-instance-debootstrap - debootstrap-based instance OS definition for ganeti ganeti2 - Cluster-based virtualization management software |
#apt-cache search heartbeat
cluster-agents - The reusable cluster components for Linux HA ldirectord - Monitors virtual services provided by LVS drbd8-utils - RAID 1 over tcp/ip for Linux utilities hapm - light and fast high availability port monitor heartbeat-dev - Subsystem for High-Availability Linux - development files heartbeat - Subsystem for High-Availability Linux libheartbeat2-dev - Subsystem for High-Availability Linux (development files) libheartbeat2 - Subsystem for High-Availability Linux (libraries) ipvsadm - Linux Virtual Server support programs pacemaker-dev - HA cluster resource manager (development files) pacemaker - HA cluster resource manager |
#apt-cache search stonith
|
#apt-file update
Downloading complete file http://10.0.35.1:9999/debian/dists/squeeze/Contents-amd64.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 16.4M 100 16.4M 0 0 2056k 0 0:00:08 0:00:08 --:--:-- 2221k Ignoring source without Contents File: http://security.debian.org/dists/squeeze/updates/Contents-amd64.gz Downloading complete file http://10.0.35.1:9999/debian/dists/squeeze-updates/Contents-amd64.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 Download of http://10.0.35.1:9999/debian/dists/squeeze-updates/Contents-amd64.gz failed Command exited with code 22 |
#apt-file update
Downloading Index http://10.0.35.1:9999/debian/dists/squeeze/Contents-amd64.diff/Index: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 Download of http://10.0.35.1:9999/debian/dists/squeeze/Contents-amd64.diff/Index failed Command exited with code 22 Downloading complete file http://10.0.35.1:9999/debian/dists/squeeze/Contents-amd64.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 File is up-to-date. Ignoring source without Contents File: http://security.debian.org/dists/squeeze/updates/Contents-amd64.gz Downloading complete file http://10.0.35.1:9999/debian/dists/squeeze-updates/Contents-amd64.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 Download of http://10.0.35.1:9999/debian/dists/squeeze-updates/Contents-amd64.gz failed Command exited with code 22 |
#vim /etc/apt/sources.list
--- /tmp/l3-saved-19387.23984.30360 2011-02-25 17:07:01.000000000 +0200 +++ /etc/apt/sources.list 2011-02-25 17:07:10.000000000 +0200 @@ -5,10 +5,10 @@ #deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official Snapshot amd64 LIVE/INSTALL Binary 20110206-06:35]/ squeeze main deb http://10.0.35.1:9999/debian/ squeeze main -deb-src http://10.0.35.1:9999/debian/ squeeze main - -deb http://security.debian.org/ squeeze/updates main -deb-src http://security.debian.org/ squeeze/updates main - -deb http://10.0.35.1:9999/debian/ squeeze-updates main -deb-src http://10.0.35.1:9999/debian/ squeeze-updates main +#deb-src http://10.0.35.1:9999/debian/ squeeze main +# +#deb http://security.debian.org/ squeeze/updates main +#deb-src http://security.debian.org/ squeeze/updates main +# +#deb http://10.0.35.1:9999/debian/ squeeze-updates main +#deb-src http://10.0.35.1:9999/debian/ squeeze-updates main |
#apt-get update
В кеші http://10.0.35.1 squeeze Release.gpg Ігн http://10.0.35.1/debian/ squeeze/main Translation-en В кеші http://10.0.35.1/debian/ squeeze/main Translation-uk В кеші http://10.0.35.1 squeeze Release Ігн http://10.0.35.1 squeeze/main amd64 Packages В кеші http://10.0.35.1 squeeze/main amd64 Packages Читання переліків пакетів... Виконано |
#apt-file search stonith
cluster-glue: /usr/lib/stonith/plugins/external/drac5 cluster-glue: /usr/lib/stonith/plugins/external/dracmc-telnet cluster-glue: /usr/lib/stonith/plugins/external/hmchttp cluster-glue: /usr/lib/stonith/plugins/external/ibmrsa cluster-glue: /usr/lib/stonith/plugins/external/ibmrsa-telnet cluster-glue: /usr/lib/stonith/plugins/external/ipmi cluster-glue: /usr/lib/stonith/plugins/external/ippower9258 cluster-glue: /usr/lib/stonith/plugins/external/kdumpcheck cluster-glue: /usr/lib/stonith/plugins/external/rackpdu cluster-glue: /usr/lib/stonith/plugins/external/riloe ... pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-1.scores pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-1.xml pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-2.dot pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-2.exp pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-2.scores pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-2.xml pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-3.dot pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-3.exp pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-3.scores pacemaker-dev: /usr/share/pacemaker/tests/pengine/test10/stonith-3.xml |
#apt-cache show pacemaker
Package: pacemaker Priority: optional Section: admin Installed-Size: 2972 Maintainer: Debian HA Maintainers <debian-ha-maintainers@lists.alioth.debian.org> Architecture: amd64 Version: 1.0.9.1+hg15626-1 Replaces: pacemaker-heartbeat, pacemaker-openais Depends: libbz2-1.0, libc6 (>= 2.4), libcluster-glue, libcorosync4 (>= 1.2.1), libesmtp5 (>= 0.8.8), libglib2.0-0 (>= 2.24.0), libgnutls26 (>= 2.7.14-0), libheartbeat2 (>= 1:3.0.3), libltdl7 (>= 2.2.6b), libncurses5 (>= 5.7+20100313), libpam0g (>= 0.99.7.1), libsnmp15 (>= 5.4.3~dfsg), libssl0.9.8 (>= 0.9.8m-1), libuuid1 (>= 2.16), libxml2 (>= 2.7.4), libxslt1.1 (>= 1.1.25), python (<< 2.7), python Conflicts: pacemaker-heartbeat, pacemaker-openais ... well as Corosync. . Pacemaker supports a very sophisticated dependency model for n-node clusters and can respond to node and resource-level failures. . It supports both the Heartbeat and Corosync cluster stacks. Homepage: http://clusterlabs.org/ Python-Version: 2.6 Tag: admin::cluster, implemented-in::c, interface::commandline, interface::daemon, network::hiavailability, qa::low-popcon, qa::old-rc-bugs, role::program, uitoolkit::ncurses |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 6239 2 r----- 4097.9 vm-linux1 23 512 1 -b---- 78.2 vm1 1 128 1 -b---- 1.2 vm10 2 124 1 -b---- 1.1 vm11 3 124 1 -b---- 1.1 vm12 4 124 1 -b---- 1.1 vm13 5 124 1 -b---- 1.1 vm14 6 124 1 -b---- 1.1 vm15 7 124 1 -b---- 1.1 ... vm18 10 124 1 -b---- 1.1 vm19 11 124 1 -b---- 1.1 vm2 12 124 1 -b---- 1.1 vm20 13 124 1 -b---- 1.1 vm3 14 124 1 -b---- 1.1 vm4 15 124 1 -b---- 1.1 vm5 16 124 1 -b---- 1.1 vm6 17 124 1 -b---- 1.1 vm7 18 124 1 -b---- 1.1 vm8 19 124 1 -b---- 1.1 |
#xm console
![]() Error: 'xm console' requires between 1 and 3 arguments. Usage: xm console [-q|--quiet] <Domain> Attach to <Domain>'s console. -q, --quiet Do not print an error message if the domain does not exist |
#xm console vm1
[ 9872.555597] Setting capacity to 4194304 [11577.047802] net eth1: xennet_release_rx_bufs: fix me for copying receiver. [11630.292801] net eth1: xennet_release_rx_bufs: fix me for copying receiver. Debian GNU/Linux 6.0 vm-linux3 hvc0 vm-linux3 login: Debian GNU/Linux 6.0 vm-linux3 hvc0 vm-linux3 login: root Password: root@vm-linux3:~# cat /dev/zero > /dev/null |
#xm top
|
#Mem: 8379580k total, 8375140k used, 4440k free CPUs: 2 @ 2133MHz
![]() bash: q: command not found |
#xm --help | less
|
#xm sched-credit -c 10
Error: No domain given. Usage: xm sched-credit [-d <Domain> [-w[=WEIGHT]|-c[=CAP]]] Get/set credit scheduler parameters. -d DOMAIN, --domain=DOMAIN Domain to modify -w WEIGHT, --weight=WEIGHT Weight (int) -c CAP, --cap=CAP Cap (int) |
#xm top
|
#Mem: 8379580k total, 8375140k used, 4440k free CPUs: 2 @ 2133MHz
Name ID Mem VCPUs State Time(s) Domain-0 0 6239 2 r----- 4308.5 vm-linux1 23 512 1 -b---- 81.0 vm1 1 128 1 ------ 96.1 vm10 2 124 1 -b---- 1.2 vm11 3 124 1 -b---- 1.2 vm12 4 124 1 -b---- 1.1 vm13 5 124 1 -b---- 1.1 vm14 6 124 1 -b---- 1.2 vm15 7 124 1 -b---- 1.2 ... vm18 10 124 1 -b---- 1.1 vm19 11 124 1 -b---- 1.1 vm2 12 124 1 -b---- 1.1 vm20 13 124 1 -b---- 1.2 vm3 14 124 1 -b---- 1.1 vm4 15 124 1 -b---- 1.1 vm5 16 124 1 -b---- 1.2 vm6 17 124 1 -b---- 1.1 vm7 18 124 1 -b---- 1.1 vm8 19 124 1 -b---- 1.1 |
#xm vcpu-set
![]() Error: 'xm vcpu-set' requires 2 arguments. Usage: xm vcpu-set <Domain> <vCPUs> Set the number of active VCPUs for allowed for the domain. |
#xm vcpu-set vm1 2
![]() Error: Cannot set vcpus greater than max vcpus on running domain Usage: xm vcpu-set <Domain> <vCPUs> Set the number of active VCPUs for allowed for the domain. |
#vim /etc/xen/vm2
--- /tmp/l3-saved-19387.13392.2835 2011-02-25 17:12:53.000000000 +0200 +++ /etc/xen/vm2 2011-02-25 17:12:59.000000000 +0200 @@ -1,5 +1,6 @@ kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64" +vcpus=2 memory = 128 name = "vm2" vif = [ 'bridge=eth0' ] |
#xm shutdown vm2
|
#xm console vm2
![]() Error: Domain 'vm2' does not exist. |
#xm create -c vm2
Using config file "/etc/xen/vm2". [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro 4 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls [ 0.000000] ACPI in unprivileged domain disabled ... fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good aperfmperf pni ssse3 cx16 hypervisor lahf_lm bogomips : 4266.71 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: |
#cat /etc/xen/vm2
kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64" vcpus=2 memory = 128 name = "vm2" vif = [ 'bridge=eth0' ] disk = [ 'phy:NEWVG/vm2,xvda1,w' ] root = "/dev/xvda1 ro" extra = "4" |
#xm shutdown vm2
|
#xm create -c vm2 extra='privet=vsem'
Using config file "/etc/xen/vm2". Started domain vm2 (id=25) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro privet=vsem [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls ... SHELL=/bin/sh PWD=/ previous=N LINES=24 TZ=Etc/UTC rootmnt=/root VERBOSE=no root@vm-linux3:~# exit logout Debian GNU/Linux 6.0 vm-linux3 hvc0 |
#xm shutdown vm2
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 6239 2 r----- 4950.3 vm-linux1 23 512 1 -b---- 88.5 vm1 1 128 1 ------ 133.5 vm10 2 124 1 -b---- 1.3 vm11 3 124 1 -b---- 1.3 vm12 4 124 1 -b---- 1.2 vm13 5 124 1 -b---- 1.2 vm14 6 124 1 -b---- 1.3 vm15 7 124 1 -b---- 1.3 vm16 8 124 1 -b---- 1.2 vm17 9 124 1 -b---- 1.2 vm18 10 124 1 -b---- 1.2 vm19 11 124 1 -b---- 1.2 vm20 13 124 1 -b---- 1.3 vm3 14 124 1 -b---- 1.2 vm4 15 124 1 -b---- 1.2 vm5 16 124 1 -b---- 1.3 vm6 17 124 1 -b---- 1.2 vm7 18 124 1 -b---- 1.2 vm8 19 124 1 -b---- 1.2 |
#xm create -c vm2 extra='init=/bin/bash'
Using config file "/etc/xen/vm2". Started domain vm2 (id=27) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro init=/bin/bash [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls ... Cleaning up temporary files.... Setting kernel variables ...done. Configuring network interfaces...done. Cleaning up temporary files.... INIT: Entering runlevel: 2 Using makefile-style concurrent boot in runlevel 2. Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: cron. Starting OpenBSD Secure Shell server: sshd. Debian GNU/Linux 6.0 vm-linux3 hvc0 |
#xm shutdown vm3
Error: Domain 'vm3' does not exist. |
#xm shutdown vm2
|
#xm create -c vm2 extra='1'
Using config file "/etc/xen/vm2". Started domain vm2 (id=28) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro 1 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls ... root@vm-linux3:~# root@vm-linux3:~# root@vm-linux3:~# root@vm-linux3:~# INIT: Sending processes the KILL signal Using makefile-style concurrent boot in runlevel 2. Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: cron. Starting OpenBSD Secure Shell server: sshd. Debian GNU/Linux 6.0 vm-linux3 hvc0 |
#xm create -c vm2
Using config file "/etc/xen/vm2". Started domain vm2 (id=29) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro 4 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls ... Stopping enhanced syslogd: rsyslogd. Saving the system clock. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Deconfiguring network interfaces...done. Cleaning up ifupdown.... Deactivating swap...done. Will now halt. [ 32.266186] xenbus_dev_shutdown: device/console/0: Initialising != Connected, skipping [ 32.655543] System halted. |
#xm create -c vm2 vcpus=16
Using config file "/etc/xen/vm2". Started domain vm2 (id=30) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro 4 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls ... Stopping enhanced syslogd: rsyslogd. Saving the system clock. Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. Deconfiguring network interfaces...done. Cleaning up ifupdown.... Deactivating swap...done. Will now halt. [ 177.156443] xenbus_dev_shutdown: device/console/0: Initialising != Connected, skipping [ 177.490846] System halted. |
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller 02:00.0 Ethernet controller: Atheros Communications L1 Gigabit Ethernet (rev b0) 03:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) |
#mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported eth1: negotiated 1000baseT-FD flow-control, link ok |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bb:37 inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bb37/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1680212 errors:0 dropped:0 overruns:0 frame:0 TX packets:598518 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1742768454 (1.6 GiB) TX bytes:1663502109 (1.5 GiB) eth1 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link ... TX packets:1053 errors:0 dropped:2 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 B) TX bytes:89317 (87.2 KiB) vif9.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1050 errors:0 dropped:3 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 B) TX bytes:88520 (86.4 KiB) |
#ifconfig -a | less
|
#less /var/log/messages
|
#find /sys -name e1000
/sys/bus/pci/drivers/e1000 /sys/module/e1000 |
#find /sys -name e1000
/sys/bus/pci/drivers/e1000 /sys/module/e1000 |
#ls /sys/bus/pci/drivers/e1000
0000:03:01.0 bind module new_id remove_id uevent unbind |
#lspci
00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller 02:00.0 Ethernet controller: Atheros Communications L1 Gigabit Ethernet (rev b0) 03:01.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) |
#lspci -n
00:00.0 0600: 8086:29a0 (rev 02) 00:02.0 0300: 8086:29a2 (rev 02) 00:1a.0 0c03: 8086:2834 (rev 02) 00:1a.1 0c03: 8086:2835 (rev 02) 00:1a.7 0c03: 8086:283a (rev 02) 00:1b.0 0403: 8086:284b (rev 02) 00:1c.0 0604: 8086:283f (rev 02) 00:1c.1 0604: 8086:2841 (rev 02) 00:1d.0 0c03: 8086:2830 (rev 02) 00:1d.1 0c03: 8086:2831 (rev 02) 00:1d.2 0c03: 8086:2832 (rev 02) 00:1d.7 0c03: 8086:2836 (rev 02) 00:1e.0 0604: 8086:244e (rev f2) 00:1f.0 0601: 8086:2810 (rev 02) 00:1f.2 0101: 8086:2820 (rev 02) 00:1f.3 0c05: 8086:283e (rev 02) 00:1f.5 0101: 8086:2825 (rev 02) 01:00.0 0101: 197b:2368 02:00.0 0200: 1969:1048 (rev b0) 03:01.0 0200: 8086:100e (rev 02) |
#find /sys -name \*03:01.0\*
/sys/devices/pci0000:00/0000:00:1e.0/0000:03:01.0 /sys/bus/pci/devices/0000:03:01.0 /sys/bus/pci/drivers/e1000/0000:03:01.0 |
#echo -n 0000:03:01.0 > /sys/bus/pci/drivers/e1000/unbind
|
#echo -n 0000:03:01.0 > /sys/bus/pci/drivers/pciback/new_slot
|
#echo -n 0000:03:01.0 > /sys/bus/pci/drivers/pciback/bind
|
#vim /etc/xen/vm3
|
#~
![]() scripts/ vm18 vm9 vm1 vm19 vm-linux1 vm10 vm2 vm-linux3 vm11 vm20 winxp3 vm12 vm3 xend-config.sxp vm13 vm4 xend-pci-permissive.sxp vm14 vm5 xend-pci-quirks.sxp vm15 vm6 xmexample.hvm vm16 vm7 vm17 vm8 |
#vim /etc/xen/vm-linux
![]() |
#~
# # The backend listens on 127.0.0.1 port 5900+N by default, where N is # the domain ID. You can override both address and N: # # vfb = [ 'vnc=1,vnclisten=127.0.0.1,vncdisplay=1' ] # # Or you can bind the first unused port above 5900: # # vfb = [ 'vnc=1,vnclisten=0.0.0.0,vncunused=1' ] # ... # - result of 'scsi_id -gu -s'. # ex. # scsi_id -gu -s /block/sdb # 36000b5d0006a0000006a0257004c0000 # # VDEV gives virtual SCSI device by 4-tuples (XX:XX:XX:XX) as # which the specified guest domain recognize. # #vscsi = [ '/dev/sdx, 0:0:0:0' ] #============================================================================ 210,1 99% |
#xm create -c vm3
Using config file "/etc/xen/vm3". Started domain vm3 (id=31) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-30) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed Jan 12 05:46:49 UTC 2011 [ 0.000000] Command line: root=/dev/xvda1 ro 4 [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] Centaur CentaurHauls ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. Starting the hotplug events dispatcher: udevd[ 1.649216] udev[139]: starting version 164 . Synthesizing the initial hotplug events...done. Waiting for /dev to be fully populated...[ 1.888186] udev[150]: renamed network interface eth0 to eth0-eth1 [ 1.923538] input: PC Speaker as /devices/platform/pcspkr/input/input1 [ 2.043569] Error: Driver 'pcspkr' is already registered, aborting... |
#xm top
|
#Mem: 8379580k total, 8247696k used, 131884k free CPUs: 2 @ 2133MHz
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 6239 2 r----- 6395.2 vm-linux1 23 512 1 -b---- 100.9 vm1 1 128 1 ------ 226.1 vm10 2 124 1 -b---- 1.5 vm11 3 124 1 -b---- 1.5 vm12 4 124 1 -b---- 1.4 vm13 5 124 1 -b---- 1.5 vm14 6 124 1 -b---- 1.5 vm15 7 124 1 -b---- 1.5 vm16 8 124 1 -b---- 1.5 vm17 9 124 1 -b---- 1.4 vm18 10 124 1 -b---- 1.5 vm19 11 124 1 -b---- 1.5 vm20 13 124 1 -b---- 1.5 vm3 31 128 1 -b---- 1.7 vm4 15 124 1 -b---- 1.4 vm5 16 124 1 -b---- 1.5 vm6 17 124 1 -b---- 1.5 vm7 18 124 1 -b---- 1.4 vm8 19 124 1 -b---- 1.4 |
#tail /var/log/messages
Feb 25 17:33:08 linux3 kernel: [ 7066.086228] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore. Feb 25 17:33:08 linux3 kernel: [ 7066.086233] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore. Feb 25 17:33:08 linux3 kernel: [ 7066.086237] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore. Feb 25 17:33:08 linux3 kernel: [ 7066.086241] physdev match: using --physdev-out in the OUTPUT, FORWARD and POSTROUTING chains for non-bridged traffic is not supported anymore. Feb 25 17:33:08 linux3 kernel: [ 7066.335407] pciback: vpci: 0000:03:01.0: assign to virtual slot 0 Feb 25 17:33:10 linux3 kernel: [ 7067.820803] pciback 0000:03:01.0: enabling device (0000 -> 0003) Feb 25 17:33:10 linux3 kernel: [ 7067.820817] xen_allocate_pirq: returning irq 21 for gsi 21 Feb 25 17:33:10 linux3 kernel: [ 7067.820825] Already setup the GSI :21 Feb 25 17:33:10 linux3 kernel: [ 7067.820829] pciback 0000:03:01.0: PCI INT A -> GSI 21 (level, low) -> IRQ 21 Feb 25 17:33:10 linux3 kernel: [ 7067.906834] blkback: ring-ref 9, event-channel 9, protocol 1 (x86_64-abi) |
#tail /var/log/xen/xen
![]() xend-debug.log xend.log xen-hotplug.log |
#tail /var/log/xen/xen
![]() xend-debug.log xend.log xen-hotplug.log |
#tail /var/log/xen/xend.log
[2011-02-25 17:33:09 21029] DEBUG (DevController:139) Waiting for devices vfb. [2011-02-25 17:33:09 21029] DEBUG (DevController:139) Waiting for devices console. [2011-02-25 17:33:09 21029] DEBUG (DevController:144) Waiting for 0. [2011-02-25 17:33:09 21029] DEBUG (DevController:139) Waiting for devices pci. [2011-02-25 17:33:09 21029] DEBUG (DevController:144) Waiting for 0. [2011-02-25 17:33:09 21029] DEBUG (DevController:139) Waiting for devices tap2. [2011-02-25 17:33:09 21029] DEBUG (DevController:139) Waiting for devices tap. [2011-02-25 17:33:09 21029] DEBUG (DevController:139) Waiting for devices vusb. [2011-02-25 17:33:09 21029] DEBUG (DevController:139) Waiting for devices vtpm. [2011-02-25 17:33:09 21029] INFO (XendDomain:1206) Domain vm3 (31) unpaused. |
#apt-cache search proxmox
|
kernel = "/boot/vmlinuz-2.6.32-5-xen-amd64" ramdisk = "/boot/initrd.img-2.6.32-5-xen-amd64" vcpus=2 memory = 128 name = "vm2" vif = [ 'bridge=eth0' ] disk = [ 'phy:NEWVG/vm2,xvda1,w' ] root = "/dev/xvda1 ro" extra = "4"
Время первой команды журнала | 15:13:52 2011- 2-25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:44:34 2011- 2-25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 89 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.36 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.37 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.91 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.63 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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