Operating System - HP-UX
1847876 Members
3234 Online
104021 Solutions
New Discussion

Need to grow a file system with Veritas on L3000 11.11

 
SOLVED
Go to solution
Tom Ward_1
Honored Contributor

Need to grow a file system with Veritas on L3000 11.11

I've got a L3000 running 11.11 with a file system at 100%. The box is vpared and connected into a SAN. I'm not familiar with Veritas Volume Management. Can someone give me a link or a checklist for growing the file system?
9 REPLIES 9
Pete Randall
Outstanding Contributor
Solution

Re: Need to grow a file system with Veritas on L3000 11.11

The VxVS equivalent to the lvextend command is called vxassist (which is also used for lvreduce and other commands). Example: "vxassist growto vol_name 200M" or "vxassist growby vol_name 100M".


Pete



Pete
Steven E. Protter
Exalted Contributor

Re: Need to grow a file system with Veritas on L3000 11.11

LVM

If you have Online JFS you can expand it on the fly.

lvextend

fsadm

extendfs

If you dont, you need to do this:

umount /fsname

lvextend -L /dev/vg01/lvname /dev/dsk/c#t#d#

extendfs -f vxfs /dev/vg01/rlvname

mount /fsname

Then you are done.

In the above commands you will need to use actual logical volume names.

If you are unfamiliar, you might want to try doing it in sam.

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
Pete Randall
Outstanding Contributor

Re: Need to grow a file system with Veritas on L3000 11.11

Steven,

That's not going to help him with VxVM!


Pete



Pete
Kevin Wright
Honored Contributor

Re: Need to grow a file system with Veritas on L3000 11.11

vxassist is what you are after. Read the man page.

run vxprint -hrt to get sizes, then run vxassist growto newlength.
Tom Ward_1
Honored Contributor

Re: Need to grow a file system with Veritas on L3000 11.11

Thanks for the replies. I learned a bit about Veritas today.

HPUX 11.11 ships with two versions of Veritas Volume Manager.
Version -- Base Dir -- GUI command
3.2 /opt/HPvmsa vea
3.5 /opt/VRTSob vmsa

I had 3.2
To see if there is free disk available use
vxdg free (or vxdg -g group free for a specific group)
vxdg -g locappdg free
DISK DEVICE TAG OFFSET LENGTH FLAGS
locappd02 c16t7d7 c16t7d7 2149376 18819456 -

The LENGTH field shows how much is available.

Once you know that you have room to grow, the command to increase size is "vxassist"

You can increase size with "growby" or "growto"
vxassist -g locappdg growby apps 1G

That increases the volume, but not the file system. So umount it, extend it and remount it.
umount /apps
extendfs -F vxfs /dev/vx/dsk/locappdg/apps
mount /apps

Hope this helps someone else.
Pete Randall
Outstanding Contributor

Re: Need to grow a file system with Veritas on L3000 11.11

Tom,

You should be praised for summarizing your findings and providing a roadmap for others. I only wish others would follow your example.

Thanks,

Pete



Pete
Sridhar Bhaskarla
Honored Contributor

Re: Need to grow a file system with Veritas on L3000 11.11

Tom,

Just to add a bit here, if you have, you can use OnlineJFS to extend the filesystem online. "fsadm -b new_size_in_kb /filesystem" after your "vxassist" command to increase the size.b

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Christopher Rupnik
Valued Contributor

Re: Need to grow a file system with Veritas on L3000 11.11

Actually, onlineJFS will not function correctly when the filessytem is truly 100% full.

OnlineJFS requires some empty filesystem space in order to grow the FS. I know, I have had this happen to me several times with both 11 and 11i.
Alzhy
Honored Contributor

Re: Need to grow a file system with Veritas on L3000 11.11

If you are licensed for the full VxVM and have Veritas Filesystem (VxFS or Online JFS) as well then you can expand/contract a filesystem online by using the vxresize command:

/etc/vx/bin/vxresize -g kooldg mntpntname +10g

(to grow /mntpntname by 10 GB..)

Anyone can categorically state that Veritas Filesystem - the product (VxFS) is equivalent to HP's Online JFS?
Hakuna Matata.