Operating System - HP-UX
1847253 Members
4227 Online
110263 Solutions
New Discussion

Re: Quick question about /var

 
SOLVED
Go to solution
Michael Campbell
Trusted Contributor

Quick question about /var

Folks

I have to extend a filesystem whose mountpoint is /var/opt/omni/db. Is this going to cause the same hassle as extending /var itself, i.e. Single User Mode etc.

Regards

Michael
4 REPLIES 4
Nick Wickens
Respected Contributor

Re: Quick question about /var

Do a bdf command and check if /var/opt/omni/db is in its own filesystem. If it is (and it should be really as this directory can get very big) then you will just need to shutdown omniback (/opt/omni/sbin/omnisv.sh -stop or using service guard commands if its a service guard package) before unmounting. (That is assuming you dont have onlinejfs).
Hats ? We don't need no stinkin' hats !!
Pete Randall
Outstanding Contributor

Re: Quick question about /var

Michael,

That's Omniback's database file. Just shutting down Omniback should release it so you can enlarge.

Pete

Pete
Peter Kloetgen
Esteemed Contributor

Re: Quick question about /var

Hi Michael,

you should stop Omniback ( have a look, that no backups are currently running ), extend your file system for OB database, and then restart Omniback services. That should do it for you.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
steven Burgess_2
Honored Contributor
Solution

Re: Quick question about /var

Michael

/var/opt/omni/db is the omniback database and is seperate to /var

You can clear it down using omniback utilites

If you are going to extend it then yes - same goes for any other filesystem. You will of course backup all data in that area first

To extend - ensure no running sessions

omnistat

Stop omniback

/sbin/init.d/omni stop

unmount the filesystem

umount /var/opt/omni/db

Extend the volume group

pvcreate /dev/rdsk/c*t*d*
vegextend vg0* /dev/dsk/c*t*d*

Extend the lvol

lvextend -L /dev/vg0*/lvol* /dev/dsk/c*t*d*

Extend the filsesystem

extendfs -F vxfs /dev/vg0*/lvol*

If you are using Online JFS you don't need to unmount the filsystem

fsadm -F vxfs 8192000 /var/opt/omni/dd

819200 represents 800 Mb converted to KB

HTH

Steve
take your time and think things through