problem in resize hard disk on centos 5.8

Issues related to hardware problems
Post Reply
He3am
Posts: 19
Joined: 2013/04/07 07:07:14

problem in resize hard disk on centos 5.8

Post by He3am » 2013/09/25 19:18:52

hi
my hard disk is full i need resize disk
kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1006371
when run step 12 recived this error :The filesystem is already 12689408 blocks long. Nothing to do
what this problem ?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: problem in resize hard disk on centos 5.8

Post by TrevorH » 2013/09/25 19:46:42

How about you tell us what you've done so far rather than link to some knowledge base item with a malformed URL that isn't clickable.

He3am
Posts: 19
Joined: 2013/04/07 07:07:14

Re: problem in resize hard disk on centos 5.8

Post by He3am » 2013/09/25 20:30:03

[quote]
TrevorH wrote:
How about you tell us what you've done so far rather than link to some knowledge base item with a malformed URL that isn't clickable.[/quote]

http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1006371

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: problem in resize hard disk on centos 5.8

Post by TrevorH » 2013/09/25 21:17:07

Post the output of

[code]
fdisk -l
pvs
vgs
lvs
df -h
[/code]

He3am
Posts: 19
Joined: 2013/04/07 07:07:14

Re: problem in resize hard disk on centos 5.8

Post by He3am » 2013/09/26 06:37:40

[quote]
TrevorH wrote:
Post the output of

[code]
fdisk -l
pvs
vgs
lvs
df -h
[/code][/quote]
fdisk -l : :

[root@vps ~]# fdisk -l

Disk /dev/sda: 182.5 GB, 182536110080 bytes
255 heads, 63 sectors/track, 22192 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 6527 52323705 8e Linux LVM
/dev/sda3 6528 22192 125829112+ 83 Linux
for pvs :

[root@vps ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a-- 49.88G 0
/dev/sda3 VolGroup00 lvm2 a-- 119.97G 116.22G
for vgs :
VG #PV #LV #SN Attr VSize VFree
VolGroup00 2 2 0 wz--n- 169.84G 116.22G
for lvs :
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 52.16G
LogVol01 VolGroup00 -wi-ao 1.47G
for df -h :
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
51G 49G 0 100% /
/dev/sda1 99M 13M 81M 14% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: problem in resize hard disk on centos 5.8

Post by TrevorH » 2013/09/26 08:59:18

I see from the fdisk output that your /dev/sda3 is not tagged with partition table id 0x8e (LVM) so you might want to correct that - it should be a non-destructive operation, just fire up fdisk and tell it to tag (t) partition 3 as type 8e then write the changes. Since the partition does appear in the list of LVM Physical Volumes I think that's just cosmetic but it should really be the correct type so I would make the change even though it appears to be working now.

Otherwise, you have successfully created the new PV and added it to the VG and the freespace in the VG is available to be used. However, you don't appear to have resized the logical volume - step 11 in that link. That would be the next step

[code]
lvextend -L+nG /dev/mapper/VolGroup00-LogVol00
[/code]

where 'nG' in the command needs to be changed to e.g. 10G if you want to add 10GB to the current LV. Once that step is done you should be able to resize the filesystem on the LV.

Post Reply