Журнал лабораторных работ

Содержание

Журнал

Вторник (03/23/10)

/dev/pts/0
13:29:47
#/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.
13:29:54
#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
13:34:44
#man ietadm
13:34:50
#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.
13:34:54
#man iscsiadm
13:37:13
#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
13:37:18
#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
13:37:30
#less /var/log/messages
13:38:30
#mount /dev/sdc /mnt

13:38:40
#ls /mnt
bin  ggge  log  lost+found  privet  test1.img  user
13:38:42
#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
13:38:44
#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
13:38:59
#less /etc/passwd
13:39:05
#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
13:39:08
#getent passwd | grep 1000
user:x:1000:1000:user,,,:/home/user:/bin/bash
13:39:45
#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,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
13:42:30
#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
13:43:21
#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
13:43:30
#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
13:43:34
#file -s /dev/sde
/dev/sde: Linux rev 1.0 ext3 filesystem data, UUID=dc1a59ef-da04-4ead-9f2a-22e1654c90a5 (large files)
13:43:42
#file -s /dev/sdd
/dev/sdd: Linux rev 1.0 ext3 filesystem data, UUID=439408c-9269-4b8f-84b4-96e057738fe, volume name "LV4" (large files)
13:43:47
#exit
exit
Connection to 192.168.15.2 closed.
13:43:53
#umount /mnt

13:44:04
#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
13:44:12
#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
13:44:17
#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
13:44:31
#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
13:44:56
#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
13:45:18
#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
13:45:36
#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
13:45:42
#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
13:46:31
#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
13:46:44
#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
13:46:54
#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
13:47:43
#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
13:50:52
#mount /dev/sdc /mnt

13:50:54
#ls /mnt/
bin  ggge  log  lost+found  privet  test1.img  user
13:50:59
#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
13:51:01
#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,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
13:52:23
#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,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
13:55:00
#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,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
+
14:00:20
#ls /mnt
bin  ggge  log  lost+found  privet  test1.img  user
14:00:32
#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,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
14:01:54
#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,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
14:03:23
#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,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
14:04:45
#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
~
прошло 32 минуты
/dev/pts/14
14:36:48
#vipw
^C
14:36:56
#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) ...
14:37:41
#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 ...>
14:37:52
#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)                           = ?
14:38:27
#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)                           = ?
прошло 42 минуты
15:20:39
#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) ...
15:25:17
#depmod -a

15:25:24
#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)
15:25:25
#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
15:26:46
#uname -a
Linux linux10 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 GNU/Linux
15:27:01
#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)
15:28:22
#dpkg -P drbd
dpkg - warning: ignoring request to remove drbd which isn't installed.
15:28:23
#dpkg -P drbd8-
drbd8-2.6.26-2-686  drbd8-source        drbd8-utils
15:28:23
#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 ...
15:28:41
#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) ...
15:28:46
#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)
15:28:50
#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
15:29:17
#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
15:29:23
#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) ...
15:30:32
#depmod -a

15:30:39
#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)
15:30:40
#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
15:30:54
#rm /usr/src/drbd*

15:31:05
#dpkg -P drbd8-
drbd8-2.6.26-2-686  drbd8-source        drbd8-utils
15:31:05
#dpkg -P drbd8-source
(Reading database ... 101847 files and directories currently installed.)
Removing drbd8-source ...
15:31:12
#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 ...
15:31:33
#m-a a-i drbd8
                          ┌────────────────────┤ Updating cached package data ├─────────────────────┐
                          ┠                          ..                                             │
                          │                                                                         │
                          │                                                                         │
                          │                                  0%                                     │
                          │                                                                         │
                          └─────────────────────────────────────────────────────────────────────────┘
Updated infos about 1 packages
15:31:38
#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) ...
15:32:43
#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
15:32:54
#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
15:32:56
#exit
exit
Connection to 192.168.15.1 closed.
15:33:02
#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
15:33:20
#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
15:33:25
#dpkg -P drbd8-
drbd8-2.6.26-2-686  drbd8-source        drbd8-utils
15:33:25
#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 ...
15:33:57
#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) ...
15:34:06
#modprobe drbd

15:34:08
#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) ...
15:34:49
#cat /proc/drbd
cat: /proc/drbd: No such file or directory
15:34:59
#cat /proc/dri
dri/    driver/
15:34:59
#lsmod | less
15:35:12
#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
15:35:14
#lvdisplay
^C
/dev/pts/0
15:36:00
#lsmod | grep aoe
aoe                    22080  1
15:36:04
#rmmod aoe
ERROR: Module aoe is in use
15:36:07
#ls /dev/etherd/
discover  e1.1  e2.1  e2.2  e3.1  e4.1  e5.1  err  flush  interfaces  revalidate
15:36:17
#rmmod aoe

/dev/pts/14
15:39:25
#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
/dev/pts/0
15:39:29
#man tunefs.ocfs2
/dev/pts/14
15:39:32
#vi /etc/drbd.conf
15:41:06
#:q!

15:43:37
#man drbd.conf
15:44:15
#lvcreate -L 2GB -n drbdmeta /dev/DATA
  Logical volume "drbdmeta" created
15:47:14
#grep -v ^# /etc/drbd.conf | grep -v '^ *#' | less
15:47:43
#grep -v ^# /etc/drbd.conf | grep -v '^ *#' | grep -xv '' | less

Файлы

  • /proc/drbd
  • /proc/net/iet/session
  • /tmp/bonnie
  • /proc/drbd
    >
    version: 8.0.14 (api:86/proto:86)
    GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil@fat-tyre, 2008-11-12 16:40:33
    
    /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
    
    /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,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
    

    Статистика

    Время первой команды журнала13:29:47 2010- 3-23
    Время последней команды журнала15:47:43 2010- 3-23
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, % 6.93
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.06
    Количество командных строк в единицу времени, команда/мин 1.59
    Частота использования команд
    cat17|================| 16.04%
    ls12|===========| 11.32%
    dpkg9|========| 8.49%
    apt-get7|======| 6.60%
    modprobe5|====| 4.72%
    less5|====| 4.72%
    bonnie++5|====| 4.72%
    man4|===| 3.77%
    grep4|===| 3.77%
    tail3|==| 2.83%
    vi3|==| 2.83%
    strace3|==| 2.83%
    m-a2|=| 1.89%
    mount2|=| 1.89%
    rmmod2|=| 1.89%
    lvdisplay2|=| 1.89%
    ssh2|=| 1.89%
    exit2|=| 1.89%
    file2|=| 1.89%
    lsmod2|=| 1.89%
    depmod2|=| 1.89%
    vipw2|=| 1.89%
    /etc/init.d/iscsitarget1|| 0.94%
    umount1|| 0.94%
    :q!1|| 0.94%
    rm1|| 0.94%
    scp1|| 0.94%
    getent1|| 0.94%
    iscsiadm1|| 0.94%
    lvcreate1|| 0.94%
    uname1|| 0.94%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$