i have installed RHEL on virtual machine using vmware. i have added the extra hard drive from vmware.
Now Linux is not showing that new hard drive installed.
HOw can i do that
|
feedback
|
|
Procedure that I use after you add the disk:
| ||||
|
feedback
|
|
You need to use LVM. Just read section 9.5.6. Extending a volume group from http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-system-config-lvm.html | |||||
feedback
|
|
If you've added the drive while the guest OS is still running, it doesn't know about the new drive yet. There are ways to force a system to look for new disks by forcing a scsi system scan. The easiest way to do this is to simply reboot the guest. | |||
|
feedback
|
|
If you hot added a
This should give you lots of information about the SCSI disks discovered. If for some reason you do not want/can reboot and the disk was not discovered, you can force a rescan of the SCSI bus by doing:
Where
If you have only one SCSI controller, then it should be Once you executed this command the disk should be available if the vmware version supports hotadding disks. Look at the output of dmesg again. If the version of vmware does not support hotadd (meaning it does not inform the guest os about this new hardware), just reboot. After this, if the disk is not formatted you should do it. Decide whether you want to use LVM, or other type of partitions / filesystems. You could use fdisk, parted, etc, to create this partitions. Finally you can mount the new partition by doing
Where could be something like sdb1. and | |||
|
feedback
|
|
Before adding the new drive, simple shutdown the VM then add the the new Disk then power on the VM again. Now you can check the new HDD via fdisk command/ use: fdisk -l - show all the available partitions and disks. If you want to partion the new drive then use the below commands fdisk /dev/sdb - I assume sdb is the new drive, please check in your case then press n for new partition rest follow the screen instructions they are pretty straight forward. Thanks & Regards Ramesh Kumar http://linuxtrove.com | |||
|
feedback
|