First off, VMWare, like many other hypervisors, allows to create a second HDD on the fly while the vm is running.
Once that was done, login into the server and:
# echo “- – -” > /sys/class/scsi_host/host#/scanpartprobe should also do the trick
Just to see that the new disk is available use:
# fdisk -lIn this case it was /dev/sdb
create a new partition with
# fdisk /dev/sdbpress n and then w
Format the new partition:
# mkfs.ext3 /dev/sdb1list the volume groups:
# vgsadd new physical volume
# pvcreate /dev/sdb1extend the default volume group from the vgs command
# vgextend VolGroup /dev/sdb1check to see pv and vg has another volume with:
# vgsAnd list logical volumes
# lvdisplayextend my / volume by the entire size of /dev/sdb1
# lvextend /dev/VolGroup/lv_root/dev/sdb1resize filesystem to match vol size increase
# resize2fs /dev/VolGroup/lv_root(requires a 2.6 kernel to resize while fs running)
No comments:
Post a Comment