Created
September 28, 2018 20:01
-
-
Save renalexster/0bf9beb9c302ec7c31f6d746dd2aae4e to your computer and use it in GitHub Desktop.
LVM adding disk and extend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. hot detect HDD | |
echo "- - -" >/sys/class/scsi_host/host0/scan | |
echo "- - -" >/sys/class/scsi_host/host1/scan | |
echo "- - -" >/sys/class/scsi_host/host2/scan | |
2. configure fdisk use type 8e (LVM) | |
3. Add disk to physical volume | |
pvcreate /dev/sdc1 | |
4. Extend Volume group | |
vgextend LNXMATRIZUBU1604x64-vg /dev/sdc1 | |
5. Logical Volume extend | |
lvextend -l +90%FREE /dev/LNXMATRIZUBU1604x64-vg/var | |
6. Resize partition | |
resize2fs /dev/LNXMATRIZUBU1604x64-vg/var |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment