System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Extending disk in Linux Centos 4.5

 
Highlighted
Frequent Advisor

Extending disk in Linux Centos 4.5

Hi all,
The server (DL360G5) installed with Smart Array P800 to connect to a MSA50 enclosure. I have added several disk to the enclosure and extended the logical drive there. The problem is, the changes is not showing in fdisk even though I have assigned all the (newly added) "Unused Space" in the array to the logical drive.

These are what I have done, so far:
- add disk to Array A
controller slot=2 array A add spares=allunassigned
- extend logical drive 1
controller slot=2 logicaldrive 1 modify size=max

how to make fdisk sees this changes, preferably without reboot?

Regards,
EF
Everything is possible, if you don't know what you're talking about.
3 REPLIES 3
Highlighted
Honored Contributor

Re: Extending disk in Linux Centos 4.5

> how to make fdisk sees this changes, preferably without reboot?

This could be the catch here that the running kernel is still unaware of your "partition table" modifications, and you might have no other choice than to reboot.

Or maybe a matter of kernel version?
What kernel did CentOS 4.5 ship (uname -r)?

But I should not reason as I don't have any experience with your particular array setup.

Madness, thy name is system administration
Highlighted
Frequent Advisor

Re: Extending disk in Linux Centos 4.5

The kernel running is 2.6.9-55.ELsmp.

Seem the cciss driver contradict itself:
[root@m5 ~]# cat /sys/block/cciss\!c1d0/size
860050224
[root@m5 ~]# cat /proc/driver/cciss/cciss1
cciss1: HP Smart Array P800 Controller
Board ID: 0x3223103c
Firmware Version: 5.20
IRQ: 66
Logical drives: 1
Current Q depth: 0
Current # commands on controller: 0
Max Q depth since init: 95
Max # commands on controller since init: 384
Max SG entries since init: 31
Sequential access devices: 0

cciss/c1d0: 440.34GB RAID 5
[root@m5 ~]#

The first command above showing the new size (about 860GB), but the second command showing the old size (440GB). And as described earlier, fdisk showing the old size:
[root@m5 ~]# fdisk -l /dev/cciss/c1d0

Disk /dev/cciss/c1d0: 440.3 GB, 440345714688 bytes
255 heads, 32 sectors/track, 105398 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c1d0p1 1 105398 430023824 83 Linux
[root@m5 ~]#

look around in google seems Linux does not have "reread disk geometry" feature/tools.


Regards,
EF
Everything is possible, if you don't know what you're talking about.
Highlighted
Honored Contributor

Re: Extending disk in Linux Centos 4.5

Try running "partprobe".