resize2fs

From wikieduonline
Revision as of 07:59, 3 March 2023 by Brave (talk | contribs)
Jump to navigation Jump to search

resize2fs ext2/ext3/ext4 file system resizer

resize2fs /dev/nvme1n1
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/nvme1n1 is mounted on /mount/path; on-line resizing required
old_desc_blocks = 63, new_desc_blocks = 94
The filesystem on /dev/nvme1n1 is now 196608000 blocks long.


resize2fs /dev/mapper/VolGroup-lv_root
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs 1.45.6 (20-Mar-2020)
The filesystem is already 16646144 (4k) blocks long.  Nothing to do!
resize2fs /dev/root
The filesystem is already 2068731 (4k) blocks long.  Nothing to do!
Review: growpart
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs 1.45.6 (20-Mar-2020)
Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted on /; on-line resizing required
old_desc_blocks = 8, new_desc_blocks = 16
The filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv is now 33291264 (4k) blocks long.


resize2fs /path/todir
resize2fs 1.42.9 (28-Dec-2013)
open: Is a directory while opening /path/todir

Activities

  1. Extend LVM on qcow2 images

Related commands

See also

scan: pvscan vgscan
LVM: lvs lvmscan lvm fullreport lvmreport lvmconfig lvmdump lvmcheck lvm dumpconfig
Scan: pvs vgs lvs pvscan vgscan
PV: pvcreate pvremove pvscan pvremove pvscan pvs pvchange pvck pvdisplay pvresize
LV: lvdisplay lvcreate lvremove, lvresize, lvextend, lvreduce, lvrename
VG: vgdisplay,vgcreate,vgremove, vgextend, vgreduce, vgscan, vgchange, vgrename, vgcfgbackup, vgcfgrestore, vgimportclone, vgck
Check commands: pvck vgck

Advertising: