cancel
Showing results for 
Search instead for 
Did you mean: 

resize /opt

SOLVED
Go to solution
mrmo07
Regular Advisor

resize /opt

Hi,

i am using hpux11iv3 DC OE with online jfs. i have resize (reduce) /opt using smh. but i see its only reduce file system not actual size. how can reduce size as well. even now if i try to increase file system as before. showing error.

help.

mrmo07
8 REPLIES
Manix
Honored Contributor

Re: resize /opt

not sure what exactly you have done.
but there are two operations 1) lvreduce /lventend @ lvol level

2) fsadm -F vxfs -b <>M /opt @ fs level.

to effect the bdf output.

Just check what you have done.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
sangilak
Trusted Contributor
Solution

Re: resize /opt

Hi,


What Manix mentioned is the procedure to extend your file system.

But if I read your question correctly you are trying to reduce a file system. Although this is a supported feature of OnlineJFS it is highly recommended to make a backup of the data on your file system before reducing it (Murphy's law you know...).

The steps to reduce a file system are:

1. defrag your file system (not required, but in my opinion recommended):
# fsadm -d -v -e /filesystem

2. reduce your filesystem:
# fsadm -b 3072M /filesystem

3. reduce the logical volume:
# lvreduce -L 3072 /dev/vg01/lvolx

As it seems that you have already successfully reduced your file system you should only need the 3rd step (reducing your logical volume). This can probably also be done using SMH, but I cannot help you with the procedure as I am not that familiar with SMH.

If that does not work it please provide the following information:
# bdf
# fstyp /dev/vg01/lvolx
# lvdisplay -v /dev/vg01/lvolx


Hope that helps,

sangilak
madhuchakkaravarthy
Trusted Contributor

Re: resize /opt

hi

not advisory to reduce the opt filesystem.

can use

fsadm -F vxfs -b size[M] /opt

regards

MC

Manix
Honored Contributor

Re: resize /opt

>>sangliak .

same logic for each of them you need to tell
the fsadm the final count to eat up !!
yes defrag is good thing to do to reduce.

Looks what quoted for each of them reduce/extend.
1) lvreduce / lventend @ lvol level
2) fsadm -F vxfs -b <>M /opt @ fs level.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
sangilak
Trusted Contributor

Re: resize /opt

Hi,


You are right the steps involved are the same (reduce/extend the file system and reduce/extend the logical volume). But I was always told that the order is different.

Extend:
1st: extend your logical volume (lvextend)
2nd: extend your file system (fsadm)

Reduce:
1st: reduce your file system (fsadm)
2nd: reduce your logical volume (lvreduce)


sangilak
Manix
Honored Contributor

Re: resize /opt

Thanks ..that`s true :)
HP-UX been always lovable - Mani Kalra

Re: resize /opt

#fsadm -f vxfs -ed /opt
#fsadm -f vxfs -b (size in mb) /opt
#lvreduce -L (size in mb) /dev/vg00/lvolx
#bdf
mrmo07
Regular Advisor

Re: resize /opt

job done

thanks all.