/l3/users/sftsrv/drbd/debian2.tech.net/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 :26 :27 :28 |
|
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 972.4 domu1 4 64 1 -b---- 0.9 domu2 16 64 1 -b---- 0.1 |
#xm console domu2
![]() TCP reno registered audit: initializing netlink socket (disabled) audit(1204120817.911:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key CC2BD0441CE3C337 - User ID: CentOS (Kernel Module GPG key) ... setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#xm console domu2
TCP reno registered audit: initializing netlink socket (disabled) audit(1204120817.911:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key CC2BD0441CE3C337 - User ID: CentOS (Kernel Module GPG key) ... setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#xm console domu2
![]() TCP reno registered audit: initializing netlink socket (disabled) audit(1204120822.139:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key CC2BD0441CE3C337 - User ID: CentOS (Kernel Module GPG key) ... setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#xm console domu2
TCP reno registered audit: initializing netlink socket (disabled) audit(1204120822.139:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key CC2BD0441CE3C337 - User ID: CentOS (Kernel Module GPG key) ... setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#xm console domu2
![]() Error: Domain 'domu2' does not exist. |
#xm console domu2
![]() Error: Domain 'domu2' does not exist. |
#xm console domu2
![]() Error: Domain 'domu2' does not exist. |
#xm console domu2
![]() Error: Domain 'domu2' does not exist. |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 975.8 domu1 4 64 1 -b---- 0.9 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 975.8 domu1 4 64 1 -b---- 0.9 |
#mount /dev/vg00/domu2 /mnt/domu2/
![]() |
#mount /dev/vg00/domu2 /mnt/domu2/
|
#mc
![]() |
#mc
|
#xm mem-set 4 120
![]() uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. Error: memory_dynamic_max must be less than or equal to memory_static_max Usage: xm mem-set <Domain> <Mem> Set the current memory usage for a domain. |
#xm mem-set 4 120
![]() Error: memory_dynamic_max must be less than or equal to memory_static_max Usage: xm mem-set <Domain> <Mem> Set the current memory usage for a domain. |
#xm mem-set 4 60
![]() start Start a Xend managed domain suspend Suspend a Xend managed domain top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. |
#xm mem-set 4 60
|
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 983.2 domu1 4 60 1 -b---- 1.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 983.2 domu1 4 60 1 -b---- 1.1 |
#xm mem-set 4 64
![]() |
#xm mem-set 4 64
|
#xm mem-set 4 40
![]() start Start a Xend managed domain suspend Suspend a Xend managed domain top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. |
#xm mem-set 4 40
|
#mkdir /mnt/domu2/{dev,proc,etc}
![]() unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. mkdir: Не вдається створити каталог `/mnt/domu2/dev': File exists mkdir: Не вдається створити каталог `/mnt/domu2/proc': File exists mkdir: Не вдається створити каталог `/mnt/domu2/etc': File exists |
#mkdir /mnt/domu2/{dev,proc,etc}
![]() mkdir: Не вдається створити каталог `/mnt/domu2/dev': File exists mkdir: Не вдається створити каталог `/mnt/domu2/proc': File exists mkdir: Не вдається створити каталог `/mnt/domu2/etc': File exists |
#less /etc/xen/domu1
|
#for i in console null zero ; do /sbin/MAKEDEV -d /mnt/domu2/dev -x $i ; done
![]() unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. /sbin/MAKEDEV: don't know how to make device "/mnt/domu2/dev" /sbin/MAKEDEV: don't know how to make device "/mnt/domu2/dev" /sbin/MAKEDEV: don't know how to make device "/mnt/domu2/dev" |
#for i in console null zero ; do /sbin/MAKEDEV -d /mnt/domu2/dev -x $i ; done
![]() /sbin/MAKEDEV: don't know how to make device "/mnt/domu2/dev" /sbin/MAKEDEV: don't know how to make device "/mnt/domu2/dev" /sbin/MAKEDEV: don't know how to make device "/mnt/domu2/dev" |
#mount
![]() For a complete list of subcommands run 'xm help'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. /dev/sda1 on / type ext3 (rw) 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) procbususb on /proc/bus/usb type usbfs (rw) 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) rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) nfsd on /proc/fs/nfsd type nfsd (rw) /dev/mapper/vg00-domu2 on /mnt/domu2 type ext3 (rw) |
#mount
/dev/sda1 on / type ext3 (rw) 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) procbususb on /proc/bus/usb type usbfs (rw) 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) rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) nfsd on /proc/fs/nfsd type nfsd (rw) /dev/mapper/vg00-domu2 on /mnt/domu2 type ext3 (rw) |
#man xmdomain.cfg
|
#mcedit /mnt/domu2/etc/fstab
|
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 998.6 domu1 4 40 1 -b---- 1.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 998.6 domu1 4 40 1 -b---- 1.1 |
#xm vcpus
![]() Error: Subcommand vcpus not found! Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. Common 'xm' commands: console Attach to <Domain>'s console. 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. dump-core Dump core for a specific domain. ... suspend Suspend a Xend managed domain top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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 vcpus
![]() Error: Subcommand vcpus not found! Usage: xm <subcommand> [args] Control, list, and manipulate Xen guest instances. Common 'xm' commands: console Attach to <Domain>'s console. 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. dump-core Dump core for a specific domain. ... suspend Suspend a Xend managed domain top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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 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
![]() 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 list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1000.5 domu1 4 40 1 -b---- 1.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1000.5 domu1 4 40 1 -b---- 1.1 |
#xm vcpu-set 4 2
![]() |
#xm vcpu-set 4 2
|
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1000.8 domu1 4 40 1 -b---- 1.1 |
#umount /mnt/domu2
![]() start Start a Xend managed domain suspend Suspend a Xend managed domain top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. |
#umount /mnt/domu2
![]() |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1000.8 domu1 4 40 1 -b---- 1.1 |
#vi /etc/xen/domu1
![]() --- /tmp/l3-saved-23137.12708.28109 2008-02-27 16:05:17.000000000 +0200 +++ /etc/xen/domu1 2008-02-27 16:05:28.000000000 +0200 @@ -36,7 +36,7 @@ #cpus = "0-3,5,^1" # run on cpus 0,2,3,5 # Number of Virtual CPUS to use, default is 1 -#vcpus = 1 +vcpus = 2 #---------------------------------------------------------------------------- # Define network interfaces. |
#vi /etc/xen/domu1
|
#xm shutdown domu1
![]() |
#xm shutdown domu1
|
#xm create domu2
![]() top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. Using config file "/etc/xen/domu2". Started domain domu2 |
#xm create domu2
Using config file "/etc/xen/domu2". Started domain domu2 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1005.1 domu1 4 40 1 -b---- 2.8 domu2 19 64 1 -b---- 0.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1005.1 domu1 4 40 1 -b---- 2.8 domu2 19 64 1 -b---- 0.1 |
#xm console domu2
![]() TCP reno registered audit: initializing netlink socket (disabled) audit(1204121135.786:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key CC2BD0441CE3C337 - User ID: CentOS (Kernel Module GPG key) ... setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#xm console domu2
TCP reno registered audit: initializing netlink socket (disabled) audit(1204121135.786:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API ksign: Installing public key data Loading keyring - Added public key CC2BD0441CE3C337 - User ID: CentOS (Kernel Module GPG key) ... setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1006.9 domu2 20 64 1 -b---- 0.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1006.9 domu2 20 64 1 -b---- 0.1 |
#xm console domu2
![]() Creating block device nodes. Loading uhci-hcd.ko module USB Universal Host Controller Interface driver v3.0 Loading ohci-hcd.ko module Loading ehci-hcd.ko module Scanning and configuring dmraid supported devices Creating root device. mkrootdev: expected fs options Mounting root filesystem. mount: missing mount point ... setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#xm console domu2
ard=c0727000 soft=c0707000 PID hash table entries: 512 (order: 9, 2048 bytes) Xen reported: 2327.498 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Software IO TLB disabled vmalloc area: c5000000-f4ffe000, maxmem 2d7fe000 Memory: 56044k/73728k available (2049k kernel code, 9432k reserved, 844k data, 168k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. ... setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1007.0 domu2 20 64 1 -b---- 0.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1007.0 domu2 20 64 1 -b---- 0.1 |
#xm create domu1
![]() top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. Using config file "/etc/xen/domu1". Started domain domu1 |
#xm create domu1
Using config file "/etc/xen/domu1". Started domain domu1 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1009.8 domu1 22 64 2 r----- 1.3 domu2 23 64 1 -b---- 0.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1009.8 domu1 22 64 2 r----- 1.3 domu2 23 64 1 -b---- 0.1 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1010.0 domu1 22 64 2 r----- 2.8 domu2 23 64 1 -b---- 0.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1010.0 domu1 22 64 2 r----- 2.8 domu2 23 64 1 -b---- 0.1 |
#xm vcpu-set 4 2
![]() suspend Suspend a Xend managed domain top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. Error: Domain '4' does not exist. |
#xm vcpu-set 4 2
![]() Error: Domain '4' does not exist. |
#xm vcpu-set 22 1
![]() |
#xm vcpu-set 22 1
|
#xm list
![]() unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1014.2 domu1 22 64 1 -b---- 4.7 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1014.2 domu1 22 64 1 -b---- 4.7 |
#xm vcpu-set 22 2
![]() |
#xm vcpu-set 22 2
|
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1015.3 domu1 22 64 2 -b---- 4.7 domu2 27 64 1 -b---- 0.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1015.3 domu1 22 64 2 -b---- 4.7 domu2 27 64 1 -b---- 0.1 |
#xm shutdown domu1
![]() start Start a Xend managed domain suspend Suspend a Xend managed domain top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. |
#xm shutdown domu1
|
#vi /etc/xen/domu1
![]() --- /tmp/l3-saved-23137.17612.28014 2008-02-27 16:06:24.000000000 +0200 +++ /etc/xen/domu1 2008-02-27 16:06:31.000000000 +0200 @@ -36,7 +36,7 @@ #cpus = "0-3,5,^1" # run on cpus 0,2,3,5 # Number of Virtual CPUS to use, default is 1 -vcpus = 2 +vcpus = 4 #---------------------------------------------------------------------------- # Define network interfaces. |
#vi /etc/xen/domu1
--- /tmp/l3-saved-23137.17612.28014 2008-02-27 16:06:24.000000000 +0200 +++ /etc/xen/domu1 2008-02-27 16:06:31.000000000 +0200 @@ -36,7 +36,7 @@ #cpus = "0-3,5,^1" # run on cpus 0,2,3,5 # Number of Virtual CPUS to use, default is 1 -vcpus = 2 +vcpus = 4 #---------------------------------------------------------------------------- # Define network interfaces. |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1021.4 domu2 33 64 1 -b---- 0.1 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1021.4 domu2 33 64 1 -b---- 0.1 |
#xm vcpu-set 22 2
![]() Error: Domain '22' does not exist. |
#xm vcpu-set 22 2
![]() Error: Domain '22' does not exist. |
#xm create domu1
![]() top Monitor a host and the domains in real time. unpause Unpause a paused domain. uptime Print uptime for all/some domains. 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'. [root@debian2:~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 771.1 domu1 4 64 1 -b---- 0.1 [root@debian2:~]# xm block-attach 4 /dev/vg00/domu11 /dev/hda3 w Error: The file "None" is already used Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. Using config file "/etc/xen/domu1". Started domain domu1 |
#xm create domu1
Using config file "/etc/xen/domu1". Started domain domu1 |
#xm list
![]() Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1024.5 domu1 35 64 4 r----- 2.1 domu2 36 64 1 --p--- 0.0 |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 250 2 r----- 1024.5 domu1 35 64 4 r----- 2.1 domu2 36 64 1 --p--- 0.0 |
#xm shutdown domu1
![]() |
#xm shutdown domu1
|
Время первой команды журнала | 16:00:15 2008- 2-27 | ||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:06:41 2008- 2-27 | ||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 17.82 | ||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.11 | ||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 15.70 | ||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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