Linux drive resize example

593 vgdisplay

594  fdisk -l

595  fdisk /dev/sda

599  shutdown -r now

600  df -h

601  fdisk -l

602  fdisk /dev/sda

603  fdisk -l

604  pvcreate /dev/sda3

605  vgdisplay

606  vgextend vg_someserver /dev/sda3

607  vgdisplay vg_someserver | grep “Free”

608  lvdisplay

610  lvextend -L+79G /dev/vg_someserver/lv_root

611  df -h

612  lvdisplay

613  df -h /

614  resize2fs /dev/vg_someserver/lv_root

615  df -h

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s