/l3/users/eb/2009/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 |
|
#!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 |
#!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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#apt-get install lmv2
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package lmv2 |
#apt-get install lmv2
Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package lmv2 |
#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) |
#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) |
#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/> |
#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/> |
#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 |
#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 |
#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... . |
#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... . |
#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...] |
#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...] |
#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) |
#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) |
#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...] |
#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...] |
#pvcreate /dev/sdb[12]
Can't open /dev/sdb1 exclusively. Mounted filesystem? Physical volume "/dev/sdb2" successfully created |
#pvcreate /dev/sdb[12]
Can't open /dev/sdb1 exclusively. Mounted filesystem? Physical volume "/dev/sdb2" successfully created |
#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) |
#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) |
#pvcreate /dev/sdb[12]
Physical volume "/dev/sdb1" successfully created Physical volume "/dev/sdb2" successfully created |
#pvcreate /dev/sdb[12]
Physical volume "/dev/sdb1" successfully created Physical volume "/dev/sdb2" successfully created |
#file -s /dev/sdb1
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: E8grzYXQm6xMlr79eACo1FcPmpZaAH3 |
#file -s /dev/sdb1
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: E8grzYXQm6xMlr79eACo1FcPmpZaAH3 |
#file -s /dev/sdb[12]
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: E8grzYXQm6xMlr79eACo1FcPmpZaAH3 /dev/sdb2: LVM2 (Linux Logical Volume Manager) , UUID: pmK8xNdC2HuAAz3g2V3DQcn3FrnUiLj |
#file -s /dev/sdb[12]
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: E8grzYXQm6xMlr79eACo1FcPmpZaAH3 /dev/sdb2: LVM2 (Linux Logical Volume Manager) , UUID: pmK8xNdC2HuAAz3g2V3DQcn3FrnUiLj |
#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...] |
#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...] |
#vgcreate TEST_VG_VOL /dev/sdb[12]
Volume group "TEST_VG_VOL" successfully created |
#vgcreate TEST_VG_VOL /dev/sdb[12]
Volume group "TEST_VG_VOL" successfully created |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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. |
#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. |
#df /mnt
Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/TEST_VG_VOL-vol1 4128448 139388 3779348 4% /mnt |
#df /mnt
Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/TEST_VG_VOL-vol1 4128448 139388 3779348 4% /mnt |
#df -h /mnt
Filesystem Size Used Avail Use% Mounted on /dev/mapper/TEST_VG_VOL-vol1 4.0G 137M 3.7G 4% /mnt |
#df -h /mnt
Filesystem Size Used Avail Use% Mounted on /dev/mapper/TEST_VG_VOL-vol1 4.0G 137M 3.7G 4% /mnt |
#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... ] |
#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... ] |
#lvresize -L+1G /dev/TEST_VG_VOL/vol1
Extending logical volume vol1 to 5.00 GB Logical volume vol1 successfully resized |
#lvresize -L+1G /dev/TEST_VG_VOL/vol1
Extending logical volume vol1 to 5.00 GB Logical volume vol1 successfully resized |
#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) ... |
#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) ... |
#ext2online /dev/TEST_VG_VOL/vol1
ext2online v1.1.19 - 2001/03/18 for EXT2FS 0.5b |
#ext2online /dev/TEST_VG_VOL/vol1
ext2online v1.1.19 - 2001/03/18 for EXT2FS 0.5b |
#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 |
#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 |
#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 |
#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 |
#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...] |
#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...] |
#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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008