cancel
Showing results for 
Search instead for 
Did you mean: 

Extending EVA Vdisk.

SOLVED
Go to solution
Mousa55
Super Advisor

Extending EVA Vdisk.

Hi All,

i Increase the size of a Vdisk at the EVA SAN level from 350GB to 450GB. (disk already live and being used)

but when i rescan disck on unix (iosca -fnC disk) i don't see any new disk. but i can see the new size (450GB) when check the disk size by diskinfo command.
# diskinfo /dev/rdsk/c16t0d1
SCSI describe of /dev/rdsk/c16t0d1:
vendor: HP
product id: HSV210
type: direct access
size: 471859200 Kbytes
bytes per sector: 512

but there is no free PE on vg01 to extend the lvol's

# vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 7
Open LV 7
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1375
VGDA 2
PE Size (Mbytes) 256
Total PE 1375
Alloc PE 1375
Free PE 0
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0

How i can solving this problem ?

Thanks
16 REPLIES
Torsten.
Acclaimed Contributor
Solution

Re: Extending EVA Vdisk.

You hopefully run 11.23 or 11.31.

In this case you need to use "vgmodify" to adjust the LVM structure.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Shibin_2
Honored Contributor

Re: Extending EVA Vdisk.

Of course, you can't see new disk as you extended the same disk at SAN.

If you are using HP-UX 11.23, need to install vgmodify to do this.

If you are running HP-UX 11.31, vgmodify is available and you can do that.
Regards
Shibin
Mousa55
Super Advisor

Re: Extending EVA Vdisk.

Hi,
i using 11.23 version.

and Can you explain more how to use vgmodify command?

/dev/vg01/lvol1 /u01
/dev/vg01/lvol2 /u02
/dev/vg01/lvol3 /u03
/dev/vg01/lvol4 /u04
/dev/vg01/lvol5 /u05
/dev/vg01/lvol6 /u06
/dev/vg01/lvol7 /u07

thanks
Torsten.
Acclaimed Contributor

Re: Extending EVA Vdisk.

Refer to

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mousa55
Super Advisor

Re: Extending EVA Vdisk.

Hi,

# vgmodify -r -v /dev/vg01
# vgchange -a n /dev/vg01
# vgchange -a n /dev/vg01
# vgmodify -v /dev/vg01
# vgmodify -v /dev/vg01
# vgchange -a y -l -p -s /dev/vg01
# vgchange -a y /dev/vg01
# vgdisplay -v /dev/vg01
# vgmodify -tv /dev/vg01
# vgmodify -v -r -e 2000 -p 30 /dev/vg01
# vgmodify -v -e 2000 -p 30 /dev/vg01
# vgchange -a n /dev/vg01
# vgmodify -v -e 2000 -p 30 /dev/vg01
# vgchange -a y -l -p -s /dev/vg01
# vgchange -a y /dev/vg01
# vgdisplay -v /dev/vg01

This a correct steps.

Thanks

Torsten.
Acclaimed Contributor

Re: Extending EVA Vdisk.

Just refer to the chapter

"Performing an offline DLE"



detailed steps depend on your current configuration.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mousa55
Super Advisor

Re: Extending EVA Vdisk.

Hi,

i facing this message

"
# vgmodify -t -v -n vg01
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1375
PE Size (Mbytes) 256
VGRA Size (Kbytes) 240

VGRA space (Kbytes) on Physical Volumes with extents in use:
PV current -n
/dev/rdsk/c8t0d1 896 262144
Summary 896 262144
Physical Extent zero is not free on all PVs. You will not achieve these
values until the first extent is made free (see pvmove(1M)) on all the
following disks:
/dev/rdsk/c8t0d1
"

Thanks
Torsten.
Acclaimed Contributor

Re: Extending EVA Vdisk.

So you need to free up the first PE using pvmove, see chapter "Physical extent renumbering (-n option) and pvmove enhancement"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mousa55
Super Advisor

Re: Extending EVA Vdisk.

Hi,

but i also facing this error "

# pvmove -n /dev/vg01/lvol7 /dev/dsk/c8t0d1
pvmove: Not enough free physical extents available.
Logical volume "/dev/vg01/lvol7" could not be extended.
pvmove: Cannot find a free physical extent for logical extent 0
of logical volume "/dev/vg01/lvol7".
"

Thanks
Torsten.
Acclaimed Contributor

Re: Extending EVA Vdisk.

What is the result of

# vgmodify â v â r vg01

and

# vgmodify -t -v vg01

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Extending EVA Vdisk.

# vgmodify -v -r vg01

and

# vgmodify -t -v vg01

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mousa55
Super Advisor

Re: Extending EVA Vdisk.

Hi,

# vgmodify -v -r vg01
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1375
PE Size (Mbytes) 256
VGRA Size (Kbytes) 240
/dev/rdsk/c8t0d1 Warning: Max PE per PV for the volume group (1375) too small for this PV (1799).
Using only 1375 PEs from this physical volume.
"/dev/rdsk/c8t0d1" size changed from 360710144 to 471859200kb
An update to the Volume Group IS required


New Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1375
PE Size (Mbytes) 256
VGRA Size (Kbytes) 240
Review complete. Volume group not modified

==============

# vgmodify -t -v vg01
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1375
PE Size (Mbytes) 256
VGRA Size (Kbytes) 240

VGRA space (Kbytes) on Physical Volumes with extents in use:
PV current -n
/dev/rdsk/c8t0d1 896 262144
Summary 896 262144

Volume Group optimized settings (no PEs renumbered):
max_pv(-p) max_pe(-e) Disk size (Mb)
1 65535 16776961
2 53756 13761537
3 35836 9174017
4 26876 6880257
5 21500 5504001
6 17916 4586497
7 15356 3931137
8 13308 3406849
9 11772 3013633
10 10748 2751489
11 9724 2489345
12 8956 2292737
13 8188 2096129
14 7676 1965057
15 7164 1833985
16 6652 1702913
17 6140 1571841
18 5884 1506305
19 5628 1440769
20 5372 1375233
21 5116 1309697
22 4860 1244161
23 4604 1178625
24 4348 1113089
26 4092 1047553
28 3836 982017
30 3580 916481
32 3324 850945
35 3068 785409
38 2812 719873
42 2556 654337
46 2300 588801
52 2044 523265
60 1788 457729
70 1532 392193
=============

Thanks
Torsten.
Acclaimed Contributor

Re: Extending EVA Vdisk.

First I would try to increase the max_pe value.

This is still review mode:

# vgmodify -r -e 6652 -v vg01

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mousa55
Super Advisor

Re: Extending EVA Vdisk.

Hi,

# vgmodify -r -e 6652 -v vg01


Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1375
PE Size (Mbytes) 256
VGRA Size (Kbytes) 240
The current and new Volume Group parameters differ.
"/dev/rdsk/c8t0d1" size changed from 360710144 to 471859200kb
An update to the Volume Group IS required


New Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 6652
PE Size (Mbytes) 256
VGRA Size (Kbytes) 896
Review complete. Volume group not modified
===================
# vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 7
Open LV 7
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1375
VGDA 2
PE Size (Mbytes) 256
Total PE 1375
Alloc PE 1375
Free PE 0
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0
========

What is the next step ?

Thanks
Torsten.
Acclaimed Contributor

Re: Extending EVA Vdisk.

Now do it in change mode (without -r).

# vgmodify -e 6652 -v vg01

the idea is to make it work (at least for now) without a need of another free PE.
Once you have free PEs, you can use pvmove.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Mousa55
Super Advisor

Re: Extending EVA Vdisk.

Hi,

Thank you very much, now i can see the new size.

the correct steps.

# vgmodify -v -r vg01
# vgmodify -t -v vg01
# vgmodify -r -e 6652 -v vg01 (6652 from the tale)
# umount all lvols on this VG
# fuser -ku /dev/vg01/lvol#
# vgchange -a n /dev/vg01
# vgmodify -e 6652 -v vg01
# vgchange -a y -s /dev/vg01

Done

Thanks