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

Содержание

Журнал

Пятница (02/24/12)

/dev/pts/2
10:11:54
#lvresize --help
  lvresize: Resize a logical volume
lvresize
        [-A|--autobackup y|n]
        [--alloc AllocationPolicy]
        [-d|--debug]
        [-f|--force]
        [-h|--help]
        [-i|--stripes Stripes [-I|--stripesize StripeSize]]
        {-l|--extents [+|-]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}] |
         -L|--size [+|-]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
        [-n|--nofsck]
        [--noudevsync]
        [-r|--resizefs]
        [-t|--test]
        [--type VolumeType]
        [-v|--verbose]
        [--version]
        LogicalVolume[Path] [ PhysicalVolumePath... ]
/dev/pts/1
10:12:08
#lvresize -L +2G /dev/VG0/vol1
  Extending logical volume vol1 to 4,00 GiB
  Logical volume vol1 successfully resized
/dev/pts/2
10:12:08
#lvresize -L +2G /dev/VG0/vol1
  Extending logical volume vol1 to 4,00 GiB
  Logical volume vol1 successfully resized
/dev/pts/1
10:13:24
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                29CgQS-sG8A-1AEB-IPu8-k3BW-qtDI-BBadGk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
/dev/pts/2
10:13:24
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                29CgQS-sG8A-1AEB-IPu8-k3BW-qtDI-BBadGk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
/dev/pts/1
10:14:15
#history
   32  apt-file search -x ^/bin/ls$
   33  apt-file search -x /bin/ls
   34  apt-get install bridge-utils
   35  brctl show
   36  brctl addbr br0
   37  brctl show
   38  ifconfig
   39  ping 192.168.10.5
   40  ping 192.168.10.5
   41  ping 192.168.10.5
...
  522  history|grep lvresize
  523  lvresize
  524  lvresize --help
  525  file -s /dev/sda7
  526  fdisk /dev/sda7
  527  lvresize --help
  528  lvresize -L +2G /dev/VG0/vol1
  529  lvdisplay
  530  history|grep fsadm
  531  history
/dev/pts/2
10:14:15
#history
   32  apt-file search -x ^/bin/ls$
   33  apt-file search -x /bin/ls
   34  apt-get install bridge-utils
   35  brctl show
   36  brctl addbr br0
   37  brctl show
   38  ifconfig
   39  ping 192.168.10.5
   40  ping 192.168.10.5
   41  ping 192.168.10.5
...
  522  history|grep lvresize
  523  lvresize
  524  lvresize --help
  525  file -s /dev/sda7
  526  fdisk /dev/sda7
  527  lvresize --help
  528  lvresize -L +2G /dev/VG0/vol1
  529  lvdisplay
  530  history|grep fsadm
  531  history
/dev/pts/1
10:14:27
#history|head
   33  apt-file search -x /bin/ls
   34  apt-get install bridge-utils
   35  brctl show
   36  brctl addbr br0
   37  brctl show
   38  ifconfig
   39  ping 192.168.10.5
   40  ping 192.168.10.5
   41  ping 192.168.10.5
   42   apt-get install ebtables
/dev/pts/2
10:14:27
#history|head
   33  apt-file search -x /bin/ls
   34  apt-get install bridge-utils
   35  brctl show
   36  brctl addbr br0
   37  brctl show
   38  ifconfig
   39  ping 192.168.10.5
   40  ping 192.168.10.5
   41  ping 192.168.10.5
   42   apt-get install ebtables
/dev/pts/1
10:14:39
#fsadm --help
fsadm: Utility to resize or check the filesystem on a device
  fsadm [options] check device
    - Check the filesystem on device using fsck
  fsadm [options] resize device [new_size[BKMGTPE]]
    - Change the size of the filesystem on device to new_size
  Options:
    -h | --help         Show this help message
    -v | --verbose      Be verbose
    -e | --ext-offline  unmount filesystem before ext2/ext3/ext4 resize
    -f | --force        Bypass sanity checks
    -n | --dry-run      Print commands without running them
    -l | --lvresize     Resize given device (if it is LVM device)
    -y | --yes          Answer "yes" at any prompts
  new_size - Absolute number of filesystem blocks to be in the filesystem,
             or an absolute size using a suffix (in powers of 1024).
             If new_size is not supplied, the whole device is used.
/dev/pts/2
10:14:39
#fsadm --help
fsadm: Utility to resize or check the filesystem on a device
  fsadm [options] check device
    - Check the filesystem on device using fsck
  fsadm [options] resize device [new_size[BKMGTPE]]
    - Change the size of the filesystem on device to new_size
  Options:
    -h | --help         Show this help message
    -v | --verbose      Be verbose
    -e | --ext-offline  unmount filesystem before ext2/ext3/ext4 resize
    -f | --force        Bypass sanity checks
    -n | --dry-run      Print commands without running them
    -l | --lvresize     Resize given device (if it is LVM device)
    -y | --yes          Answer "yes" at any prompts
  new_size - Absolute number of filesystem blocks to be in the filesystem,
             or an absolute size using a suffix (in powers of 1024).
             If new_size is not supplied, the whole device is used.
/dev/pts/1
10:14:53
#fsadm resize /dev/VG0/vol1
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/dm-0 is mounted on /mnt; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/dm-0 to 1048576 (4k) blocks.
The filesystem on /dev/dm-0 is now 1048576 blocks long.
/dev/pts/2
10:14:53
#fsadm resize /dev/VG0/vol1
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/dm-0 is mounted on /mnt; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/dm-0 to 1048576 (4k) blocks.
The filesystem on /dev/dm-0 is now 1048576 blocks long.
/dev/pts/1
10:15:24
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                29CgQS-sG8A-1AEB-IPu8-k3BW-qtDI-BBadGk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
/dev/pts/2
10:15:24
#lvdisplay
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                29CgQS-sG8A-1AEB-IPu8-k3BW-qtDI-BBadGk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
/dev/pts/1
10:16:22
#lvdisplay /dev/VG0/vol1
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                29CgQS-sG8A-1AEB-IPu8-k3BW-qtDI-BBadGk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
/dev/pts/2
10:16:22
#lvdisplay /dev/VG0/vol1
  --- Logical volume ---
  LV Name                /dev/VG0/vol1
  VG Name                VG0
  LV UUID                29CgQS-sG8A-1AEB-IPu8-k3BW-qtDI-BBadGk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4,00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
/dev/pts/1
10:16:52
#vgdisplay
  --- Volume group ---
  VG Name               VG0
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  11
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               4,65 GiB
  PE Size               4,00 MiB
  Total PE              1191
  Alloc PE / Size       1024 / 4,00 GiB
  Free  PE / Size       167 / 668,00 MiB
  VG UUID               AhiA0l-KDWi-VnrA-wtlB-TVo1-EpHM-hBZx3w
/dev/pts/2
10:16:52
#vgdisplay
  --- Volume group ---
  VG Name               VG0
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  11
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               4,65 GiB
  PE Size               4,00 MiB
  Total PE              1191
  Alloc PE / Size       1024 / 4,00 GiB
  Free  PE / Size       167 / 668,00 MiB
  VG UUID               AhiA0l-KDWi-VnrA-wtlB-TVo1-EpHM-hBZx3w
/dev/pts/1
10:17:14
#cp -R /lib/modules/3.2.7 /mnt/lib/modules/

/dev/pts/2
10:17:14
#cp -R /lib/modules/3.2.7 /mnt/lib/modules/

/dev/pts/1
10:18:37
#df -h /mnt
Файловая система      Разм  Исп  Дост  Исп% смонтирована на
/dev/mapper/VG0-vol1  4,0G  2,1G  1,8G  55% /mnt
/dev/pts/2
10:18:37
#df -h /mnt
Файловая система