1833982 Members
1580 Online
110063 Solutions
New Discussion

Re: vgextend problem

 
piyut_2
Frequent Advisor

vgextend problem

dears,

when i want to extend volume group (vg04) visa SAM, there is a confirmation, " At least one of the disks you have chosen is larger than the maximum disk size allowed by volume group vg04 (50068 Mbytes). These disks can still be used, but any capacity beyond the volume group limit will be wasted.Do you want to use these disks anyway?". I choosed "Yes" from that confirmation. Before i added new disks on vg04, old size of vg04 is 100GB.

there are configurations of vg04 after i extended:

Volume Group Name: vg04
Activation Mode: Read/Write
Maximum Capacity (mbytes): 801088
Current Capacity (mbytes): 200256
Megabytes Used: 200000
Megabytes Free: 256
Max. No. of Logical Volumes: 255
Cur. No. of Logical Volumes: 1
Disk Capacity Limit (mbytes): 50068
Maximum Number of Disks: 16
Current Number of Disks: 4
Hot Spares Configured: 0

# vgdisplay -v vg04
--- Volume groups ---
VG Name /dev/vg04
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 4
Act PV 4
Max PE per PV 12517
VGDA 8
PE Size (Mbytes) 4
Total PE 50064
Alloc PE 50000
Free PE 64
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg04/lvol2
LV Status available/syncd
LV Size (Mbytes) 200000
Current LE 50000
Allocated PE 50000
Used PV 4


--- Physical volumes ---
PV Name /dev/dsk/c13t0d5
PV Name /dev/dsk/c18t0d5 Alternate Link
PV Status available
Total PE 12515
Free PE 0
Autoswitch On

PV Name /dev/dsk/c14t0d1
PV Name /dev/dsk/c19t0d1 Alternate Link
PV Status available
Total PE 12515
Free PE 0
Autoswitch On

PV Name /dev/dsk/c28t4d3
PV Name /dev/dsk/c29t4d3 Alternate Link
PV Status available
Total PE 12517
Free PE 0
Autoswitch On

PV Name /dev/dsk/c30t5d1
PV Name /dev/dsk/c31t5d1 Alternate Link
PV Status available
Total PE 12517
Free PE 64
Autoswitch On

but, when i run command bdf, the output for available disk spaceat vg04 is 118GB. you can see output from bdf command:

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 293784 748912 28% /
/dev/vg00/lvol1 393392 39824 314224 11% /stand
/dev/vg00/lvol7 3145728 2369208 773464 75% /var
/dev/logs/rotate 78643200 4904 78024136 0% /var/arc/log
/dev/vg00/lvol6 2097152 1354144 737264 65% /usr
/dev/vg00/lvol5 1048576 37024 1005000 4% /tmp
/dev/vg00/lvol4 2097152 1102328 987112 53% /opt
/dev/vg01/lvol3 3072000 2842 2877633 0% /oasis/temp
/dev/vgnewbackup/lvnewbackup
102400000 84397496 17861888 83% /newbackup
/dev/vg00/lvol8 1048576 3232 1037240 0% /home
/dev/vg06/lvol1 81920000 1138064 80369864 1% /comshare
/dev/vg01/lvol2 10240000 4618537 5275066 47% /bea
/dev/vgbackup/lvbackup
153600000 144051256 9474184 94% /backup_oasis
/dev/vg01/lvol4 5120000 4308463 760856 85% /archlog
/dev/vg03/lvol2 40960000 30452776 10449592 74% /apps11i
/dev/vg05/lvol1 81920000 3834488 77639760 5% /TST1
/dev/vg03/lvol1 52428800 50218048 2193512 96% /TEST_apps11i
/dev/vg03/lvbea 7168000 4157683 2822966 60% /BEA
/dev/vg01/lvol1 15728640 5924902 9497582 38% /oracle
/dev/vg02/lvol1 153600000 19138992 133414488 13% /archlog2
/dev/vg04/lvol2 204800000 85835728 118050000 42% /db11i


how come ?? what's wrong ??


many thanks for help me!

6 REPLIES 6
Wilfred Chau_1
Respected Contributor

Re: vgextend problem

Did you lvextend the LV and expand the filesystem?
Patrick Wallek
Honored Contributor

Re: vgextend problem

I'm confused as to where you think the problem is.

According to your vgdisplay, vg04/lvol2 is 200,000 MB. Your bdf shows:

/dev/vg04/lvol2 Total Space avail=204,800,000 KB Space used=85,835,728 KB Space Left=118,050,000 KB Percentage used=42% /db11i


The total KB for the filesystem is 204,800,000 which is 200,000 MB. You have used 85,835,728 KB and have 118,050,000 KB left available to use. All those numbers are exactly what they should be.

piyut_2
Frequent Advisor

Re: vgextend problem

i'm really sorry for my mistakes,

if looks in vgdisplay vg04, disk capacity limit is 50068 MB (max PE per PV x PE size).I added 3 disks with capacity, 50GB,50GB, and 100GB.because of dis capacity limit for vg04 only 50068 MB, so disk with size 100GB that i added to vg04 only can use 50GB.remains of this disk (50GB) is losed and wasted.it's my bad experience for me. ;-(

piyut_2
Frequent Advisor

Re: vgextend problem

dears,

how to resize PE size at volume group that had been created???
Patrick Wallek
Honored Contributor

Re: vgextend problem

The only SUPPORTED way to do this is to backup your data, vgexport the volume group, recreate the VG and the LV and then restore your data.

There is an unsupported HP utility called vgmodify that **MIGHT** work. I haven't used it. If you want that, search the forums for vgmodify.
Mark Nieuwboer
Esteemed Contributor

Re: vgextend problem

Hi piyet,

Patrick is right you have to change the pv size. create a backup remove the volume group eand recreate the volume group.
use a pe size of 16 then you can use large disk in the futher. or remove the 100G disk and put 2 smaller one's back.

grtz. Mark