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

Содержание

Журнал

Суббота (05/30/09)

/dev/pts/6
17:00:00
#!qem
qemu /dev/loop0
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
commandline read: qemu
commandline read: /dev/loop0
   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2009-03-09 17:25)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
Could not initialize SDL - exiting
/dev/pts/7
17:00:00
#!qem
qemu /dev/loop0
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
commandline read: qemu
commandline read: /dev/loop0
   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2009-03-09 17:25)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
Could not initialize SDL - exiting
/dev/pts/6
17:00:11
#umount /mnt

/dev/pts/7
17:00:11
#umount /mnt

/dev/pts/6
17:00:46
#qemu /root/hdddisk.img
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
commandline read: qemu
commandline read: /root/hdddisk.img
   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2009-03-09 17:25)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
Could not initialize SDL - exiting
/dev/pts/7
17:00:46
#qemu /root/hdddisk.img
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
commandline read: qemu
commandline read: /root/hdddisk.img
   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2009-03-09 17:25)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
Could not initialize SDL - exiting
/dev/pts/6
17:01:00
#fdisk -l /dev/sdb
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xce5cf3c1
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        2434     9775552+  83  Linux
/dev/sdb3            2435       38913   293017567+   5  Extended
/dev/sdb5            2435        3651     9775521   83  Linux
/dev/sdb6            3652        4867     9767488+  83  Linux
/dev/sdb7            4868       38913   273474463+  83  Linux
/dev/pts/7
17:01:00
#fdisk -l /dev/sdb
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xce5cf3c1
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        2434     9775552+  83  Linux
/dev/sdb3            2435       38913   293017567+   5  Extended
/dev/sdb5            2435        3651     9775521   83  Linux
/dev/sdb6            3652        4867     9767488+  83  Linux
/dev/sdb7            4868       38913   273474463+  83  Linux
прошло 19 минут
/dev/pts/6
17:20:45
#дмы --рудз
bash: дмы: command not found
/dev/pts/7
17:20:45
#дмы --рудз
bash: дмы: command not found
прошло 26 минут
/dev/pts/6
17:47:25
#lvs --help
bash: lvs: command not found
/dev/pts/7
17:47:25
#lvs --help
bash: lvs: command not found
/dev/pts/6
17:47:35
#apt-cache search lvm
autopkgtest - automatic as-installed testing for Debian packages
autopkgtest-xenlvm - Xen/LVM2 based testbed snapshot system
bootcd - run your system from cd without need for disks
clvm - Cluster LVM Daemon for lvm2
dmsetup - The Linux Kernel Device Mapper userspace library
gpart - Guess PC disk partition table, find lost partitions
initramfs-tools - tools for generating an initramfs
libdevmapper-dev - The Linux Kernel Device Mapper header files
libdevmapper1.02.1 - The Linux Kernel Device Mapper userspace library
liblinux-lvm-perl - module to access LVM status information in perl scripts
...
llvm-gcc-4.2 - C/C++ front end for LLVM compiler
lvm2 - The Linux Logical Volume Manager
mondo - powerful disaster recovery suite
mondo-doc - manual for Mondo, a powerful disaster recovery suite
mylvmbackup - quickly creating backups of MySQL server's data files
parted - The GNU Parted disk partition resizing program
schroot - Execute commands in a chroot environment
system-config-lvm - A utility for graphically configuring Logical Volumes
testdisk - Partition scanner and disk recovery tool
vbackup - A modular backup utility
/dev/pts/7
17:47:35
#apt-cache search lvm
autopkgtest - automatic as-installed testing for Debian packages
autopkgtest-xenlvm - Xen/LVM2 based testbed snapshot system
bootcd - run your system from cd without need for disks
clvm - Cluster LVM Daemon for lvm2
dmsetup - The Linux Kernel Device Mapper userspace library
gpart - Guess PC disk partition table, find lost partitions
initramfs-tools - tools for generating an initramfs
libdevmapper-dev - The Linux Kernel Device Mapper header files
libdevmapper1.02.1 - The Linux Kernel Device Mapper userspace library
liblinux-lvm-perl - module to access LVM status information in perl scripts
...
llvm-gcc-4.2 - C/C++ front end for LLVM compiler
lvm2 - The Linux Logical Volume Manager
mondo - powerful disaster recovery suite
mondo-doc - manual for Mondo, a powerful disaster recovery suite
mylvmbackup - quickly creating backups of MySQL server's data files
parted - The GNU Parted disk partition resizing program
schroot - Execute commands in a chroot environment
system-config-lvm - A utility for graphically configuring Logical Volumes
testdisk - Partition scanner and disk recovery tool
vbackup - A modular backup utility
/dev/pts/6
17:48:52
#apt-cache install lmv2
E: Invalid operation install
/dev/pts/7
17:48:52
#apt-cache install lmv2
E: Invalid operation install
/dev/pts/6
17:49:06
#apt-get install lmv2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lmv2
/dev/pts/7
17:49:06
#apt-get install lmv2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lmv2
/dev/pts/6
17:49:14
#apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  lvm2
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 363kB of archives.
...
(Reading database ... 55172 files and directories currently installed.)
Unpacking lvm2 (from .../lvm2_2.02.44-3_i386.deb) ...
Processing triggers for man-db ...
Setting up lvm2 (2.02.44-3) ...
^C
dpkg: error processing lvm2 (--configure):
 subprocess installed post-installation script killed by signal (Interrupt)
Errors were encountered while processing:
 lvm2
E: Sub-process /usr/bin/dpkg returned an error code (1)
/dev/pts/7
17:49:14
#apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  lvm2
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 363kB of archives.
...
(Reading database ... 55172 files and directories currently installed.)
Unpacking lvm2 (from .../lvm2_2.02.44-3_i386.deb) ...
Processing triggers for man-db ...
Setting up lvm2 (2.02.44-3) ...
^C
dpkg: error processing lvm2 (--configure):
 subprocess installed post-installation script killed by signal (Interrupt)
Errors were encountered while processing:
 lvm2
E: Sub-process /usr/bin/dpkg returned an error code (1)
/dev/pts/10
17:51:42
#lsmod | grep aoe
aoe                    22316  1
/dev/pts/11
17:51:42
#lsmod | grep aoe
aoe                    22316  1
/dev/pts/10
17:51:52
#aoe-stat --help
Usage: grep [OPTION]... PATTERN [FILE]...
Search for PATTERN in each FILE or standard input.
PATTERN is, by default, a basic regular expression (BRE).
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression (ERE)
  -F, --fixed-strings       PATTERN is a set of newline-separated fixed strings
  -G, --basic-regexp        PATTERN is a basic regular expression (BRE)
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN for matching
...
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
Direct invocation as either `egrep' or `fgrep' is deprecated.
With no FILE, or when FILE is -, read standard input.  If less than two FILEs
are given, assume -h.  Exit status is 0 if any line was selected, 1 otherwise;
if any error occurs and -q was not given, the exit status is 2.
Report bugs to: bug-grep@gnu.org
GNU Grep home page: <http://www.gnu.org/software/grep/>
General help using GNU software: <http://www.gnu.org/gethelp/>
/dev/pts/11
17:51:52
#aoe-stat --help
Usage: grep [OPTION]... PATTERN [FILE]...
Search for PATTERN in each FILE or standard input.
PATTERN is, by default, a basic regular expression (BRE).
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
  -E, --extended-regexp     PATTERN is an extended regular expression (ERE)
  -F, --fixed-strings       PATTERN is a set of newline-separated fixed strings
  -G, --basic-regexp        PATTERN is a basic regular expression (BRE)
  -P, --perl-regexp         PATTERN is a Perl regular expression
  -e, --regexp=PATTERN      use PATTERN for matching
...
  -U, --binary              do not strip CR characters at EOL (MSDOS)
  -u, --unix-byte-offsets   report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'.  `fgrep' means `grep -F'.
Direct invocation as either `egrep' or `fgrep' is deprecated.
With no FILE, or when FILE is -, read standard input.  If less than two FILEs
are given, assume -h.  Exit status is 0 if any line was selected, 1 otherwise;
if any error occurs and -q was not given, the exit status is 2.
Report bugs to: bug-grep@gnu.org
GNU Grep home page: <http://www.gnu.org/software/grep/>
General help using GNU software: <http://www.gnu.org/gethelp/>
/dev/pts/10
17:52:15
#apt-cache search raid
aoetools - tools to assist in using ATA over Ethernet
array-info - command line tool reporting RAID status for several RAID types
boxbackup-server - server for the BoxBackup remote backup system
cciss-vol-status - HP SmartArray RAID Volume Status Checker
cpqarrayd - monitoring tool for HP (Compaq) SmartArray controllers
dmraid - Device-Mapper Software RAID support tool
dmsetup - The Linux Kernel Device Mapper userspace library
dpt-i2o-raidutils - Adaptec I2O hardware RAID management utilities
drbd0.7-module-source - RAID 1 over tcp/ip for Linux module source
drbd0.7-utils - RAID 1 over tcp/ip for Linux utilities
...
mondo - powerful disaster recovery suite
mondo-doc - manual for Mondo, a powerful disaster recovery suite
mpt-status - get RAID status out of mpt (and other) HW RAID controllers
parchive - Use PAR files to reconstruct missing parts of multi-part archives
parted - The GNU Parted disk partition resizing program
raidutils - Transition Package for raidutils rename to dpt-i2o-raidutils
system-config-lvm - A utility for graphically configuring Logical Volumes
testdisk - Partition scanner and disk recovery tool
varmon - VA RAID monitor
xscreensaver-data-extra - data files to be shared among screensaver frontends
/dev/pts/11
17:52:15
#apt-cache search raid
aoetools - tools to assist in using ATA over Ethernet
array-info - command line tool reporting RAID status for several RAID types
boxbackup-server - server for the BoxBackup remote backup system
cciss-vol-status - HP SmartArray RAID Volume Status Checker
cpqarrayd - monitoring tool for HP (Compaq) SmartArray controllers
dmraid - Device-Mapper Software RAID support tool
dmsetup - The Linux Kernel Device Mapper userspace library
dpt-i2o-raidutils - Adaptec I2O hardware RAID management utilities
drbd0.7-module-source - RAID 1 over tcp/ip for Linux module source
drbd0.7-utils - RAID 1 over tcp/ip for Linux utilities
...
mondo - powerful disaster recovery suite
mondo-doc - manual for Mondo, a powerful disaster recovery suite
mpt-status - get RAID status out of mpt (and other) HW RAID controllers
parchive - Use PAR files to reconstruct missing parts of multi-part archives
parted - The GNU Parted disk partition resizing program
raidutils - Transition Package for raidutils rename to dpt-i2o-raidutils
system-config-lvm - A utility for graphically configuring Logical Volumes
testdisk - Partition scanner and disk recovery tool
varmon - VA RAID monitor
xscreensaver-data-extra - data files to be shared among screensaver frontends
/dev/pts/6
17:52:36
#apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
lvm2 is already the newest version.
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up lvm2 (2.02.44-3) ...
Setting up LVM Volume Groups  Reading all physical volumes.  This may take a while...
.
/dev/pts/7
17:52:36
#apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
lvm2 is already the newest version.
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up lvm2 (2.02.44-3) ...
Setting up LVM Volume Groups  Reading all physical volumes.  This may take a while...
.
/dev/pts/6
17:53:32
#pvcreate --help
  pvcreate: Initialize physical volume(s) for use by LVM
pvcreate
        [--restorefile file]
        [-d|--debug]
        [-f[f]|--force [--force]]
        [-h|-?|--help]
        [--labelsector sector]
        [-M|--metadatatype 1|2]
        [--metadatacopies #copies]
        [--metadatasize MetadataSize[kKmMgGtTpPeE]]
        [--setphysicalvolumesize PhysicalVolumeSize[kKmMgGtTpPeE]
        [-t|--test]
        [-u|--uuid uuid]
        [-v|--verbose]
        [-y|--yes]
        [-Z|--zero {y|n}]
        [--version]
        PhysicalVolume [PhysicalVolume...]
/dev/pts/7
17:53:32
#pvcreate --help
  pvcreate: Initialize physical volume(s) for use by LVM
pvcreate
        [--restorefile file]
        [-d|--debug]
        [-f[f]|--force [--force]]
        [-h|-?|--help]
        [--labelsector sector]
        [-M|--metadatatype 1|2]
        [--metadatacopies #copies]
        [--metadatasize MetadataSize[kKmMgGtTpPeE]]
        [--setphysicalvolumesize PhysicalVolumeSize[kKmMgGtTpPeE]
        [-t|--test]
        [-u|--uuid uuid]
        [-v|--verbose]
        [-y|--yes]
        [-Z|--zero {y|n}]
        [--version]
        PhysicalVolume [PhysicalVolume...]
/dev/pts/6
17:54:03
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sdb1 on /root/mnt1 type ext3 (rw)
/dev/pts/7
17:54:03
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sdb1 on /root/mnt1 type ext3 (rw)
/dev/pts/6
17:54:20
#pvcreate --help
  pvcreate: Initialize physical volume(s) for use by LVM
pvcreate
        [--restorefile file]
        [-d|--debug]
        [-f[f]|--force [--force]]
        [-h|-?|--help]
        [--labelsector sector]
        [-M|--metadatatype 1|2]
        [--metadatacopies #copies]
        [--metadatasize MetadataSize[kKmMgGtTpPeE]]
        [--setphysicalvolumesize PhysicalVolumeSize[kKmMgGtTpPeE]
        [-t|--test]
        [-u|--uuid uuid]
        [-v|--verbose]
        [-y|--yes]
        [-Z|--zero {y|n}]
        [--version]
        PhysicalVolume [PhysicalVolume...]
/dev/pts/7
17:54:20
#pvcreate --help
  pvcreate: Initialize physical volume(s) for use by LVM
pvcreate
        [--restorefile file]
        [-d|--debug]
        [-f[f]|--force [--force]]
        [-h|-?|--help]
        [--labelsector sector]
        [-M|--metadatatype 1|2]
        [--metadatacopies #copies]
        [--metadatasize MetadataSize[kKmMgGtTpPeE]]
        [--setphysicalvolumesize PhysicalVolumeSize[kKmMgGtTpPeE]
        [-t|--test]
        [-u|--uuid uuid]
        [-v|--verbose]
        [-y|--yes]
        [-Z|--zero {y|n}]
        [--version]
        PhysicalVolume [PhysicalVolume...]
/dev/pts/6
17:55:08
#pvcreate /dev/sdb[12]
  Can't open /dev/sdb1 exclusively.  Mounted filesystem?
  Physical volume "/dev/sdb2" successfully created
/dev/pts/7
17:55:08
#pvcreate /dev/sdb[12]
  Can't open /dev/sdb1 exclusively.  Mounted filesystem?
  Physical volume "/dev/sdb2" successfully created
/dev/pts/6
17:55:23
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sdb1 on /root/mnt1 type ext3 (rw)
/dev/pts/7
17:55:23
#mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sdb1 on /root/mnt1 type ext3 (rw)
/dev/pts/6
17:55:34
#umount /mnt
umount: /mnt: not mounted
/dev/pts/7
17:55:34
#umount /mnt
umount: /mnt: not mounted
/dev/pts/6
17:55:40
#umount /root/mnt1

/dev/pts/7
17:55:40
#umount /root/mnt1

/dev/pts/6
17:55:48
#pvcreate /dev/sdb[12]
  Physical volume "/dev/sdb1" successfully created
  Physical volume "/dev/sdb2" successfully created
/dev/pts/7
17:55:48
#pvcreate /dev/sdb[12]
  Physical volume "/dev/sdb1" successfully created
  Physical volume "/dev/sdb2" successfully created
17:55:56
#file -s /dev/sdb1
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: E8grzYXQm6xMlr79eACo1FcPmpZaAH3
/dev/pts/6
17:55:56
#file -s /dev/sdb1
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: E8grzYXQm6xMlr79eACo1FcPmpZaAH3
17:56:36
#file -s /dev/sdb[12]
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: E8grzYXQm6xMlr79eACo1FcPmpZaAH3
/dev/sdb2: LVM2 (Linux Logical Volume Manager) , UUID: pmK8xNdC2HuAAz3g2V3DQcn3FrnUiLj
/dev/pts/7
17:56:36
#file -s /dev/sdb[12]
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: E8grzYXQm6xMlr79eACo1FcPmpZaAH3
/dev/sdb2: LVM2 (Linux Logical Volume Manager) , UUID: pmK8xNdC2HuAAz3g2V3DQcn3FrnUiLj
/dev/pts/6
17:56:46
#vgcreate --help
  vgcreate: Create a volume group
vgcreate
        [-A|--autobackup {y|n}]
        [--addtag Tag]
        [--alloc AllocationPolicy]
        [-c|--clustered {y|n}]
        [-d|--debug]
        [-h|--help]
        [-l|--maxlogicalvolumes MaxLogicalVolumes]
        [-M|--metadatatype 1|2]
        [-p|--maxphysicalvolumes MaxPhysicalVolumes]
        [-s|--physicalextentsize PhysicalExtentSize[kKmMgGtTpPeE]]
        [-t|--test]
        [-v|--verbose]
        [--version]
        VolumeGroupName PhysicalVolume [PhysicalVolume...]
/dev/pts/7
17:56:46
#vgcreate --help
  vgcreate: Create a volume group
vgcreate
        [-A|--autobackup {y|n}]
        [--addtag Tag]
        [--alloc AllocationPolicy]
        [-c|--clustered {y|n}]
        [-d|--debug]
        [-h|--help]
        [-l|--maxlogicalvolumes MaxLogicalVolumes]
        [-M|--metadatatype 1|2]
        [-p|--maxphysicalvolumes MaxPhysicalVolumes]
        [-s|--physicalextentsize PhysicalExtentSize[kKmMgGtTpPeE]]
        [-t|--test]
        [-v|--verbose]
        [--version]
        VolumeGroupName PhysicalVolume [PhysicalVolume...]
/dev/pts/6
17:58:34
#vgcreate TEST_VG_VOL /dev/sdb[12]
  Volume group "TEST_VG_VOL" successfully created
/dev/pts/7
17:58:34
#vgcreate TEST_VG_VOL /dev/sdb[12]
  Volume group "TEST_VG_VOL" successfully created
/dev/pts/6
17:59:26
#pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               TEST_VG_VOL
  PV Size               9.32 GB / not usable 2.41 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2386
  Free PE               2386
  Allocated PE          0
  PV UUID               E8grzY-XQm6-xMlr-79eA-Co1F-cPmp-ZaAH3B
  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               TEST_VG_VOL
  PV Size               9.32 GB / not usable 2.44 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2386
  Free PE               2386
  Allocated PE          0
  PV UUID               pmK8xN-dC2H-uAAz-3g2V-3DQc-n3Fr-nUiLjg
/dev/pts/7
17:59:26
#pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               TEST_VG_VOL
  PV Size               9.32 GB / not usable 2.41 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2386
  Free PE               2386
  Allocated PE          0
  PV UUID               E8grzY-XQm6-xMlr-79eA-Co1F-cPmp-ZaAH3B
  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               TEST_VG_VOL
  PV Size               9.32 GB / not usable 2.44 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2386
  Free PE               2386
  Allocated PE          0
  PV UUID               pmK8xN-dC2H-uAAz-3g2V-3DQc-n3Fr-nUiLjg
/dev/pts/6
18:00:41
#vgdisplay
  --- Volume group ---
  VG Name               TEST_VG_VOL
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               18.64 GB
  PE Size               4.00 MB
  Total PE              4772
  Alloc PE / Size       0 / 0
  Free  PE / Size       4772 / 18.64 GB
  VG UUID               evk7UV-cG3i-snTY-BYXK-n8w6-tTaC-fj13i4
/dev/pts/7
18:00:41
#vgdisplay
  --- Volume group ---
  VG Name               TEST_VG_VOL
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               18.64 GB
  PE Size               4.00 MB
  Total PE              4772
  Alloc PE / Size       0 / 0
  Free  PE / Size       4772 / 18.64 GB
  VG UUID               evk7UV-cG3i-snTY-BYXK-n8w6-tTaC-fj13i4
/dev/pts/6
18:00:47
#lvcreate -l1024 -nvol1 /dev/TEST_VG_VOL
  Logical volume "vol1" created
/dev/pts/7
18:00:47
#lvcreate -l1024 -nvol1 /dev/TEST_VG_VOL
  Logical volume "vol1" created
/dev/pts/6
18:04:23
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/TEST_VG_VOL/vol1
  VG Name                TEST_VG_VOL
  LV UUID                2rQ2rD-nDBg-cmfk-oLBT-Qbkw-1uJe-c6FnEP
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                4.00 GB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2
/dev/pts/7
18:04:23
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/TEST_VG_VOL/vol1
  VG Name                TEST_VG_VOL
  LV UUID                2rQ2rD-nDBg-cmfk-oLBT-Qbkw-1uJe-c6FnEP
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                4.00 GB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2
/dev/pts/6
18:05:06
#file /dev/
Display all 185 possibilities? (y or n)
/dev/pts/7
18:05:06
#file /dev/
Display all 185 possibilities? (y or n)
/dev/pts/6
18:05:06
#file /dev/
Display all 185 possibilities? (y or n)
adsp1               loop3               root                tty23               tty57
agpgart             loop4               rtc                 tty24               tty58
audio               loop5               rtc0                tty25               tty59
audio1              loop6               sda                 tty26               tty6
block/              loop7               sda1                tty27               tty60
bsg/                MAKEDEV             sdb                 tty28               tty61
bus/                mapper/             sdb1                tty29               tty62
cdrom1              mem                 sdb2                tty3                tty63
char/               mixer               sdb3                tty30               tty7
...
initctl             ram15               tty14               tty48               usbdev5.1_ep00
.initramfs/         ram2                tty15               tty49               usbdev5.1_ep81
.initramfs-tools    ram3                tty16               tty5                vcs
input/              ram4                tty17               tty50               vcs1
kmem                ram5                tty18               tty51               vcs7
kmsg                ram6                tty19               tty52               vcsa
log                 ram7                tty2                tty53               vcsa1
loop0               ram8                tty20               tty54               vcsa7
loop1               ram9                tty21               tty55               xconsole
loop2               random              tty22               tty56               zero
/dev/pts/7
18:05:06
#file /dev/
Display all 185 possibilities? (y or n)
adsp1               loop3               root                tty23               tty57
agpgart             loop4               rtc                 tty24               tty58
audio               loop5               rtc0                tty25               tty59
audio1              loop6               sda                 tty26               tty6
block/              loop7               sda1                tty27               tty60
bsg/                MAKEDEV             sdb                 tty28               tty61
bus/                mapper/             sdb1                tty29               tty62
cdrom1              mem                 sdb2                tty3                tty63
char/               mixer               sdb3                tty30               tty7
...
initctl             ram15               tty14               tty48               usbdev5.1_ep00
.initramfs/         ram2                tty15               tty49               usbdev5.1_ep81
.initramfs-tools    ram3                tty16               tty5                vcs
input/              ram4                tty17               tty50               vcs1
kmem                ram5                tty18               tty51               vcs7
kmsg                ram6                tty19               tty52               vcsa
log                 ram7                tty2                tty53               vcsa1
loop0               ram8                tty20               tty54               vcsa7
loop1               ram9                tty21               tty55               xconsole
loop2               random              tty22               tty56               zero
/dev/pts/6
18:06:05
#file -s /dev/mapper/TEST_VG_VOL-vol1
/dev/mapper/TEST_VG_VOL-vol1: data
/dev/pts/7
18:06:05
#file -s /dev/mapper/TEST_VG_VOL-vol1
/dev/mapper/TEST_VG_VOL-vol1: data
/dev/pts/6
18:06:23
#ls -l /dev/mapper/TEST_VG_VOL-vol1
brw-rw---- 1 root disk 254, 2 2009-05-30 18:04 /dev/mapper/TEST_VG_VOL-vol1
/dev/pts/7
18:06:23
#ls -l /dev/mapper/TEST_VG_VOL-vol1
brw-rw---- 1 root disk 254, 2 2009-05-30 18:04 /dev/mapper/TEST_VG_VOL-vol1
/dev/pts/6
18:07:41
#fdisk -l /dev/mapper/TEST_VG_VOL-vol1
Disk /dev/mapper/TEST_VG_VOL-vol1: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/TEST_VG_VOL-vol1 doesn't contain a valid partition table
/dev/pts/7
18:07:41
#fdisk -l /dev/mapper/TEST_VG_VOL-vol1
Disk /dev/mapper/TEST_VG_VOL-vol1: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/TEST_VG_VOL-vol1 doesn't contain a valid partition table
/dev/pts/6
18:07:54
#for i in {1..5}; do lvcreate -L1G -n vv$i /dev/TEST_VG_VOL ; done
  Logical volume "vv1" created
  Logical volume "vv2" created
  Logical volume "vv3" created
  Logical volume "vv4" created
  Logical volume "vv5" created
/dev/pts/7
18:07:54
#for i in {1..5}; do lvcreate -L1G -n vv$i /dev/TEST_VG_VOL ; done
  Logical volume "vv1" created
  Logical volume "vv2" created
  Logical volume "vv3" created
  Logical volume "vv4" created
  Logical volume "vv5" created
/dev/pts/6
18:12:12
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/TEST_VG_VOL/vol1
  VG Name                TEST_VG_VOL
  LV UUID                2rQ2rD-nDBg-cmfk-oLBT-Qbkw-1uJe-c6FnEP
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                4.00 GB
  Current LE             1024
  Segments               1
...
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.00 GB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:7
/dev/pts/7
18:12:12
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/TEST_VG_VOL/vol1
  VG Name                TEST_VG_VOL
  LV UUID                2rQ2rD-nDBg-cmfk-oLBT-Qbkw-1uJe-c6FnEP
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                4.00 GB
  Current LE             1024
  Segments               1
...
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                1.00 GB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:7
/dev/pts/6
18:12:19
#lvs
  LV   VG          Attr   LSize Origin Snap%  Move Log Copy%  Convert
  vol1 TEST_VG_VOL -wi-a- 4.00G
  vv1  TEST_VG_VOL -wi-a- 1.00G
  vv2  TEST_VG_VOL -wi-a- 1.00G
  vv3  TEST_VG_VOL -wi-a- 1.00G
  vv4  TEST_VG_VOL -wi-a- 1.00G
  vv5  TEST_VG_VOL -wi-a- 1.00G
/dev/pts/7
18:12:19
#lvs
  LV   VG          Attr   LSize Origin Snap%  Move Log Copy%  Convert
  vol1 TEST_VG_VOL -wi-a- 4.00G
  vv1  TEST_VG_VOL -wi-a- 1.00G
  vv2  TEST_VG_VOL -wi-a- 1.00G
  vv3  TEST_VG_VOL -wi-a- 1.00G
  vv4  TEST_VG_VOL -wi-a- 1.00G
  vv5  TEST_VG_VOL -wi-a- 1.00G
/dev/pts/6
18:12:26
#mkfs.ext3 /dev/TEST_VG_VOL/vol1
mke2fs 1.41.5 (23-Apr-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
262144 inodes, 1048576 blocks
52428 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
/dev/pts/7
18:12:26
#mkfs.ext3 /dev/TEST_VG_VOL/vol1
mke2fs 1.41.5 (23-Apr-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
262144 inodes, 1048576 blocks
52428 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1073741824
32 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
/dev/pts/6
18:14:34
#df /mnt
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/TEST_VG_VOL-vol1
                       4128448    139388   3779348   4% /mnt
/dev/pts/7
18:14:34
#df /mnt
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/TEST_VG_VOL-vol1
                       4128448    139388   3779348   4% /mnt
/dev/pts/6
18:14:42
#df -h /mnt
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/TEST_VG_VOL-vol1
                      4.0G  137M  3.7G   4% /mnt
/dev/pts/7
18:14:42
#df -h /mnt
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/TEST_VG_VOL-vol1
                      4.0G  137M  3.7G   4% /mnt
/dev/pts/6
18:14:52
#umount /mnt

/dev/pts/7
18:14:52
#umount /mnt

/dev/pts/6
18:16:17
#lvextend --help
  lvextend: Add space to a logical volume
lvextend
        [-A|--autobackup y|n]
        [--alloc AllocationPolicy]
        [-d|--debug]
        [-f|--force]
        [-h|--help]
        [-i|--stripes Stripes [-I|--stripesize StripeSize]]
        {-l|--extents [+]LogicalExtentsNumber[%{VG|PVS|FREE}] |
         -L|--size [+]LogicalVolumeSize[kKmMgGtTpPeE]}
        [-m|--mirrors Mirrors]
        [-n|--nofsck]
        [-r|--resizefs]
        [-t|--test]
        [--type VolumeType]
        [-v|--verbose]
        [--version]
        LogicalVolume[Path] [ PhysicalVolumePath... ]
/dev/pts/7
18:16:17
#lvextend --help
  lvextend: Add space to a logical volume
lvextend
        [-A|--autobackup y|n]
        [--alloc AllocationPolicy]
        [-d|--debug]
        [-f|--force]
        [-h|--help]
        [-i|--stripes Stripes [-I|--stripesize StripeSize]]
        {-l|--extents [+]LogicalExtentsNumber[%{VG|PVS|FREE}] |
         -L|--size [+]LogicalVolumeSize[kKmMgGtTpPeE]}
        [-m|--mirrors Mirrors]
        [-n|--nofsck]
        [-r|--resizefs]
        [-t|--test]
        [--type VolumeType]
        [-v|--verbose]
        [--version]
        LogicalVolume[Path] [ PhysicalVolumePath... ]
/dev/pts/6
18:17:32
#lvresize -L+1G /dev/TEST_VG_VOL/vol1
  Extending logical volume vol1 to 5.00 GB
  Logical volume vol1 successfully resized
/dev/pts/7
18:17:32
#lvresize -L+1G /dev/TEST_VG_VOL/vol1
  Extending logical volume vol1 to 5.00 GB
  Logical volume vol1 successfully resized
/dev/pts/6
18:18:43
#apt-get install ext2resize
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  ext2resize
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 209kB of archives.
After this operation, 377kB of additional disk space will be used.
Get:1 http://127.0.0.1 sid/main ext2resize 1.1.19-9 [209kB]
Fetched 209kB in 0s (1692kB/s)
Selecting previously deselected package ext2resize.
(Reading database ... 55274 files and directories currently installed.)
Unpacking ext2resize (from .../ext2resize_1.1.19-9_i386.deb) ...
Processing triggers for man-db ...
Setting up ext2resize (1.1.19-9) ...
/dev/pts/7
18:18:43
#apt-get install ext2resize
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  ext2resize
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 209kB of archives.
After this operation, 377kB of additional disk space will be used.
Get:1 http://127.0.0.1 sid/main ext2resize 1.1.19-9 [209kB]
Fetched 209kB in 0s (1692kB/s)
Selecting previously deselected package ext2resize.
(Reading database ... 55274 files and directories currently installed.)
Unpacking ext2resize (from .../ext2resize_1.1.19-9_i386.deb) ...
Processing triggers for man-db ...
Setting up ext2resize (1.1.19-9) ...
/dev/pts/6
18:19:29
#ext2online /dev/TEST_VG_VOL/vol1
ext2online v1.1.19 - 2001/03/18 for EXT2FS 0.5b
/dev/pts/7
18:19:29
#ext2online /dev/TEST_VG_VOL/vol1
ext2online v1.1.19 - 2001/03/18 for EXT2FS 0.5b
/dev/pts/6
18:19:52
#pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               TEST_VG_VOL
  PV Size               9.32 GB / not usable 2.41 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2386
  Free PE               850
  Allocated PE          1536
  PV UUID               E8grzY-XQm6-xMlr-79eA-Co1F-cPmp-ZaAH3B
  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               TEST_VG_VOL
  PV Size               9.32 GB / not usable 2.44 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2386
  Free PE               1362
  Allocated PE          1024
  PV UUID               pmK8xN-dC2H-uAAz-3g2V-3DQc-n3Fr-nUiLjg
/dev/pts/7
18:19:52
#pvdisplay
  --- Physical volume ---
  PV Name               /dev/sdb1
  VG Name               TEST_VG_VOL
  PV Size               9.32 GB / not usable 2.41 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2386
  Free PE               850
  Allocated PE          1536
  PV UUID               E8grzY-XQm6-xMlr-79eA-Co1F-cPmp-ZaAH3B
  --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               TEST_VG_VOL
  PV Size               9.32 GB / not usable 2.44 MB
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              2386
  Free PE               1362
  Allocated PE          1024
  PV UUID               pmK8xN-dC2H-uAAz-3g2V-3DQc-n3Fr-nUiLjg
/dev/pts/6
18:20:39
#fdisk -l /dev/sdb
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xce5cf3c1
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        2434     9775552+  83  Linux
/dev/sdb3            2435       38913   293017567+   5  Extended
/dev/sdb5            2435        3651     9775521   83  Linux
/dev/sdb6            3652        4867     9767488+  83  Linux
/dev/sdb7            4868       38913   273474463+  83  Linux
/dev/pts/7
18:20:39
#fdisk -l /dev/sdb
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xce5cf3c1
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1217     9775521   83  Linux
/dev/sdb2            1218        2434     9775552+  83  Linux
/dev/sdb3            2435       38913   293017567+   5  Extended
/dev/sdb5            2435        3651     9775521   83  Linux
/dev/sdb6            3652        4867     9767488+  83  Linux
/dev/sdb7            4868       38913   273474463+  83  Linux
/dev/pts/6
18:23:03
#pvcreate /dev/sdb5
  Physical volume "/dev/sdb5" successfully created
/dev/pts/7
18:23:03
#pvcreate /dev/sdb5
  Physical volume "/dev/sdb5" successfully created
/dev/pts/6
18:23:36
#vgextend --help
  vgextend: Add physical volumes to a volume group
vgextend
        [-A|--autobackup y|n]
        [-d|--debug]
        [-h|--help]
        [-t|--test]
        [-v|--verbose]
        [--version]
        VolumeGroupName PhysicalDevicePath [PhysicalDevicePath...]
/dev/pts/7
18:23:36
#vgextend --help
  vgextend: Add physical volumes to a volume group
vgextend
        [-A|--autobackup y|n]
        [-d|--debug]
        [-h|--help]
        [-t|--test]
        [-v|--verbose]
        [--version]
        VolumeGroupName PhysicalDevicePath [PhysicalDevicePath...]
/dev/pts/6
18:24:05
#vgdisplay
  --- Volume group ---
  VG Name               TEST_VG_VOL
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  8
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                6
  Open LV               1
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               18.64 GB
  PE Size               4.00 MB
  Total PE              4772
  Alloc PE / Size       2560 / 10.00 GB
  Free  PE / Size       2212 / 8.64 GB
  VG UUID               evk7UV-cG3i-snTY-BYXK-n8w6-tTaC-fj13i4

Статистика

Время первой команды журнала17:00:00 2009- 5-30
Время последней команды журнала18:24:05 2009- 5-30
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %13.86
Процент синтаксически неверно набранных команд, % 3.96
Суммарное время работы с терминалом *, час 1.40
Количество командных строк в единицу времени, команда/мин 1.20
Частота использования команд
pvcreate10|=========| 9.35%
file10|=========| 9.35%
umount8|=======| 7.48%
apt-get8|=======| 7.48%
fdisk6|=====| 5.61%
apt-cache6|=====| 5.61%
vgcreate4|===| 3.74%
mount4|===| 3.74%
pvdisplay4|===| 3.74%
lvdisplay4|===| 3.74%
df4|===| 3.74%
lvs4|===| 3.74%
vgdisplay3|==| 2.80%
qemu2|=| 1.87%
дмы2|=| 1.87%
lvresize2|=| 1.87%
mkfs.ext32|=| 1.87%
for2|=| 1.87%
aoe-stat2|=| 1.87%
vgextend2|=| 1.87%
!qem2|=| 1.87%
ext2online2|=| 1.87%
grep2|=| 1.87%
lvextend2|=| 1.87%
ls2|=| 1.87%
do2|=| 1.87%
lvcreate2|=| 1.87%
lsmod2|=| 1.87%
done2|=| 1.87%
____
*) Интервалы неактивности длительностью 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$