Operating System - Linux
1819804 Members
2919 Online
109607 Solutions
New Discussion юеВ

Hard disk added but not recognized by the Os (RHEL4)

 
Max Fontana
Occasional Advisor

Hard disk added but not recognized by the Os (RHEL4)

Hi!
I've recently added a fourth Scsi Hard disk to my
Proliant ML350 configured as follow :
SmartArray Controller 641 with 3 72Gb Scsi h.disks.(raid5)
I installed on my RHEL4 the HP Array configuration Utility and did the following steps:
1) Expanded my array
2) Expanded my logical Volume
Everything ok . Now I can see 4 physical drives
and a new total space increased of 72gb(obviously..)
The problem is that the operating system seems not to recognize the new free space . I come from Windows's world and Linux is a completely new territory to explore for me so....would you be so kind to tell me what I should do in order to see these added 72Gbs?? many many thanks in advance.
Max (Italy)
8 REPLIES 8
Stuart Browne
Honored Contributor

Re: Hard disk added but not recognized by the Os (RHEL4)

So 'fdisk' etc. aren't reporting the new disk size, right..

What you ned to do is tell the RAID controller to re-read the disk sizes.

You should be able to do the following to get it done:

echo "rescan" > /proc/scsi/cciss0/1

Have a read through the kernel documentation's "cciss.txt".

Failing that, a reboot'll do it.
One long-haired git at your service...
Max Fontana
Occasional Advisor

Re: Hard disk added but not recognized by the Os (RHEL4)

I didn't try the command you suggested but I rebooted the server immediately after the expansion process but with no luck :-( .
Any other suggestion ?
Thanks again!
max
Max Fontana
Occasional Advisor

Re: Hard disk added but not recognized by the Os (RHEL4)

Maybe should I use the lvextend command? If I type lvdisplay , here is what I get :
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID 0QlVVm-W4ZY-tSLv-syu6-qS6J-b2u9-2Ed13l
LV Write Access read/write
LV Status available
# open 1
LV Size 133,56 GB
Current LE 4274
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0
What should be the correct syntax to use with the lvextend command ?
Ivan Ferreira
Honored Contributor

Re: Hard disk added but not recognized by the Os (RHEL4)

Does fdisk -l reports the new disk size?

The filesystem won't report the new disk size until you extend the file system, but first, the physical disk (fdisk -l) should report the rigth size.

Also, would be interesting the output of fdisk -l and df -h.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Max Fontana
Occasional Advisor

Re: Hard disk added but not recognized by the Os (RHEL4)

This is what I see typing fdisk -l
Disk /dev/cciss/c0d0: 218.5 GB, 218501038080 bytes
255 heads, 63 sectors/track, 26564 cylinders
Units = cilindri of 16065 * 512 = 8225280 bytes

Dispositivo Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 17709 142143120 8e Linux LVM
The disk size seems to be corrextly recognized..
Max Fontana
Occasional Advisor

Re: Hard disk added but not recognized by the Os (RHEL4)

I forgot the output of df -h

/dev/mapper/VolGroup00-LogVol00
132G 33G 93G 26% /
/dev/cciss/c0d0p1 99M 19M 75M 20% /boot
none 1014M 0 1014M 0% /dev/shm
....still wrong :-//
Ivan Ferreira
Honored Contributor

Re: Hard disk added but not recognized by the Os (RHEL4)

Please also post the output of:

pvdisplay
vgdisplay -v

You may need to use pvresize to extend the physical disk. But there is a problem:

# pvresize
Command not implemented yet.

So, you may need to destroy, recreate the vg, and restore the data!!!!
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Max Fontana
Occasional Advisor

Re: Hard disk added but not recognized by the Os (RHEL4)

[root@mail init.d]# pvdisplay
--- Physical volume ---
PV Name /dev/cciss/c0d0p2
VG Name VolGroup00
PV Size 135,53 GB / not usable 0
Allocatable yes
PE Size (KByte) 32768
Total PE 4337
Free PE 1
Allocated PE 4336
PV UUID XAEWQR-s1qj-Cj5K-gv0W-9ndt-lroN-35ZvNE
..........
[root@mail init.d]# vgdisplay -v
Finding all volume groups
Finding volume group "VolGroup00"
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 135,53 GB
PE Size 32,00 MB
Total PE 4337
Alloc PE / Size 4336 / 135,50 GB
Free PE / Size 1 / 32,00 MB
VG UUID hVHrwV-Dt53-wbGa-ZwHQ-ZWcX-t5Tm-vQIVUu

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID 0QlVVm-W4ZY-tSLv-syu6-qS6J-b2u9-2Ed13l
LV Write Access read/write
LV Status available
# open 1
LV Size 133,56 GB
Current LE 4274
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID Apww83-TFLq-KqM9-zwEt-zPAW-a3J8-EPP8j7
LV Write Access read/write
LV Status available
# open 1
LV Size 1,94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1

--- Physical volumes ---
PV Name /dev/cciss/c0d0p2
PV UUID XAEWQR-s1qj-Cj5K-gv0W-9ndt-lroN-35ZvNE
PV Status allocatable
Total PE / Free PE 4337 / 1

Waiting for your precious info's....
many thanks !