| /l3/users/vmk64646464/nt-scale/debian4.unix.nt/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 |
|
|
#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... ]
|
|
#lvresize -L +2G /dev/VG0/vol1
Extending logical volume vol1 to 4,00 GiB Logical volume vol1 successfully resized |
|
#lvresize -L +2G /dev/VG0/vol1
Extending logical volume vol1 to 4,00 GiB Logical volume vol1 successfully resized |
|
#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 |
|
#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 |
|
#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 |
|
#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 |
|
#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 |
|
#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 |
|
#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.
|
|
#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.
|
|
#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. |
|
#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. |
|
#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 |
|
#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 |
|
#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 |
|
#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 |
|
#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 |
|
#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 |
|
#df -h /mnt
Файловая система Разм Исп Дост Исп% смонтирована на /dev/mapper/VG0-vol1 4,0G 2,1G 1,8G 55% /mnt |