1835564 Members
2782 Online
110078 Solutions
New Discussion

/usr lvol size

 
Will Couillard
Occasional Advisor

/usr lvol size

During a cold install of 11i TCOE I am unable to reduce the size of /usr below 1596m due to default product selections. However, when I accept this size and finish the install only 538m is occupied in /usr. How can I get around this?
4 REPLIES 4
harry d brown jr
Honored Contributor

Re: /usr lvol size

Do a make_recovery -A -i and then during the interactive restore change the size.

live free or die
harry
Live Free or Die
Corthouts Carlo
Valued Contributor

Re: /usr lvol size

Hi,

Like a interactive recovery would help you with the reduction of this filesystem, it guess it would be better and faster if you first start with a preview of the make_recovery processing.

make_recovery -A -p creates a preview of the process.
At this point some files are created like /var/opt/ignite/recovery/config.recover
This file contains basic configuration of your system.
Here you can change the size of the /usr filesystem.

After you have changed this you continue the make_recovery with "make_recovery -r".

When finished you have a recovery tape where the filesystem will always be this size. Even when you need to recover your system a second time and you don't need to remember to always go into interactive mode
Magdi KAMAL
Respected Contributor

Re: /usr lvol size

Hi William,

Make an Ignite-UX tape with :

# make_recovery -A -d /dev/rmt/#mn

and then reboot the system, interact with the restore process and resize your file system.

ATTENTION :

Do not use "lvreduce" because data will be LOST under this file system.

Good luck.

Magdi

Joseph C. Denman
Honored Contributor

Re: /usr lvol size

If you have the space, you could create a new lvol and move user to it?

Say you wanted to reduce /usr to around 1G:

boot in single user mode:
#look at you fstab to see what the next lvol is for the vg. lets say in vg00, lvol10 is the next lvol.

mount /usr
lvcreate -L 1000 -n lvol11 /dev/vg00
newfs -F vxfs /dev/vg00/rlvol11
mkdir /newusr
mount /dev/vg00/lvol11 /newusr
cd /usr
find . | cpio -pdmuxvl /newusr
du -sk /usr
du -sk /newusr
#totals should be close. Probably not the same.

#edit /etc/fstab to have /usr mounted on lvol11
reboot

#once the system comes up and look good, remove the old lvol
lvremove /dev/vg00/lvol??


Hope this helps.

...jcd...
If I had only read the instructions first??