hot-add disk in oracle enterprise linux 5.5

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat hot-add disk in oracle enterprise linux 5.5
# 1  
Old 09-22-2011
hot-add disk in oracle enterprise linux 5.5

Hi all,

I have an Oracle Enterprise Linux 5.5 server which is a virtual guest on a vSphere host.

I have provisioned 500GB disk space from SAN. I then migrated the VM from a 200GB disk onto the new 500GB disk. I then increased the disk space allocated to the VMware to the maximum size of 500GB which all went without a problem.

I am having an issue where i want to make the Linux kernel see the extra provisioned space.

when i try to run the following command which should rescan the scsi disks it doesnt seem to run the scan:

Code:
echo "- - -" > /sys/class/scsi_host/scan

it just returns to the prompt and when i do an ls -l the scan file appears to just be wiped out, not even that it replaced the contents with - - -.

So i rebooted the box and it saw the extra disk and the scan file returned to the original size of 4096.

My question is, i currently have 9 Linux servers and will have about 20 by the time i finish building the rest, hot-adding disk would be very useful but could anyone give me some advice on how to do it, or what i did wrong with the scan file?

Cheers,
Tom
# 2  
Old 09-22-2011
Another option would be to find the script (open sourced) rescan_scsi_bus.sh

that will do what you need.
# 3  
Old 09-23-2011
Quote:
Another option would be to find the script (open sourced) rescan_scsi_bus.sh

that will do what you need.
Unfortunately that did not do what i need. This scan's for new devices, as its not a new device its just an extension of an existing device it doesn't find anything.

I need something that will see that there is extra disk space available.

Code:
Disk /dev/sda: 139.5 GB, 139586437120 bytes
255 heads, 63 sectors/track, 16970 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26       10468    83883397+  8e  Linux LVM
/dev/sda3           10469       15690    41945715   8e  Linux LVM

As you can see, it thinks there is only 1 available disk of size 139.5GB, if i increase the size of the disk space by 5GB on the Virtual Host i want fdisk to be able to see that without a reboot.

I have also tried creating a new partition to see if it knows to update to the last cyclinder instead of the 139.5GB end cyclinder, but this didnt work either.

can i manually edit or is there a command to edit one of the /proc files or a /dev file?
# 4  
Old 09-23-2011
Oh, what about the resize2fs commands?

I misread what you were doing. I thought you were moving drives.
# 5  
Old 09-26-2011
i thing without reboot u cont get it

just a try
run kudzu and check it
# 6  
Old 09-26-2011
Quote:
Oh, what about the resize2fs commands?
I had a look at those but they are only for file system sizing.

Quote:
i thing without reboot u cont get it

just a try
run kudzu and check it
Code:
class: HD
bus: SCSI
detached: 0
device: sda
desc: "VMware Virtual disk"
host: 0
id: 0
channel: 0
lun: 0

It shows the hardware device /dev/sda but it doesnt seem to pick up on the allocated size at all.

Thanks for the effort but i will keep looking and if i find anything will let you know, or if you do happen to think of anything else its always worth a try.

Last edited by Tommyk; 09-26-2011 at 05:10 AM.. Reason: quote
# 7  
Old 09-26-2011
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Linux

Oracle Enterprise Linux

Simple question: i need a linux distro wich support Veritas Storage,Veritas said Oracle Enterprise Linux is supported. The question is: where to download Oracle Enterprise Linux? I have tried https://edelivery.oracle.com But i found only Oracle Linux Server aka unbreakable Linux. Where to... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

2. UNIX for Advanced & Expert Users

Linux fdisk question (Oracle Enterprise Linux)

OS: Oracle Enterprise Linux 6.2 Hypervisor: VMWare workstation 9 I created a VM and attached a 7gb virtual disk to it. Using fdisk , I partioned the disk like below. The filesystems mounted on this is working fine. But I am seeing the message Partition n does not end on cylinder boundary.... (2 Replies)
Discussion started by: kraljic
2 Replies

3. Red Hat

OEL5.5 hot add disk

Hi All, I have an issue when trying to hot-add a SAN disk to an oracle enterprise linux 5.5 server. The storage array we are using is an HP 24000, we have no issues with the disk usage for both ASM and LVM setup, it is just a simple matter of not being able to scan for new disk when it is... (4 Replies)
Discussion started by: Tommyk
4 Replies
Login or Register to Ask a Question