/l3/users/igor-public/nt-scale-2010-03/linux10.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
#/etc/init.d/iscsitarget restart
Removing iSCSI enterprise target devices: succeeded. Stopping iSCSI enterprise target service: succeeded. Removing iSCSI enterprise target modules: succeeded. Starting iSCSI enterprise target service: succeeded. |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:281475014263296 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none |
#man ietadm
|
#apt-get install open-iscsi
Reading package lists... Done Building dependency tree Reading state information... Done open-iscsi is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
#man iscsiadm
|
#ls /etc/iscsi/nodes/
iqn.2001-04.com.example:storage1.linux10.unix.nt iqn.2001-04.com.example:storage1.linux4.unix.nt iqn.2001-04.com.example:storage1.linux1.unix.nt iqn.2001-04.com.example:storage1.linux5.unix.nt iqn.2001-04.com.example:storage1.linux2.unix.nt |
#ls -l /etc/iscsi/nodes/
total 20 drw------- 5 root root 4096 2010-03-23 14:22 iqn.2001-04.com.example:storage1.linux10.unix.nt drw------- 3 root root 4096 2010-03-23 14:18 iqn.2001-04.com.example:storage1.linux1.unix.nt drw------- 3 root root 4096 2010-03-23 14:15 iqn.2001-04.com.example:storage1.linux2.unix.nt drw------- 3 root root 4096 2010-03-23 14:15 iqn.2001-04.com.example:storage1.linux4.unix.nt drw------- 3 root root 4096 2010-03-23 14:15 iqn.2001-04.com.example:storage1.linux5.unix.nt |
#less /var/log/messages
|
#mount /dev/sdc /mnt
|
#ls /mnt
bin ggge log lost+found privet test1.img user |
#ls -l /mnt
total 102536 drwxr-xr-x 2 root root 4096 2010-03-22 10:33 bin -rw-r--r-- 1 root root 0 2010-03-23 12:21 ggge drwxr-xr-x 11 root root 4096 2010-03-23 09:04 log drwx------ 2 root root 16384 2010-03-23 09:49 lost+found -rw-r--r-- 1 root root 6 2010-03-23 12:15 privet -rw-r--r-- 1 root root 104857600 2010-03-23 12:38 test1.img drwxr-xr-x 2 1001 root 4096 2010-03-23 12:52 user |
#tail /etc/passwd
libuuid:x:100:101::/var/lib/libuuid:/bin/sh Debian-exim:x:101:105::/var/spool/exim4:/bin/false statd:x:102:65534::/var/lib/nfs:/bin/false messagebus:x:103:108::/var/run/dbus:/bin/false avahi:x:104:109:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false gdm:x:105:112:Gnome Display Manager:/var/lib/gdm:/bin/false haldaemon:x:106:114:Hardware abstraction layer,,,:/var/run/hal:/bin/false hplip:x:107:7:HPLIP system user,,,:/var/run/hplip:/bin/false user:x:1000:1000:user,,,:/home/user:/bin/bash sshd:x:108:65534::/var/run/sshd:/usr/sbin/nologin |
#less /etc/passwd
|
#ls -l /mnt
total 102536 drwxr-xr-x 2 root root 4096 2010-03-22 10:33 bin -rw-r--r-- 1 root root 0 2010-03-23 12:21 ggge drwxr-xr-x 11 root root 4096 2010-03-23 09:04 log drwx------ 2 root root 16384 2010-03-23 09:49 lost+found -rw-r--r-- 1 root root 6 2010-03-23 12:15 privet -rw-r--r-- 1 root root 104857600 2010-03-23 12:38 test1.img drwxr-xr-x 2 1001 root 4096 2010-03-23 12:52 user |
#getent passwd | grep 1000
user:x:1000:1000:user,,,:/home/user:/bin/bash |
#bonnie++ -d /mnt/user -r 500 -u user
Using uid:1000, gid:1000. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. ... Delete files in random order...done. Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux10 1G 45219 98 76888 19 78656 17 53180 99 943839 100 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux10,1G,45219,98,76888,19,78656,17,53180,99,943839,100,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none sid:281475014263296 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none |
#ssh 192.168.15.2
The authenticity of host '192.168.15.2 (192.168.15.2)' can't be established. RSA key fingerprint is eb:77:9f:e7:27:93:df:61:c0:64:d2:44:16:96:32:87. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.2' (RSA) to the list of known hosts. root@192.168.15.2's password: Linux linux2 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 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. Last login: Tue Mar 23 12:26:41 2010 l3-agent is already running: pid=3900; pidfile=/root/.lilalo/l3-agent.pid |
#tail /var/log/messages
Mar 23 14:35:23 linux2 kernel: [12234.379588] scsi 8:0:0:0: Direct-Access IET VIRTUAL-DISK 0 PQ: 0 ANSI: 4 Mar 23 14:35:23 linux2 kernel: [12234.379791] sd 8:0:0:0: [sde] 10485760 512-byte hardware sectors (5369 MB) Mar 23 14:35:23 linux2 kernel: [12234.379886] sd 8:0:0:0: [sde] Write Protect is off Mar 23 14:35:23 linux2 kernel: [12234.380237] sd 8:0:0:0: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA Mar 23 14:35:23 linux2 kernel: [12234.380561] sd 8:0:0:0: [sde] 10485760 512-byte hardware sectors (5369 MB) Mar 23 14:35:23 linux2 kernel: [12234.380733] sd 8:0:0:0: [sde] Write Protect is off Mar 23 14:35:23 linux2 kernel: [12234.381090] sd 8:0:0:0: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA Mar 23 14:35:23 linux2 kernel: [12234.381090] sde: unknown partition table Mar 23 14:35:23 linux2 kernel: [12234.381828] sd 8:0:0:0: [sde] Attached SCSI disk Mar 23 14:35:23 linux2 kernel: [12234.381828] sd 8:0:0:0: Attached scsi generic sg5 type 0 |
#file -s /dev/sde
/dev/sde: Linux rev 1.0 ext3 filesystem data, UUID=dc1a59ef-da04-4ead-9f2a-22e1654c90a5 (large files) |
#file -s /dev/sdd
/dev/sdd: Linux rev 1.0 ext3 filesystem data, UUID=439408c-9269-4b8f-84b4-96e057738fe, volume name "LV4" (large files) |
#exit
exit Connection to 192.168.15.2 closed. |
#umount /mnt
|
#iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux1.unix.nt -p 192.168.15.1 --logout
Logging out of session [sid: 1, target: iqn.2001-04.com.example:storage1.linux1.unix.nt, portal: 192.168.15.1,3260] Logout of [sid: 1, target: iqn.2001-04.com.example:storage1.linux1.unix.nt, portal: 192.168.15.1,3260]: successful |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none sid:281475014263296 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none sid:281475014263296 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1407374971437568 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1407374971437568 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1407374971437568 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1407374971437568 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1407374971437568 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:844424967684608 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1407374971437568 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none sid:1125899961172480 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:1407374971437568 initiator:iqn.1993-08.org.debian:01:fd50ff42444a cid:0 ip:192.168.15.1 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#cat /proc/net/iet/session
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:2533274844725760 initiator:iqn.1993-08.org.debian:01:b0d59f1e955b cid:0 ip:192.168.15.5 state:active hd:none dd:none sid:1970324924858880 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:2251799851237888 initiator:iqn.1993-08.org.debian:01:b0d59f1e955b cid:0 ip:192.168.15.5 state:active hd:none dd:none sid:1688849931371008 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none |
#mount /dev/sdc /mnt
|
#ls /mnt/
bin ggge log lost+found privet test1.img user |
#ls -l /mnt/
total 102536 drwxr-xr-x 2 root root 4096 2010-03-22 10:33 bin -rw-r--r-- 1 root root 0 2010-03-23 12:21 ggge drwxr-xr-x 11 root root 4096 2010-03-23 09:04 log drwx------ 2 root root 16384 2010-03-23 09:49 lost+found -rw-r--r-- 1 root root 6 2010-03-23 12:15 privet -rw-r--r-- 1 root root 104857600 2010-03-23 12:38 test1.img drwxr-xr-x 2 user root 4096 2010-03-23 14:41 user |
#bonnie++ -d /mnt/user -r 500 -u user
Using uid:1000, gid:1000. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. ... Delete files in random order...done. Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux10 1G 44494 96 78924 21 74739 17 53109 99 950199 100 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux10,1G,44494,96,78924,21,74739,17,53109,99,950199,100,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ |
#cat /tmp/bonnie
Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux1 1G 54619 96 77761 18 75485 16 66091 99 1171084 100 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux1,1G,54619,96,77761,18,75485,16,66091,99,1171084,100,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ LOCAL HDD Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux1 1G 55102 97 80354 17 75279 13 66217 99 1171687 99 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux1,1G,55102,97,80354,17,75279,13,66217,99,1171687,99,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ |
#vi /tmp/bonnie
--- /tmp/l3-saved-13217.16985.27919 2010-03-23 14:55:11.000000000 +0200 +++ /tmp/bonnie 2010-03-23 14:56:47.000000000 +0200 @@ -1,3 +1,18 @@ +iSCSI + +Version 1.03d ------Sequential Output------ --Sequential Input- --Random- + -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- +Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP +linux10 1G 44494 96 78924 21 74739 17 53109 99 950199 100 +++++ +++ + ------Sequential Create------ --------Random Create-------- + -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- + files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP + 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +linux10,1G,44494,96,78924,21,74739,17,53109,99,950199,100,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ + + +LVM + Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP @@ -7,6 +22,9 @@ files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux1,1G,54619,96,77761,18,75485,16,66091,99,1171084,100,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ + + + LOCAL HDD Version 1.03d ------Sequential Output------ --Sequential Input- --Random- @@ -18,3 +36,4 @@ files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux1,1G,55102,97,80354,17,75279,13,66217,99,1171687,99,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ + |
#ls /mnt
bin ggge log lost+found privet test1.img user |
#bonnie++ -d /mnt/user -r 500 -u user
Using uid:1000, gid:1000. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. ... Delete files in random order...done. Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux10 1G 45620 99 81013 21 76510 16 53148 99 946893 100 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux10,1G,45620,99,81013,21,76510,16,53148,99,946893,100,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ |
#bonnie++ -d /mnt/user -r 500 -u user
Using uid:1000, gid:1000. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. ... Delete files in random order...done. Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux10 1G 44825 97 78647 20 78395 17 53142 99 946905 99 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux10,1G,44825,97,78647,20,78395,17,53142,99,946905,99,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ |
#bonnie++ -d /mnt/user -r 500 -u user
Using uid:1000, gid:1000. Writing with putc()...done Writing intelligently...done Rewriting...done Reading with getc()...qios done Reading intelligently...done start 'em...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. ... Delete files in random order...done. Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux10 1G 44597 97 79078 21 73164 16 53216 99 945378 100 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux10,1G,44597,97,79078,21,73164,16,53216,99,945378,100,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ |
#vipw
root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh "/etc/passwd.edit" 28 lines, 1263 characters sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh ... ~ ~ ~ ~ vipw: /etc/passwd is unchangednager:/var/lib/gdm:/bin/false haldaemon:x:106:114:Hardware abstraction layer,,,:/var/run/hal:/bin/false hplip:x:107:7:HPLIP system user,,,:/var/run/hplip:/bin/false user:x:1000:1000:user,,,:/home/user:/bin/bash sshd:x:108:65534::/var/run/sshd:/usr/sbin/nologin ~ |
#apt-get install strace
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: strace 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 160kB of archives. After this operation, 287kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main strace 4.5.17+cvs080723-2 [160kB] Fetched 160kB in 0s (4403kB/s) Selecting previously deselected package strace. (Reading database ... 101417 files and directories currently installed.) Unpacking strace (from .../strace_4.5.17+cvs080723-2_i386.deb) ... Processing triggers for man-db ... Setting up strace (4.5.17+cvs080723-2) ... |
#strace vipw
execve("/usr/sbin/vipw", ["vipw"], [/* 22 vars */]) = 0 brk(0) = 0x8059000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f13000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=47719, ...}) = 0 mmap2(NULL, 47719, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f07000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ... read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tbd"..., 1024) = 249 read(3, ""..., 1024) = 0 close(3) = 0 munmap(0xb7f12000, 4096) = 0 open("/etc/.pwd.lock", O_WRONLY|O_CREAT|O_CLOEXEC, 0600) = 3 fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) rt_sigaction(SIGALRM, {0xb7e79ca0, ~[], 0}, {SIG_DFL}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [ALRM], [], 8) = 0 alarm(15) = 0 fcntl64(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}^C <unfinished ...> |
#strace vipw
execve("/usr/sbin/vipw", ["vipw"], [/* 22 vars */]) = 0 brk(0) = 0x8059000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f47000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=47719, ...}) = 0 mmap2(NULL, 47719, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f3b000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ... open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, ": Interrupted system call"..., 25: Interrupted system call) = 25 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 15), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f46000 write(1, "\n"..., 1 ) = 1 write(1, "vipw: /etc/passwd is unchanged\n"..., 31vipw: /etc/passwd is unchanged ) = 31 exit_group(5) = ? |
#strace vipw
execve("/usr/sbin/vipw", ["vipw"], [/* 22 vars */]) = 0 brk(0) = 0x8059000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efc000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=47719, ...}) = 0 mmap2(NULL, 47719, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7ef0000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ... open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, ": Interrupted system call"..., 25: Interrupted system call) = 25 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 15), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7efb000 write(1, "\n"..., 1 ) = 1 write(1, "vipw: /etc/passwd is unchanged\n"..., 31vipw: /etc/passwd is unchanged ) = 31 exit_group(5) = ? |
#apt-get install drbd8-utils drbd8-source
Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: debconf-utils dpatch fakeroot kernel-package patchutils Suggested packages: curl heartbeat linux-source kernel-source libdb3-dev libncurses-dev docbook-utils xmlto The following NEW packages will be installed: debconf-utils dpatch drbd8-source drbd8-utils fakeroot kernel-package patchutils 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. ... Selecting previously deselected package drbd8-utils. Unpacking drbd8-utils (from .../drbd8-utils_2%3a8.0.14-2_i386.deb) ... Processing triggers for man-db ... Setting up debconf-utils (1.5.24) ... Setting up dpatch (2.0.30) ... Setting up fakeroot (1.11) ... Setting up kernel-package (11.015) ... Setting up patchutils (0.2.31-4) ... Setting up drbd8-source (2:8.0.14-2) ... Setting up drbd8-utils (2:8.0.14-2) ... |
#depmod -a
|
#modprobe drbd
FATAL: Error inserting drbd (/lib/modules/2.6.26-2-686/kernel/extra/drbd.ko): Unknown symbol in module, or unknown parameter (see dmesg) |
#tail /var/log/kern.log
Mar 23 14:50:50 linux10 kernel: [95675.971885] sd 5:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA Mar 23 14:50:50 linux10 kernel: [95675.971885] sdc: unknown partition table Mar 23 14:50:50 linux10 kernel: [95675.988167] sd 5:0:0:0: [sdc] Attached SCSI disk Mar 23 14:50:54 linux10 kernel: [95681.170313] kjournald starting. Commit interval 5 seconds Mar 23 14:50:54 linux10 kernel: [95681.170763] EXT3 FS on sdc, internal journal Mar 23 14:50:54 linux10 kernel: [95681.170767] EXT3-fs: mounted filesystem with ordered data mode. Mar 23 16:25:17 linux10 kernel: [101727.666452] drbd: disagrees about version of symbol cn_add_callback Mar 23 16:25:17 linux10 kernel: [101727.666456] drbd: Unknown symbol cn_add_callback Mar 23 16:25:25 linux10 kernel: [101735.033972] drbd: disagrees about version of symbol cn_add_callback Mar 23 16:25:25 linux10 kernel: [101735.033972] drbd: Unknown symbol cn_add_callback |
#uname -a
Linux linux10 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 GNU/Linux |
#modprobe drbd
FATAL: Error inserting drbd (/lib/modules/2.6.26-2-686/kernel/extra/drbd.ko): Unknown symbol in module, or unknown parameter (see dmesg) |
#dpkg -P drbd
dpkg - warning: ignoring request to remove drbd which isn't installed. |
#dpkg -P drbd8-
drbd8-2.6.26-2-686 drbd8-source drbd8-utils |
#dpkg -P drbd8-2.6.26-2-686
(Reading database ... 101847 files and directories currently installed.) Removing drbd8-2.6.26-2-686 ... Purging configuration files for drbd8-2.6.26-2-686 ... |
#m-a a-i drbd8
âââââââââââââââââââââ⤠Updating cached package data âââââââââââââââââââââââ â .. â â â â â â 0% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Updated infos about 1 packages Getting source for kernel version: 2.6.26-2-686 Kernel headers available in /lib/modules/2.6.26-2-686/build ... Done! unpack Extracting the package tarball, /usr/src/drbd8.tar.bz2, please wait... Target package file /usr/src/drbd8-2.6.26-2-686_8.0.14-2+2.6.26-21_i386.deb already exists, not rebuilding! (however, you could use the -f switch to ignore it) dpkg -Ei /usr/src/drbd8-2.6.26-2-686_8.0.14-2+2.6.26-21_i386.deb Selecting previously deselected package drbd8-2.6.26-2-686. (Reading database ... 101843 files and directories currently installed.) Unpacking drbd8-2.6.26-2-686 (from .../drbd8-2.6.26-2-686_8.0.14-2+2.6.26-21_i386.deb) ... Setting up drbd8-2.6.26-2-686 (2:8.0.14-2+2.6.26-21) ... |
#modprobe drbd
FATAL: Error inserting drbd (/lib/modules/2.6.26-2-686/kernel/extra/drbd.ko): Unknown symbol in module, or unknown parameter (see dmesg) |
#vi /etc/apt/sources.list
--- /tmp/l3-saved-13950.8365.19297 2010-03-23 16:29:14.000000000 +0200 +++ /etc/apt/sources.list 2010-03-23 16:29:17.000000000 +0200 @@ -7,8 +7,8 @@ #deb-src http://10.0.35.1:9999/debian/ lenny main # -#deb http://security.debian.org/ lenny/updates main +deb http://security.debian.org/ lenny/updates main #deb-src http://security.debian.org/ lenny/updates main # -#deb http://volatile.debian.org/debian-volatile lenny/volatile main +deb http://volatile.debian.org/debian-volatile lenny/volatile main #deb-src http://volatile.debian.org/debian-volatile lenny/volatile main |
#apt-get update
Hit http://10.0.35.1 lenny Release.gpg Get:1 http://security.debian.org lenny/updates Release.gpg [835B] Ign http://security.debian.org lenny/updates/main Translation-en_US Get:2 http://security.debian.org lenny/updates Release [40.8kB] Ign http://10.0.35.1 lenny/main Translation-en_US Get:3 http://volatile.debian.org lenny/volatile Release.gpg [189B] Ign http://volatile.debian.org lenny/volatile/main Translation-en_US Hit http://10.0.35.1 lenny Release Get:4 http://volatile.debian.org lenny/volatile Release [40.7kB] Get:5 http://security.debian.org lenny/updates/main Packages [314kB] Ign http://10.0.35.1 lenny/main Packages/DiffIndex Ign http://10.0.35.1 lenny/main Packages Hit http://10.0.35.1 lenny/main Packages Get:6 http://volatile.debian.org lenny/volatile/main Packages [5481B] Fetched 402kB in 1s (231kB/s) Reading package lists... Done |
#apt-get install drbd8-source
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: drbd8-source 1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. Need to get 144kB of archives. After this operation, 0B of additional disk space will be used. Get:1 http://security.debian.org lenny/updates/main drbd8-source 2:8.0.14-2+lenny1 [144kB] Fetched 144kB in 0s (171kB/s) (Reading database ... 101848 files and directories currently installed.) Preparing to replace drbd8-source 2:8.0.14-2 (using .../drbd8-source_2%3a8.0.14-2+lenny1_all.deb) ... Unpacking replacement drbd8-source ... Setting up drbd8-source (2:8.0.14-2+lenny1) ... |
#depmod -a
|
#modprobe drbd
FATAL: Error inserting drbd (/lib/modules/2.6.26-2-686/kernel/extra/drbd.ko): Unknown symbol in module, or unknown parameter (see dmesg) |
#ls /usr/src/
drbd8-2.6.26-2-686_8.0.14-2+2.6.26-21_i386.deb iscsitarget.tar.bz2 linux-kbuild-2.6.26 drbd8-2.6.26-2-686_8.0.14-2+lenny1+2.6.26-21_i386.deb linux linux-OLDVERSION.1269354251 drbd8.tar.bz2 linux-headers-2.6.26-2-686 modules iscsitarget-module-2.6.26-2-686_0.4.16+svn162-3+2.6.26-21_i386.deb linux-headers-2.6.26-2-common |
#rm /usr/src/drbd*
|
#dpkg -P drbd8-
drbd8-2.6.26-2-686 drbd8-source drbd8-utils |
#dpkg -P drbd8-source
(Reading database ... 101847 files and directories currently installed.) Removing drbd8-source ... |
#dpkg -P drbd8-2.6.26-2-686
(Reading database ... 101840 files and directories currently installed.) Removing drbd8-2.6.26-2-686 ... Purging configuration files for drbd8-2.6.26-2-686 ... |
#m-a a-i drbd8
âââââââââââââââââââââ⤠Updating cached package data âââââââââââââââââââââââ â .. â â â â â â 0% â â â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Updated infos about 1 packages |
#apt-get install drbd8-source
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: drbd8-source 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 0B/144kB of archives. After this operation, 201kB of additional disk space will be used. Selecting previously deselected package drbd8-source. (Reading database ... 101836 files and directories currently installed.) Unpacking drbd8-source (from .../drbd8-source_2%3a8.0.14-2+lenny1_all.deb) ... Setting up drbd8-source (2:8.0.14-2+lenny1) ... |
#ssh 192.168.15.1
The authenticity of host '192.168.15.1 (192.168.15.1)' can't be established. RSA key fingerprint is ac:64:92:e9:2f:1c:b0:66:9c:22:2b:13:11:5d:81:2e. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.15.1' (RSA) to the list of known hosts. root@192.168.15.1's password: Linux linux1 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 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. Last login: Mon Mar 22 11:00:39 2010 |
#ls /usr/src/
drbd8-2.6.26-2-686_8.0.14-2+lenny1+2.6.26-21lenny4_i386.deb linux-headers-2.6.26-2-common drbd8.tar.bz2 linux-kbuild-2.6.26 iscsitarget-module-2.6.26-2-686_0.4.16+svn162-3+2.6.26-21lenny4_i386.deb linux-OLDVERSION.1269354265 iscsitarget.tar.bz2 modules linux rpm linux-headers-2.6.26-2-686 |
#exit
exit Connection to 192.168.15.1 closed. |
#scp 192.168.15.1:/usr/src/drbd8-2.6.26-2-686_8.0.14-2+lenny1+2.6.26-21lenny4_i386.deb /usr/src/
root@192.168.15.1's password: drbd8-2.6.26-2-686_8.0.14-2+lenny1+2.6.26-21lenny4_i386.deb 100% 104KB 103.9KB/s 00:00 |
#ls -l /usr/src/drbd*
-rw-r--r-- 1 root src 106766 2010-03-23 16:32 /usr/src/drbd8-2.6.26-2-686_8.0.14-2+lenny1+2.6.26-21_i386.deb -rw-r--r-- 1 root src 106436 2010-03-23 16:33 /usr/src/drbd8-2.6.26-2-686_8.0.14-2+lenny1+2.6.26-21lenny4_i386.deb -rw-r--r-- 1 root root 125889 2010-03-12 19:56 /usr/src/drbd8.tar.bz2 |
#dpkg -P drbd8-
drbd8-2.6.26-2-686 drbd8-source drbd8-utils |
#dpkg -P drbd8-2.6.26-2-686
(Reading database ... 101847 files and directories currently installed.) Removing drbd8-2.6.26-2-686 ... Purging configuration files for drbd8-2.6.26-2-686 ... |
#dpkg -i /usr/src/drbd8-2.6.26-2-686_8.0.14-2+lenny1+2.6.26-21lenny4_i386.deb
Selecting previously deselected package drbd8-2.6.26-2-686. (Reading database ... 101843 files and directories currently installed.) Unpacking drbd8-2.6.26-2-686 (from .../drbd8-2.6.26-2-686_8.0.14-2+lenny1+2.6.26-21lenny4_i386.deb) ... Setting up drbd8-2.6.26-2-686 (2:8.0.14-2+lenny1+2.6.26-21lenny4) ... |
#modprobe drbd
|
#apt-get upgrade
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: drbd8-utils linux-headers-2.6.26-2-686 linux-headers-2.6.26-2-common 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 4260kB of archives. After this operation, 94.2kB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://security.debian.org lenny/updates/main linux-headers-2.6.26-2-686 2.6.26-21lenny4 [400kB] ... There are multiple host sections for the peer. Maybe misspelled local host name 'linux10'? /etc/drbd.conf:484: in resource r3, there is no host section for this host. Missing 'on linux10 {...}' ? . Unpacking replacement drbd8-utils ... Processing triggers for man-db ... Setting up linux-headers-2.6.26-2-common (2.6.26-21lenny4) ... Setting up linux-headers-2.6.26-2-686 (2.6.26-21lenny4) ... Setting up drbd8-utils (2:8.0.14-2+lenny1) ... |
#cat /proc/drbd
cat: /proc/drbd: No such file or directory |
#cat /proc/dri
dri/ driver/ |
#lsmod | less
|
#cat /proc/drbd
version: 8.0.14 (api:86/proto:86) GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil@fat-tyre, 2008-11-12 16:40:33 |
#lvdisplay
^C |
#rmmod aoe
ERROR: Module aoe is in use |
#ls /dev/etherd/
discover e1.1 e2.1 e2.2 e3.1 e4.1 e5.1 err flush interfaces revalidate |
#rmmod aoe
|
#lvdisplay
--- Logical volume --- LV Name /dev/DATA/lv4 VG Name DATA LV UUID oPH05H-pBVD-RgTh-Bref-8qlB-ZwM9-I6jUZs LV Write Access read/write LV Status available # open 1 LV Size 5.00 GB Current LE 1280 Segments 1 ... LV Write Access read/write LV Status available # open 2 LV Size 5.00 GB Current LE 1280 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:2 |
#:q!
|
#man drbd.conf
|
#lvcreate -L 2GB -n drbdmeta /dev/DATA
Logical volume "drbdmeta" created |
#grep -v ^# /etc/drbd.conf | grep -v '^ *#' | less
|
#grep -v ^# /etc/drbd.conf | grep -v '^ *#' | grep -xv '' | less
|
version: 8.0.14 (api:86/proto:86) GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil@fat-tyre, 2008-11-12 16:40:33
tid:2 name:iqn.2001-04.com.example:storage2.linux10.unix.nt sid:2533274844725760 initiator:iqn.1993-08.org.debian:01:b0d59f1e955b cid:0 ip:192.168.15.5 state:active hd:none dd:none sid:1970324924858880 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none tid:1 name:iqn.2001-04.com.example:storage1.linux10.unix.nt sid:2251799851237888 initiator:iqn.1993-08.org.debian:01:b0d59f1e955b cid:0 ip:192.168.15.5 state:active hd:none dd:none sid:1688849931371008 initiator:iqn.1993-08.org.debian:01:62bca097b921 cid:0 ip:192.168.15.2 state:active hd:none dd:none sid:562950024528384 initiator:iqn.1993-08.org.debian:01:b72f24a5324b cid:0 ip:192.168.15.3 state:active hd:none dd:none
Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux1 1G 54619 96 77761 18 75485 16 66091 99 1171084 100 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux1,1G,54619,96,77761,18,75485,16,66091,99,1171084,100,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++ LOCAL HDD Version 1.03d ------Sequential Output------ --Sequential Input- --Random- -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP linux1 1G 55102 97 80354 17 75279 13 66217 99 1171687 99 +++++ +++ ------Sequential Create------ --------Random Create-------- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ linux1,1G,55102,97,80354,17,75279,13,66217,99,1171687,99,+++++,+++,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
Время первой команды журнала | 13:29:47 2010- 3-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:47:43 2010- 3-23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 6.93 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.06 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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