Manage your hard disks

Sun 04 August 2013 by admin

Make one step forward after rediscovering newly added hard disk, simply how to resize it. In virtual world simply put the new disk size, but how to reflect this change in guest operating system:

echo 1 > /sys/block/<devname>/device/rescan

Continuing how to make them unavailable first to guest operating system in LVM style:

lvchange -an <lv_name>
vgexport <vg_name>
echo 1 >  /sys/block/<devname>/device/delete

In virtual world just remove selected hard disk.