How to add new volume in VM online (SLES)
Posted by dr.watson - on November 3rd, 2008 in Operating Systems, Storage, Tips |

Your customer want you to add a new volume in one of the VM SLES server but can not affort down time? No worry, you can do that easily with ESX.
Below is step by step guide with screen captured from the VM (my test machine is running on SLES10 SP2):
Tip: It is best to do a snapshot before you start this task, incase anything goes wrong.
Tip: Run following as root.
In this screen I actually run following commands:
a)# cat /proc/partitions
This will show the current volume in the server, which is the first portion in the screen capture. What we have on the server is only /dev/sda.
b)# rescan-scsi-bus.sh
This command will do a scan for all the /dev/sdx you have on the server. The new volume that we just add will get detected and show as /dev/sdb in my case.
c)# cat /proc/partitions
This is just to show the volume on the server again to confirm I got the new volume detected.
Or you are using reiserfs? Please refer to following screen capture:
Modify /etc/fstab by adding a line which point /dev/sdb1 (the new volume) to moint into /sles (your mount point). The screen capture is for ReiserFS. If you are using EXT3, you may replace the “reiserfs” to “ext3” in the same line.
And, your job is done. No reboot required. Have fun.
Related posts:







