System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to reduve /var using OnlineJFS

EU-Admins-UNIX
Regular Advisor

How to reduve /var using OnlineJFS

Hi

 

I'm currently raising a change request to increase /var from 8GB to 10GB. I'll just be doing this through SMH.

 

But our change system is asking for Reversion plan.  I'd have no reason to revert, but as there is no option in SMH to reduce an LV, how would one achieve this on command line?  Do I have the necessary softwaer to do this with ZERO downtime?

 

I'm running:

 

B3929FB                               B.05.00.01     OnlineJFS for Veritas File System 5.0 Bundle

 

Regards

 

Tariq

4 REPLIES
Dennis Handly
Acclaimed Contributor

Re: How to reduce /var using OnlineJFS

>Do I have the necessary software to do this with ZERO downtime?

 

I don't think there is software to do this.  You would have to backup, reduce then restore.

EU-Admins-UNIX
Regular Advisor

Re: How to reduce /var using OnlineJFS

Hi Dennis

 

I practised on a test server.


I used:

 

fsadm -F vxfs -d -D -e -E /var         (whether necessary, I don't know)

fsadm -F vxfs -b 8192M /var           (originally /var was 10240M)

lvreduce -L 8192 /dev/vg00/lvol8  (worked a treat)

 

ZERO downtime!

 

Regards

 

Tariq

Dennis Handly
Acclaimed Contributor

Re: How to reduce /var using OnlineJFS

>I practised on a test server.

 

I assume this depends on whether you have ever written to the end of the LUN.

Patrick Wallek
Honored Contributor

Re: How to reduce /var using OnlineJFS

>>I assume this depends on whether you have ever written to the end of the LUN.

 

That is true, which is why he did the 'fsadm' command to reorganize directories and extents.  Now whether or not that would move an extent that the end of the filesystem to a different spot on the LUN, thus freeing space at the end of the LUN, I don't know.