- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: expanding filesystems in SAN
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 02:40 AM
02-07-2011 02:40 AM
expanding filesystems in SAN
Thnx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 02:47 AM
02-07-2011 02:47 AM
Re: expanding filesystems in SAN
HPUX Version?
type of SAN?
Regards, Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 02:49 AM - last edited on 09-29-2011 02:00 PM by Kevin_Paul
02-07-2011 02:49 AM - last edited on 09-29-2011 02:00 PM by Kevin_Paul
Re: expanding filesystems in SAN
Hi
to explain for HPUX:
http://h30499.www3.hp.com/t5/LVM-and-VxVM/vgmodify-to-increase-PE-size/m-p/4150817#M31831
Regards, Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 02:50 AM
02-07-2011 02:50 AM
Re: expanding filesystems in SAN
Most SAN (in fact SAN based disk arrays) allow to expand LUNs. HPUX 11.23 and above can handle this, 11.11 cannot.
So you may consider to create another LUN, add the LUN to the VG, extend the LV and the file system.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 03:01 AM
02-07-2011 03:01 AM
Re: expanding filesystems in SAN
Adding to Torsten.... yes, it doesn't make much of a difference and since you are unmounting your file system.... looks like you have an FOE or BOE with Base JFS product and i guess by that etc. in your question you mean extendfs because an lvextend only extends the container of the filesystem that is your LV and not the filesystem itself.
Only thing that you would have to remember while working with a LUN is a quote from many documents "HPUX normally has no visiblility to the disks within a LUN"... I quoute that out of context since we are talking about LVM configuration, probably one of the few things notable while working with SAN and LVM in terms of configuration of LVM.
Regards
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 03:14 AM
02-07-2011 03:14 AM
Re: expanding filesystems in SAN
Have a file system that is 230Gb and need to make it 260Gb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 07:45 AM
02-07-2011 07:45 AM
Re: expanding filesystems in SAN
bdf /mntpnt (of filesystem you wish to expand)
mount -p|grep mntpnt
vxlicrep
Expanding Filesystems in HP-UX on whatever type of disks is the same and only vary with what type of volume manager and filesystem you use.
Expanding LUNs (or Disks) is a different matter though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 04:31 PM
02-07-2011 04:31 PM
Re: expanding filesystems in SAN
As far as I know, LVM does not support increasing the size of one of its Physical volumes. The SAN LUN is a PV to LVM.
Assuming the LUN was 50GB when added to the volume group, LVM will set it up as a 50GB disk. If you then increase the LUN size to 60GB on the array, HPUX will see it is now 60GB but LVM will still only be able to use the first 50GB. So with LVM you need to create a new LUN, add it to the volume group and then lvextend the logical volume which has the file system on it. You can do the with commands or use SAM or smh to extend the lvol and SAM and smh will also extend the filesystem.
If you are not using LVM and you created the filesystem directly on top of the LUN, then you can expand the LUN on the disk array and do and ioscan on HPUX. You should then do a diskinfo to verify that HPUX sees the new size.
You can then extend the filesystem using the vxfs commands. fsadm is one comamnd that will work but there are others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 01:13 AM
02-08-2011 01:13 AM
Re: expanding filesystems in SAN
Here is the data you requested:
adec12:/root#bdf /db/P2ZARDB
Filesystem kbytes used avail %used Mounted on
/dev/P2ZARDB/db 230948864 28248 229116624 0% /db/P2ZARDB
adec12:/root#mount -p|grep /db/P2ZARDB
/dev/P2ZARDB/db /db/P2ZARDB vxfs ioerror=mwdisable,largefile s,mincache=direct,delaylog,convosync=direct,dev=40100002 0 0
/dev/P2ZARDB/temp /db/P2ZARDB/temp vxfs ioerror=mwdisable,largefile s,mincache=direct,delaylog,convosync=direct,dev=40100004 0 0
/dev/P2ZARDB/arch /db/P2ZARDB/arch vxfs ioerror=mwdisable,largefile s,delaylog,dev=40100003
The FS needs to be expanded to 260 Gb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 01:16 AM
02-08-2011 01:16 AM
Re: expanding filesystems in SAN
adec12:/root#vxlicrep
VERITAS License Manager vxlicrep utility version 3.02.006
Copyright (C) 1996-2004 VERITAS Software Corp. All Rights reserved.
Creating a report on all VERITAS products installed on this system
-----------------***********************-----------------
License Key = 3JZU-WDP6-PP6C-P4O4-HS38-NPPO-P
Product Name = VERITAS File System
Serial Number = 1
License Type = PERMANENT
OEM ID = 4095
Features :=
HP_OnlineJFS = Enabled
CPU Count = Not Restricted
Platform = HP-UX
Version = 4.1
File Change Log = Enabled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 05:19 AM
02-08-2011 05:19 AM
Re: expanding filesystems in SAN
For exactly this reason there is the "vgmodify" command in 11.23 and 11.31. This will adjust the LVM structure so you can use the "full" 60GB in this case.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 05:50 AM
02-08-2011 05:50 AM
Re: expanding filesystems in SAN
(1) Expanding the underlying PV and doing the gyrations.
or
(2) Have your Storage Admin present a new LUN/Disk and add it as a new PV to the LVM VG - which is the normal:
- pvcreate on new SAN Disk
- vgextend VGNAME newPV
- expand LV of Filesystem (lvextend)
- expand/adjust the filesystem (fsadm)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 06:09 AM
02-08-2011 06:09 AM
Re: expanding filesystems in SAN
why do I need to use the vgmodify command. The volume group is /dev/P2ZARDB:
vgdisplay /dev/P2ZARDB
--- Volume groups ---
VG Name /dev/P2ZARDB
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 4
Open LV 4
Max PV 64
Cur PV 4
Act PV 4
Max PE per PV 10240
VGDA 8
PE Size (Mbytes) 32
Total PE 7676
Alloc PE 7675
Free PE 1
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0
the logical volume that need to be extended is:
lvdisplay /dev/P2ZARDB/db
--- Logical volumes ---
LV Name /dev/P2ZARDB/db
VG Name /dev/P2ZARDB
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 225536
Current LE 7048
Allocated PE 7048
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation PVG-strict/distributed
IO Timeout (Seconds) default
Normally I would just do a vgextend, then lvextend then extendfs. But with this SAN stuff I don't really understand it. I have no clue about LUNs etc. Sorry for the practical "newbie" nature of this question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 06:26 AM
02-08-2011 06:26 AM
Re: expanding filesystems in SAN
Max PV 64
Cur PV 4
Act PV 4
Max PE per PV 10240
VGDA 8
PE Size (Mbytes) 32
Total PE 7676
Alloc PE 7675
Free PE 1
There is only 1 free PE, so you need more disk space.
You can
1) expand the existing LUN and adjust LVM with vgmodify to get more free PEs
or
2) create a new LUN (with maximum 10240 PE in size) and add it to the VG. For a larger new LUN you need to adjust the max PE per PV with vgmodify too.
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 06:32 AM
02-08-2011 06:32 AM
Re: expanding filesystems in SAN
LUN==disk, they're practically the same.
With local SCSI disk though -- you only have ONE disk device. A SAN "LUN" (or disk) can have multiple disk devices -- in which you need to to vgextend your VG to however many disk devices a LUN has (this is called PV Links). On HP-UX 11.31, a peristent device (/dev/rdsk/diskNNN) will be present and representative of all your LUN's "diek devices" - so you need not boter about PVLinks. All the rest as it pertains to LVM gyrations is the SAME.!
In your case, I would suggest JUST adding a new LUN/disk and vgextend your LVM VG and expand the LVOL and filesystem on top of the LVOL...
What kind of SAN Disks do you have - this could spell other issues that you need to be familiar with and even give you an idea if LUN expansion is possible.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 07:03 AM
02-08-2011 07:03 AM
Re: expanding filesystems in SAN
Best strategy is to add additional LUN's, present them to the system and use vgextend (or the vxvm equivalent). HP-UX has consistent problems recognizing increases in existing LUNS.
sEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 07:09 AM
02-08-2011 07:09 AM
Re: expanding filesystems in SAN
Who is telling this?
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 07:20 AM
02-08-2011 07:20 AM
Re: expanding filesystems in SAN
Amazing...
We've NetApps and EVAs and XP24Ks and we've never had issues with OnLine LUN resizing on HP-UX 11.23/11.31 and Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 07:32 AM
02-08-2011 07:32 AM
Re: expanding filesystems in SAN
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf
Using the vgmodify command to perform LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC)
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!
