/l3/users/eb/2009/linux12/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 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 |
|
#rsync -a --exclude=/{dev,proc,mnt,sys} / /mnt
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(544) [sender=3.0.5] rsync: writefd_unbuffered failed to write 97 bytes [generator]: Broken pipe (32) |
#du -k
16 ./lib/modules/2.6.18-6-xen-686/kernel/fs/msdos 780 ./lib/modules/2.6.18-6-xen-686/kernel/fs/nls 28 ./lib/modules/2.6.18-6-xen-686/kernel/fs/adfs 48 ./lib/modules/2.6.18-6-xen-686/kernel/fs/jffs 88 ./lib/modules/2.6.18-6-xen-686/kernel/fs/hpfs 16 ./lib/modules/2.6.18-6-xen-686/kernel/fs/exportfs 72 ./lib/modules/2.6.18-6-xen-686/kernel/fs/smbfs 76 ./lib/modules/2.6.18-6-xen-686/kernel/fs/jbd 12 ./lib/modules/2.6.18-6-xen-686/kernel/fs/nfs_common 48 ./lib/modules/2.6.18-6-xen-686/kernel/fs/affs ... 168 ./lib/modules/2.6.18-6-xen-686/kernel/net/bridge/netfilter 240 ./lib/modules/2.6.18-6-xen-686/kernel/net/bridge 28 ./lib/modules/2.6.18-6-xen-686/kernel/net/8021q 4980 ./lib/modules/2.6.18-6-xen-686/kernel/net 480 ./lib/modules/2.6.18-6-xen-686/kernel/crypto 43580 ./lib/modules/2.6.18-6-xen-686/kernel 45524 ./lib/modules/2.6.18-6-xen-686 109416 ./lib/modules 16 ./lib/lsb 4 ./lib/init/rw/.mdadm |
#cd /
|
#rsync -a --exclude/{}
--exclude= --exclude-from= |
#rsync -a --exclude=/{dev,sys,proc,mnt} / /mnt
rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32) rsync: write failed on "/mnt/usr/share/icons/gnome/24x24/devices/drive-optical.png": No space left on device (28) rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.5] rsync: connection unexpectedly closed (101817 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.5] |
#dd if=/dev/zero of=/dev/sdb2 count=1024 bs=1
1024+0 записів прочитано 1024+0 записів записано скопійовано 1024 байти (1,0 kB), 0,009634 с, 106 kB/s |
#fdisk -l /dev/sdb2
Disk /dev/sdb2: 15.0 GB, 15011136000 bytes 255 heads, 63 sectors/track, 1825 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/sdb2 doesn't contain a valid partition table |
#fdisk /dev/sdb2
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xa7f1f00a. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 1825. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) ... Command action e extended p primary partition (1-4) e Partition number (1-4): 1 First cylinder (1-1825, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1825, default 1825): Using default value 1825 Command (m for help): q |
#fdisk /dev/sdb2
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x4e241f91. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 1825. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): q |
#mkfs.ext3 /dev/sdb2
mke2fs 1.41.5 (23-Apr-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 917504 inodes, 3664828 blocks 183241 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=3753902080 112 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 23 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#mount /dev/sdb2 /mnt
|
#cd /mnt
|
#ld
ld: no input files |
#ls -l
загалом 76 drwxr-xr-x 2 root root 4096 чер 3 11:20 bin drwxr-xr-x 3 root root 4096 чер 5 17:18 boot drwxr-xr-x 105 root root 4096 чер 5 20:15 etc drwxr-xr-x 204 root root 4096 тра 30 14:07 home lrwxrwxrwx 1 root root 28 чер 5 20:15 initrd.img -> boot/initrd.img-2.6.29-2-686 drwxr-xr-x 13 root root 4096 чер 5 17:18 lib drwx------ 2 root root 16384 чер 5 20:14 lost+found -rw-r--r-- 1 root root 97 тра 30 18:26 lv-table drwx------ 2 root root 4096 чер 5 20:15 media drwx------ 2 root root 4096 чер 5 20:15 opt drwx------ 2 root root 4096 чер 5 20:15 root drwx------ 2 root root 4096 чер 5 20:15 sbin drwx------ 2 root root 4096 чер 5 20:15 selinux drwx------ 2 root root 4096 чер 5 20:15 srv drwx------ 2 root root 4096 чер 5 20:15 tmp drwx------ 2 root root 4096 чер 5 20:15 usr drwx------ 2 root root 4096 чер 5 20:15 var lrwxrwxrwx 1 root root 25 чер 5 20:15 vmlinuz -> boot/vmlinuz-2.6.29-2-686 |
#du -k ./
12 ./home/user/.cache/Thunar 60 ./home/user/.cache 8 ./home/user/.gconfd 4 ./home/user/.gvfs 4 ./home/user/.purple/smileys 4 ./home/user/.purple/certificates/x509/tls_peers 8 ./home/user/.purple/certificates/x509 12 ./home/user/.purple/certificates 40 ./home/user/.purple 8 ./home/user/.ssh ... 16 ./home/becky 16 ./home/alexander 16 ./home/bobbie 15260 ./home 4 ./srv 4 ./selinux 4 ./sbin 356 ./boot/grub 27908 ./boot 81088 ./ |
#cd ..
|
#chroot /mnt
bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory ... bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory root@linux12:/# exit exit |
#mkdir /mnt/{dev,proc,sys,mnt}
|
#cat /usr/share/x
xen-3.2-1/ xfce4/ xfce4-mixer/ xfwm4/ xml/ xml2po/ xml-core/ xscreensaver/ xserver-xorg/ xsessions/ xulrunner-1.9/ |
#cat /usr/share/x
xen-3.2-1/ xfce4/ xfce4-mixer/ xfwm4/ xml/ xml2po/ xml-core/ xscreensaver/ xserver-xorg/ xsessions/ xulrunner-1.9/ |
#cat /usr/share/doc/xen
xen-hypervisor-3.0.3-1-i386-pae/ xen-linux-system-2.6.18-6-xen-686/ xen-utils-3.0.3-1/ xen-utils-common/ xen-hypervisor-3.2-1-i386/ xenstore-utils/ xen-utils-3.2-1/ |
#cat /usr/share/doc/xen-utils-common/
changelog.Debian.gz copyright examples/ |
#cat /usr/share/doc/xen-utils-common/
changelog.Debian.gz copyright examples/ |
#cat /usr/share/doc/xen-utils-common/examples/xm
xm-config-xenapi.xml xm-config.xml xmexample1.gz xmexample2.gz xmexample.hvm.gz xmexample.vti.gz |
#cat /usr/share/doc/xen-utils-common/examples/xm
xm-config-xenapi.xml xm-config.xml xmexample1.gz xmexample2.gz xmexample.hvm.gz xmexample.vti.gz |
#zless /usr/share/doc/xen-utils-common/examples/xmexample1.gz | grep -v ^# | grep -v ^$ > /etc/xen/
scripts/ xend-config.sxp xend-config-xenapi.sxp xend-pci-permissive.sxp xend-pci-quirks.sxp |
#zless /usr/share/doc/xen-utils-common/examples/xmexample1.gz | grep -v ^# | grep -v ^$ > /etc/xen/dom1
|
#xm
.bash_history dev/ initrd.img lv-table opt/ sbin/ sys/ var/ bin/ etc/ lib/ media/ proc/ selinux/ tmp/ .viminfo boot/ home/ lost+found/ mnt/ root/ srv/ usr/ vmlinuz |
#umount /mnt
|
#xm create dom1
Using config file "/etc/xen/dom1". Segmentation fault |
#xm list
Name ID Mem VCPUs State Time(s) Domain-0 0 3911 2 r----- 199.8 |
#vim /etc/xen/dom1
--- /tmp/l3-saved-3474.6958.9208 2009-06-05 20:28:56.000000000 +0300 +++ /etc/xen/dom1 2009-06-05 20:29:45.000000000 +0300 @@ -1,8 +1,8 @@ kernel = "/boot/vmlinuz-2.6.18-6-xen-686" ramdisk="/boot/initrd.img-2.6.18-6-xen-686" -memory = 64 +memory = 256 name = "ExampleDomain" # vif = [ '' ] -disk = [ 'phy:sdb2,hda1,w' ] -root = "/dev/hda1 ro" +disk = [ 'phy:sdb2,sdb2,w' ] +root = "/dev/sdb2 ro" extra = "4" |
#xm create dom1
Using config file "/etc/xen/dom1". Segmentation fault |
#vim /etc/xen/dom1
|
#~
Using config file "/etc/xen/dom1". Started domain ExampleDomain Linux version 2.6.18-6-xen-686 (Debian 2.6.18.dfsg.1-24) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sat Dec 27 13:17:00 UTC 2008 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000010800000 (usable) 0MB HIGHMEM available. 264MB LOWMEM available. NX (Execute Disable) protection: active ACPI in unprivileged domain disabled Built 1 zonelists. Total pages: 67584 ... done. Begin: Running /scripts/local-premount ... done. kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. Target filesystem doesn't have /sbin/init. /bin/sh: 4: No such file or directory Kernel panic - not syncing: Attempted to kill init! |
#vim /etc/xen/dom1
|
# 7 root = "/dev/sdb2 ro"
|
#ls /mnt
bin boot dev etc home initrd.img lib lost+found lv-table media mnt opt proc root sbin selinux srv sys tmp usr var vmlinuz |
#chroot /mnt
root@linux12:/# root@linux12:/# root@linux12:/# root@linux12:/# exit exit |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
*** glibc detected *** rsync: corrupted double-linked list: 0x087f6da8 *** ======= Backtrace: ========= /lib/i686/nosegneg/libc.so.6[0xb7df4e24] /lib/i686/nosegneg/libc.so.6[0xb7df6c03] /lib/i686/nosegneg/libc.so.6(cfree+0x96)[0xb7df6e46] rsync[0x804bba6] rsync[0x8059200] rsync[0x8059792] rsync[0x80650ee] rsync[0x8065af4] ... b7ef8000-b7ef9000 rw-p 00005000 09:01 904105 /lib/libacl.so.1.1.0 b7f03000-b7f06000 rw-p b7f03000 00:00 0 b7f06000-b7f07000 r-xp b7f06000 00:00 0 [vdso] b7f07000-b7f23000 r-xp 00000000 09:01 904102 /lib/ld-2.9.so b7f23000-b7f24000 r--p 0001b000 09:01 904102 /lib/ld-2.9.so b7f24000-b7f25000 rw-p 0001c000 09:01 904102 /lib/ld-2.9.so bfa89000-bfa9f000 rw-p bfa89000 00:00 0 [stack] rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32) rsync: connection unexpectedly closed (310374 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.5] |
#tail /var/log/messages
Jun 5 20:09:01 linux12 kernel: kjournald starting. Commit interval 5 seconds Jun 5 20:09:01 linux12 kernel: EXT3 FS on dm-0, internal journal Jun 5 20:09:01 linux12 kernel: EXT3-fs: recovery complete. Jun 5 20:09:01 linux12 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 5 20:15:28 linux12 kernel: kjournald starting. Commit interval 5 seconds Jun 5 20:15:28 linux12 kernel: EXT3 FS on sdb2, internal journal Jun 5 20:15:28 linux12 kernel: EXT3-fs: mounted filesystem with ordered data mode. Jun 5 20:31:03 linux12 kernel: kjournald starting. Commit interval 5 seconds Jun 5 20:31:03 linux12 kernel: EXT3 FS on sdb2, internal journal Jun 5 20:31:03 linux12 kernel: EXT3-fs: mounted filesystem with ordered data mode. |
#vi /etc/ld.so.conf.d/libc6*
--- /tmp/l3-saved-3474.820.8297 2009-06-05 20:32:59.000000000 +0300 +++ /etc/ld.so.conf.d/libc6-xen.conf 2009-06-05 20:33:03.000000000 +0300 @@ -3,4 +3,4 @@ # fields. In Xen guest kernels, the vDSO tells the dynamic linker to # search in nosegneg subdirectories and to match this extra hwcap bit # in the ld.so.cache file. -hwcap 1 nosegneg +hwcap 0 nosegneg |
#ldconfig -a
ldconfig: invalid option -- 'a' \Try `ldconfig --help' or `ldconfig --usage' for more information. |
#ldconfig
|
#init 6
|
#tail /var/log/messages
Jun 5 20:34:36 linux12 kernel: EXT3 FS on md1, internal journal Jun 5 20:34:36 linux12 kernel: NET: Registered protocol family 10 Jun 5 20:34:36 linux12 kernel: lo: Disabled Privacy Extensions Jun 5 20:34:36 linux12 kernel: IPv6 over IPv4 tunneling driver Jun 5 20:34:36 linux12 kernel: ATL1: eth0 NIC Link is Up<1000 Mbps Full Duplex> Jun 5 20:34:37 linux12 lpd[2529]: restarted Jun 5 20:34:42 linux12 kernel: Bridge firewalling registered Jun 5 20:34:50 linux12 kernel: [drm] Initialized drm 1.0.1 20051102 Jun 5 20:34:50 linux12 kernel: ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 17 Jun 5 20:34:50 linux12 kernel: [drm] Initialized i915 1.5.0 20060119 on minor 0 |
#tail /var/log/messages
Jun 5 20:34:36 linux12 kernel: EXT3 FS on md1, internal journal Jun 5 20:34:36 linux12 kernel: NET: Registered protocol family 10 Jun 5 20:34:36 linux12 kernel: lo: Disabled Privacy Extensions Jun 5 20:34:36 linux12 kernel: IPv6 over IPv4 tunneling driver Jun 5 20:34:36 linux12 kernel: ATL1: eth0 NIC Link is Up<1000 Mbps Full Duplex> Jun 5 20:34:37 linux12 lpd[2529]: restarted Jun 5 20:34:42 linux12 kernel: Bridge firewalling registered Jun 5 20:34:50 linux12 kernel: [drm] Initialized drm 1.0.1 20051102 Jun 5 20:34:50 linux12 kernel: ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 17 Jun 5 20:34:50 linux12 kernel: [drm] Initialized i915 1.5.0 20060119 on minor 0 |
#tail /var/log/daemon.log
Jun 5 20:34:42 linux12 BLKTAPCTRL[2560]: Unable to start blktapctrl Jun 5 20:34:47 linux12 mdadm[2793]: NewArray event detected on md device /dev/md0 Jun 5 20:34:47 linux12 mdadm[2793]: NewArray event detected on md device /dev/md1 Jun 5 20:34:48 linux12 mdadm[2793]: DegradedArray event detected on md device /dev/md0 Jun 5 20:34:49 linux12 monit[2923]: Starting monit daemon Jun 5 20:34:49 linux12 monit[2925]: Monit started Jun 5 20:34:49 linux12 monit[2925]: 'cron' process is not running Jun 5 20:34:49 linux12 monit[2925]: 'cron' trying to restart Jun 5 20:34:49 linux12 monit[2925]: 'cron' start: /etc/init.d/cron Jun 5 20:35:04 linux12 console-kit-daemon[2665]: WARNING: Couldn't read /proc/2664/environ: Failed to open file '/proc/2664/environ': No such file or directory |
#tail /var/log/daemon.log
Jun 5 20:34:42 linux12 BLKTAPCTRL[2560]: Unable to start blktapctrl Jun 5 20:34:47 linux12 mdadm[2793]: NewArray event detected on md device /dev/md0 Jun 5 20:34:47 linux12 mdadm[2793]: NewArray event detected on md device /dev/md1 Jun 5 20:34:48 linux12 mdadm[2793]: DegradedArray event detected on md device /dev/md0 Jun 5 20:34:49 linux12 monit[2923]: Starting monit daemon Jun 5 20:34:49 linux12 monit[2925]: Monit started Jun 5 20:34:49 linux12 monit[2925]: 'cron' process is not running Jun 5 20:34:49 linux12 monit[2925]: 'cron' trying to restart Jun 5 20:34:49 linux12 monit[2925]: 'cron' start: /etc/init.d/cron Jun 5 20:35:04 linux12 console-kit-daemon[2665]: WARNING: Couldn't read /proc/2664/environ: Failed to open file '/proc/2664/environ': No such file or directory |
#free
total used free shared buffers cached Mem: 3869696 1945292 1924404 0 58560 1489952 -/+ buffers/cache: 396780 3472916 Swap: 0 0 0 |
#free
total used free shared buffers cached Mem: 3869696 1945292 1924404 0 58560 1489952 -/+ buffers/cache: 396780 3472916 Swap: 0 0 0 |
#xm create -c dom1
PCI: System does not support PCI PCI: System does not support PCI NET: Registered protocol family 2 IP route cache hash table entries: 4096 (order: 2, 16384 bytes) TCP established hash table entries: 16384 (order: 5, 131072 bytes) TCP bind hash table entries: 8192 (order: 4, 65536 bytes) TCP: Hash tables configured (established 16384 bind 8192) TCP reno registered audit: initializing netlink socket (disabled) audit(1244223630.755:1): initialized ... linux12 login: user Password: Last login: Fri Jun 5 18:02:05 EEST 2009 on tty1 Linux linux12 2.6.18-6-xen-686 #1 SMP Sat Dec 27 13:17:00 UTC 2008 i686 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. You have mail. |
$date
п'ятниця, 5 червня 2009 20:42:52 +0300 |
$su -
Пароль: Removing stale pidfile -su: agent: command not found |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm create -c dom1
Traceback (most recent call last): File "/usr/lib/xen-3.2-1/bin/xm", line 5, in <module> from xen.xm import main File "/usr/lib/xen-3.2-1/lib/python/xen/xm/main.py", line 56, in <module> import XenAPI ValueError: bad marshal data |
#xm list
/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3912 2 r----- 101.0 |
#xm list
/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3912 2 r----- 101.0 |
#xm create -c dom1
Freeing SMP alternatives: 12k freed Brought up 1 CPUs migration_cost=0 checking if image is initramfs... it is Freeing initrd memory: 16106k freed Grant table initialized NET: Registered protocol family 16 Brought up 1 CPUs PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. ... Starting deferred execution scheduler: atd. Starting periodic command scheduler: cron. Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.15.12 for ServerName . Starting daemon monitor: monit. Debian GNU/Linux squeeze/sid linux12 tty1 linux12 login: root Password: Removing stale pidfile -bash: agent: command not found |
#xm create -c dom1
Freeing SMP alternatives: 12k freed Brought up 1 CPUs migration_cost=0 checking if image is initramfs... it is Freeing initrd memory: 16106k freed Grant table initialized NET: Registered protocol family 16 Brought up 1 CPUs PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. ... Starting deferred execution scheduler: atd. Starting periodic command scheduler: cron. Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.15.12 for ServerName . Starting daemon monitor: monit. Debian GNU/Linux squeeze/sid linux12 tty1 linux12 login: root Password: Removing stale pidfile -bash: agent: command not found |
#xm list
/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3783 2 r----- 200.1 ExampleDomain 1 256 1 -b---- 9.0 |
#xm list
/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 3783 2 r----- 200.1 ExampleDomain 1 256 1 -b---- 9.0 |
#vim /etc/xen/xend-config.sxp
--- /tmp/l3-saved-4060.13944.22783 2009-06-05 21:19:16.000000000 +0300 +++ /etc/xen/xend-config.sxp 2009-06-05 21:20:04.000000000 +0300 @@ -125,8 +125,10 @@ # 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=eth1') + (network-script 'network-bridge netdev=eth0') + # The bridge is named xenbr0, by default. To rename the bridge, use # # (network-script 'network-bridge bridge=<name>') |
#/etc/init.d/xend restart
Restarting XEN control daemon: xend/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/server/SrvDaemon.py:17: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xc: This Python has API version 1013, module xen.lowlevel.xc has version 1012. import xen.lowlevel.xc /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/xenstore/xsutil.py:8: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xs: This Python has API version 1013, module xen.lowlevel.xs has version 1012. import xen.lowlevel.xs /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/server/SrvDaemon.py:17: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xc: This Python has API version 1013, module xen.lowlevel.xc has version 1012. import xen.lowlevel.xc /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm ... from xen.lowlevel import acm /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/xenstore/xsutil.py:8: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xs: This Python has API version 1013, module xen.lowlevel.xs has version 1012. import xen.lowlevel.xs /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/server/SrvDaemon.py:17: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xc: This Python has API version 1013, module xen.lowlevel.xc has version 1012. import xen.lowlevel.xc /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/xenstore/xsutil.py:8: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xs: This Python has API version 1013, module xen.lowlevel.xs has version 1012. import xen.lowlevel.xs . |
#/etc/init.d/xend restart
Restarting XEN control daemon: xend/usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/server/SrvDaemon.py:17: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xc: This Python has API version 1013, module xen.lowlevel.xc has version 1012. import xen.lowlevel.xc /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/xenstore/xsutil.py:8: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xs: This Python has API version 1013, module xen.lowlevel.xs has version 1012. import xen.lowlevel.xs /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/server/SrvDaemon.py:17: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xc: This Python has API version 1013, module xen.lowlevel.xc has version 1012. import xen.lowlevel.xc /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm ... from xen.lowlevel import acm /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/xenstore/xsutil.py:8: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xs: This Python has API version 1013, module xen.lowlevel.xs has version 1012. import xen.lowlevel.xs /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/server/SrvDaemon.py:17: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xc: This Python has API version 1013, module xen.lowlevel.xc has version 1012. import xen.lowlevel.xc /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/util/security.py:25: RuntimeWarning: Python C API version mismatch for module acm: This Python has API version 1013, module acm has version 1012. from xen.lowlevel import acm /usr/lib/xen-3.0.3-1/bin/../lib/python/xen/xend/xenstore/xsutil.py:8: RuntimeWarning: Python C API version mismatch for module xen.lowlevel.xs: This Python has API version 1013, module xen.lowlevel.xs has version 1012. import xen.lowlevel.xs . |
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.001bfc7dbcf0 no peth0 |
#brctl show
bridge name bridge id STP enabled interfaces eth0 8000.001bfc7dbcf0 no peth0 |
#vim /etc/xen/dom1
--- /tmp/l3-saved-4060.14888.22684 2009-06-05 21:22:01.000000000 +0300 +++ /etc/xen/dom1 2009-06-05 21:22:20.000000000 +0300 @@ -2,7 +2,7 @@ ramdisk="/boot/initrd.img-2.6.18-6-xen-686" memory = 256 name = "ExampleDomain" -# vif = [ '' ] + vif = [ 'bridge=eth0' ] disk = [ 'phy:sdb2,sdb2,w' ] root = "/dev/sdb2 ro" extra = "4" |
#ifconfig
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:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:100 (100.0 B) TX bytes:100 (100.0 B) |
#ifconfig
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:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:100 (100.0 B) TX bytes:100 (100.0 B) |
#ifconfig
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:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:100 (100.0 B) TX bytes:100 (100.0 B) |
#ifconfig
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:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:100 (100.0 B) TX bytes:100 (100.0 B) |
xen-hypervisor-3.0.3-1-i386-pae/ xen-linux-system-2.6.18-6-xen-686/ xen-utils-3.0.3-1/ xen-utils-common/ xen-hypervisor-3.2-1-i386/ xenstore-utils/ xen-utils-3.2-1/
changelog.Debian.gz copyright examples/
xm-config-xenapi.xml xm-config.xml xmexample1.gz xmexample2.gz xmexample.hvm.gz xmexample.vti.gz
xen-3.2-1/ xfce4/ xfce4-mixer/ xfwm4/ xml/ xml2po/ xml-core/ xscreensaver/ xserver-xorg/ xsessions/ xulrunner-1.9/
Время первой команды журнала | 20:03:10 2009- 6- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 21:21:11 2009- 6- 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 23.76 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.80 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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