1848552 Members
6704 Online
104033 Solutions
New Discussion

online lun resize 11.31

 
SOLVED
Go to solution
centurion
Frequent Advisor

online lun resize 11.31

I resize my lun at the storage-box (hp eva), no problem. But my lun in the lvm has the old size.

When I make the same procedure with a lun, which is not under lvm-control, then it works?!

Any ideas?

11.31
LVM 1.0
20 REPLIES 20
Torsten.
Acclaimed Contributor
Solution

Re: online lun resize 11.31

You need to use vgmodify to adjust the LVM layout.

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!   
centurion
Frequent Advisor

Re: online lun resize 11.31

the problem is, when I use diskinfo - the lun has the old size. I think vgmodify is the next step.
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

I would do an ioscan and then the vgmodify.

Example:

# vgmodify vg01

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 2559
PE Size (Mbytes) 4
VGRA Size (Kbytes) 400
"/dev/rdsk/c3t0d1" size changed from 10485600 to 20971520kb
An update to the Volume Group IS required
...

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!   
centurion
Frequent Advisor

Re: online lun resize 11.31

I already use the ioscan - old size.

when I make the same procedure with a test lun, which is not under lvm control, then I can see the new size automatically with diskinfo. the ioscan is not necessary.
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

Does vgmodify detect the new size or not?

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!   
centurion
Frequent Advisor

Re: online lun resize 11.31

root@system01[/root]# vgmodify vgtest
vgmodify: The volume group "vgtest" is active on this system. Use the -a option to perform the requested change.

root@system01[/root]# vgmodify -a vgtest
vgmodify: Error: -a option should be used with either -e, -p, -l, -o, -B, -C,
-R or -E options.


Which options are necessary?
centurion
Frequent Advisor

Re: online lun resize 11.31

root@system01[/root]# vgmodify -E -a vgtest
"/dev/rdisk/disk66" size changed from 31457280 to 41943040kb
Volume Group configuration for /dev/vgtest has been saved in /etc/lvmconf/vgtest.conf

Very nice, one volume has the new size. But the second volume the old?!
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

From manual:

The vgmodify command supports LUN expansion on a Version 1.0 volume group without
deactivating the volume group. To reconfigure an activated volume group to take advantage of
a physical volume size increase, use the â E and â a options to vgmodify. For example, if the
physical volume /dev/disk/disk32 in volume group vg02 has been expanded, use the
following command to add physical extents to it:
# vgmodify -a -E /dev/vg02 /dev/rdisk/disk32



For more information, see vgmodify(1M).




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!   
centurion
Frequent Advisor

Re: online lun resize 11.31

root@system01[/root]# vgmodify -E -a vgtest /dev/rdisk/disk61
An update to the Volume Group is NOT required
Volume Group configuration for /dev/vgtest has been saved in /etc/lvmconf/vgtest.conf
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

First I would double check with commandview and evainfo if the LUN increase operation was performed successfully.

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!   
centurion
Frequent Advisor

Re: online lun resize 11.31

command view shows the correct size.
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

From manual instructions:


1. Review current volume group parameters.
# vgdisplay vg1
...
2. Use online vgmodify in review mode to review the effect of the change in disk size.
# vgmodify â r -a -E vg1
"/dev/rdisk/disk43" size changed from 52428800 to 71687369kb

An update to the Volume Group IS required
Review complete. Volume group not modified
3. Use online vgmodify to change the disk size.
# vgmodify -a -E vg1
"/dev/rdisk/disk43" size changed from 52428800 to 71687369kb

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf (BSC link updated by admin)

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!   
Steven E. Protter
Exalted Contributor

Re: online lun resize 11.31

Shalom,

What you are seeing is why its actually easier to present a new LUN to the system than to increase the size of an existing one.

It is very difficult and sometimes impossible to get an HP-UX system to recognize a LUN has increased.

Here we generally do not issue large LUNS, we issue a 300 GB LUN as 10 30 GB LUNS, and use LVM to put them together in a volume group. Then when we need another 30 GB, we just present a new LUN to the system and use vgextend etc to handle it.

This is a method that involves less headaches.

If your system won't recognize the space after the above procedures, and/or a reboot, you should consider an alternate way of doing this to avoid the amount of fun you are currently experiencing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

Please post an

# vgdisplay -v vgtest

# swlist

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!   
centurion
Frequent Advisor

Re: online lun resize 11.31

root@system01[/root]# vgdisplay -v vgtest
--- Volume groups ---
VG Name /dev/vgtest
VG Write Access read/write
VG Status available
Max LV 128
Cur LV 1
Open LV 1
Max PV 128
Cur PV 2
Act PV 2
Max PE per PV 12000
VGDA 4
PE Size (Mbytes) 128
Total PE 1118
Alloc PE 799
Free PE 319
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 192000g
VG Max Extents 1536000

--- Logical volumes ---
LV Name /dev/vgtest/lvol1
LV Status available/syncd
LV Size (Mbytes) 102272
Current LE 799
Allocated PE 799
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk61
PV Status available
Total PE 799
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk66
PV Status available
Total PE 319
Free PE 319
Autoswitch On
Proactive Polling On



swlist:

10GigEthr-02 B.11.31.0903 PCIe 10 Gigabit Ethernet;Supptd HW=567799-B21
B2491BA B.11.31 MirrorDisk/UX (Server)
B3701AA C.04.73.000 HP GlancePlus/UX Pak for 11.31
B3835DA C.03.05 HP Process Resource Manager
B3929EA B.11.31 HP OnLineJFS (Server)
B5140BA A.11.31.04 Serviceguard NFS Toolkit
B5736DA A.04.20.31.03 HA Monitors
B6848BA 1.4.gm.46.16 Ximian GNOME 1.4 GTK+ Libraries for HP-UX
B8843CA A.03.04 HP-UX Workload Manager
BUNDLE B.2009.06.22 Patch Bundle
Base-VXFS B.11.31 Base VxFS File System 4.1 Bundle for HP-UX
BaseLVM B.11.31.0903 Logical Volume Manager
CDE-English B.11.31 English CDE Environment
CIFS-CLIENT A.02.02.02 HP CIFS Client
CIFS-SERVER A.02.03.04 HP CIFS Server
CommonIO B.11.31.0903 Common IO Drivers
DSAUtilities C.01.00.18 HP-UX Distributed Systems Administration Utilities
DynRootDisk B.1131.A.3.3.221 Dynamic Root Disk
DynamicNPars B.11.31.0709 Dynamic nPartitions enablement
FEATURE11i B.11.31.0903.334c Feature Enablement Patches for HP-UX 11i v3, March 2009
FIREFOX A.2.0.0.16ar.00 Firefox for HP-UX
FIREFOXsrc A.2.0.0.16ar.00 Firefox Source distribution
FibrChanl-00 B.11.31.0903 FibreChannel;HW=A6795A,A5158A
FibrChanl-01 B.11.31.0903 FibrChnl;HW=A6826A,A9782A,A9784A,AB378A/B,AB379A/B,AB465A,AD193A,AD194A,AD300A
FibrChanl-02 B.11.31.0903 FCLP;HW=AD299A,AD355A,AD221A,AD222A,AD393A,AH402A,AH403A,403621-B21,456972-B21
GTK 2.6.8.00.01 GTK+ 2.6 The Gnome GUI Runtime Toolkit
GTKsrc 2.6.8.00.01 Gtk Source distribution
GigEther-00 B.11.31.0903 PCI GigEther;Supptd HW=A4926A/A4929A/A6096A;SW=J1642AA
GigEther-01 B.11.31.0903 PCI GigEther;Supptd HW=A6825A/A6794A/A6847A/A8685A/A9782A/A9784A/A7109A/AB465A
GuestAVIOStor B.11.31.0903.01 HPVM Guest AVIO Storage Software
GuestAvioLan B.11.31.0903 HPVM Guest AVIO LAN Software
HP-ACC-Link C.11.31.03 HP aCC_link Bundle
HP-Caliper-PERF C.11.31.04 HP Caliper OE Bundle
HP-WDB-DEBUGGER C.11.31.04 HP DEBUGGER OE Bundle
HPUX-DHCPv4 B.11.31 HPUX DHCPv4 Server
HPUX-DHCPv6 B.11.31 HPUX DHCPv6 Server
HPUX-FTPServer C.2.6.1.4.0 HPUX FTP Server
HPUX-MailServer C.8.13.3.3 HPUX Mail Server
HPUX-NTP B.11.31 HPUX NTP Server
HPUX-NameServer C.9.3.2.5.0 HPUX Name Server
HPUX-RAMD B.11.31 HPUX IPv6 routing Server
HPUX-TCPWRAP B.11.31 HPUX TCPWrapper daemon
HPUX11i-DC-OE B.11.31.0903 HP-UX Data Center Operating Environment
HPUXBastille B.3.1.01 Bastille Security Hardening Tool
HPUXEssential B.11.31 Essential HP-UX Utilities
HPUXExtns-Jpn B.11.31 Japanese font, input methods and printer extensions
HPUXExtns-Kor B.11.31 Korean font, input methods and printer extensions
HPUXExtns-SCh B.11.31 Simplified Chinese font, input methods and printer extensions
HPUXExtns-TCh B.11.31 Traditional Chinese font, input methods and printer extensions
HPUXGatedMrouted B.11.31 HPUX Gated and Mrouted Server
HPUXLocales B.11.31 Internationalization Support
HPUXMan-Eng B.11.31 Minimum and Essential English man pages
HPUXMan-Jpn B.11.31 Minimum and Essential Japanese man pages
HPUXMinRuntime B.11.31 Minimum Runtime Environment
HPUXMsgs-Fre B.11.31 Minimum and Essential HP-UX French Language Message Catalogs
HPUXMsgs-Ger B.11.31 Minimum and Essential HP-UX German Language Message Catalogs
HPUXMsgs-Ita B.11.31 Minimum and Essential HP-UX Italian Language Message Catalogs
HPUXMsgs-Jpn B.11.31 Minimum and Essential HP-UX Japanese Language Message Catalogs
HPUXMsgs-Kor B.11.31 Minimum and Essential HP-UX Korean Language Message Catalogs
HPUXMsgs-SCh B.11.31 Minimum and Essential HP-UX Simplified Chinese Language Message Catalogs
HPUXMsgs-Spa B.11.31 Minimum and Essential HP-UX Spanish Language Message Catalogs
HPUXMsgs-Swe B.11.31 Minimum and Essential HP-UX Swedish Language Message Catalogs
HPUXMsgs-TCh B.11.31 Minimum and Essential HP-UX Traditional Chinese Language Message Catalogs
HWEnable11i B.11.31.0903.334d Hardware Enablement Patches for HP-UX 11i v3, March 2009
HostAVIOStor B.11.31.0903 HPVM Host AVIO Storage Software
HostAvioLan B.11.31.0903 HPVM Host AVIO LAN Software
IEther-00 B.11.31.0810 PCI/PCI-X/PCIe IEther
IGNITE C.7.8.201 HP-UX Installation Utilities (Ignite-UX)
IPFilter A.11.31.16 HP IPFilter 3.5alpha5
J4240AA B.11.31.30 Auto-Port Aggregation Software
Java15JDK 1.5.0.14.00 Java 1.5 JDK for HP-UX
Java15JRE 1.5.0.14.00 Java 1.5 JRE for HP-UX
Java60JDK 1.6.0.02.00 Java 6.0 JDK for HP-UX
Java60JRE 1.6.0.02.00 Java 6.0 JRE for HP-UX
LDAPUX B.04.20 LDAP-UX Integration
MOZILLA 1.7.13.01.01 Mozilla for HP-UX
MOZILLAsrc 1.7.13.01.01 Mozilla Source distribution
NParCmds B.11.31.0903 NPartition Commands
ONCplus B.11.31.06.01 ONC+ 2.3
OVsnmpAgent B.11.31 OpenView SNMP Agent
OnlineDiag B.11.31.05.06 HPUX 11.31 Support Tools Bundle, March 2009
PAMKerberos D.01.24 PAM-Kerberos Version 1.24
PRMKernelSW C.03.05 HP PRM Kernel Software
PRMLibraries C.03.05 HP PRM Software Libraries
ParMgr B.31.02.04.02 Partition Manager - HP-UX
ProviderDefault B.11.31.0903 Select WBEM Providers
ProviderSvcsBase C.01.00.03.01 Provider Services Base
QPKAPPS B.11.31.0903.334a Applications Patches for HP-UX 11i v3, March 2009
QPKBASE B.11.31.0903.334a Base Quality Pack Bundle for HP-UX 11i v3, March 2009
RAID-01 B.11.31.0903.01 RAID SA; Supptd HW=A7143A/A9890A/A9891A
Sec00Tools B.01.04.10 Install-Time security infrastructure.
SecureShell A.05.10.026 HP-UX Secure Shell
SerialSCSI-00 B.11.31.0903 PCI-X/PCI-E SerialSCSI
SwAssistant C.02.11 HP-UX Software Assistant
SysFaultMgmt C.05.00.06.01 HPUX System Fault Management
SysMgmtMin B.11.31.0903 Minimum Software Deployment Tools
SysMgmtPlus A.01.00.06.01 HP-UX SMH Plus
SysMgmtWeb A.3.0.0 HP-UX Web Based System Management User Interfaces
T1335DC A.05.05.01 HP-UX Virtual Partitions for 11.31
T1456AA 1.4.2.21.00 Java2 1.4 SDK for HP-UX
T1457AA 1.4.2.21.00 Java2 1.4 RTE for HP-UX
T1458AA 1.4.2.21.00 Java2 1.4 Netscape Plugin for HP-UX
T1905CA A.11.19.00 Serviceguard
T1909BA B.05.00 Enterprise Cluster Master Toolkit
T2762AA A.03.00.01.05 HP Global Workload Manager Agent LTU
T2782AC A.03.00.02.01 HP Virtualization Manager for HPUX LTU
T2784AC A.03.00.02.01 HP Capacity Advisor for HPUX LTU
T2786AC A.03.00.02.01 HP VSE Suite for HP-UX 11i LTU
TBIRD A.2.0.0.16ar.01 Thunderbird for HP-UX
TBIRDsrc A.2.0.0.16ar.01 Thunderbird Source distribution
Tune-N-Tools B.11.31.02 Optimized Kernel Tunables and Tools for Database and Application Servers
USB-00 D.11.31.0903.01 Transition USB-00 Product
VMGuestLib B.04.10 Integrity VM Guest Support Libraries
VMGuestSW B.04.10 Integrity VM Guest Support Software
WLMToolkits A.01.10.01 HP-UX Workload Manager Toolkits
hpuxwsApache B.2.0.59.08 HPUX Apache Web Server
hpuxwsTomcat B.5.5.27.02 HPUX Tomcat
hpuxwsWebmin A.1.070.10 HPUX Webmin
hpuxwsXml A.2.03 HPUX XML
perl E.5.8.8.C Perl Programming Language
scsiU320-00 B.11.31.0903 PCI-X SCSI U320;Supptd HW=A7173A/AB290A
#
# Product(s) not contained in a Bundle:
#

NM-SAP 3.0.2 EMC NetWorker Module for SAP with Oracle
NMSAP 3.0.1 Legato NetWorker Module for SAP R/3 with Oracle
NetWorker 7.4.2 NetWorker
PHCO_38547 1.0 ugm cumulative patch
PHSS_38141 1.0 aC++ Runtime (IA: A.06.20, PA: A.03.85)
PHSS_39102 1.0 Integrity Unwind Library
PHSS_39122 1.0 HP DCE 2.0 client cumulative patch
VRTSvlic 3.02.24.0 Symantec License Utilities
bash 4.0.010 bash
gettext 0.17 gettext
libiconv 1.13 libiconv
proftpd 1.2.10 proftpd
termcap 1.3.1 termcap
centurion
Frequent Advisor

Re: online lun resize 11.31

@Steven E. Protter:

the problem is, that we use synchronous-mirror (hp svsp) and we can always make a mirror with one volume. so we have to resize the volume.
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

Never worked with hp svsp so far, but maybe additional adjustments are needed?

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!   
centurion
Frequent Advisor

Re: online lun resize 11.31

at the moment the sync. mirror is not active. this is a problem with the os/lvm.

with the vgmodify I can resize the size from one volume, but the other volume has the old size. :-(
centurion
Frequent Advisor

Re: online lun resize 11.31

after I deactivate the vg, the diskinfo shows the new size from all physical volumes!
now I activate the vg and with vgmodify I can also see the correct size!

now I need a way to make this online..

Re: online lun resize 11.31

it doesn't surprise me that everything started working when you deactivated the vg and ran the diskinfo... in this case the device would have been completely closed and the call to diskinfo would have accessed the LUN again for the first time.

What is supposed to happen for an "online" resize operation is that according to SCSI standards the device is supposed to respond with Unit Attention (ASC/ASCQ: 0x2A/0x9 = capacity data changed) on the next IO after the lun capacity is changed. This causes the IO stack to do a reopen detect increased capacity.

Whether the SVSP _does_ respond with the correct Unit Attention message I don't know (I know some NetApp systems don't do this and that the EVA and XP _do_ work correctly). You could ask your support contacts for some clarity on this...

HTH

Duncan

I am an HPE Employee
Accept or Kudo