Skip to content

Instantly share code, notes, and snippets.

@phainamikaze
Last active June 20, 2022 11:42
Show Gist options
  • Select an option

  • Save phainamikaze/dbc1740f5a658fe37d5a7417b9cb0496 to your computer and use it in GitHub Desktop.

Select an option

Save phainamikaze/dbc1740f5a658fe37d5a7417b9cb0496 to your computer and use it in GitHub Desktop.
echo 1>/sys/class/block/sdd/device/rescan
Run the growpart <DeviceName> <PartionNumber> command to resize the partition.
The following example shows that the first partition /dev/sda1 of the system disk is resized:
[root@ecshost ~]# growpart /dev/sda 1
CHANGED: partition=1 start=2048 old: size=83883999 end=83886047 new: size=209713119 end=209715167
[root@ecshost ~]# resize2fs /dev/sda1
@phainamikaze
Copy link
Author

lvresize for lvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment