Extend New Disk Centos/RedHat/Ubuntu Via Comand Line

Scan for each host 
-> echo "- - -" > /sys/class/scsi_host/host0/scan
-> echo "- - -" > /sys/class/scsi_host/host1/scan
-> echo "- - -" > /sys/class/scsi_host/host2/scan

lsblk will show the new disk


#pvcreate /dev/sdb2 (new disk name)

#vgdisplay (check name disk vg)

# vgextend vg_dbmonit /dev/sdb2

# pvscan

# lvextend /dev/vg_dbmonit/Log_rot /dev/sdb2

# here's final step on the notes 

notes : 

- centos 6 resize2fs /dev/vg_dbmonit/Log_rot

- centos 7 resize2fs change to xfs_growfs /dev/vg_dbmonit/Log_rot

- centos 8 using lvextend -rl +100%FREE /dev/cl/root 

"/dev/cl/root" from vgdisplay -v for logical volume root centos 8



Posting Komentar

Lebih baru Lebih lama