Operating System - HP-UX
1829376 Members
2369 Online
109991 Solutions
New Discussion

Reducing the size of root

 
SOLVED
Go to solution
Richard Munn
Frequent Advisor

Reducing the size of root

I have a system where the root logical volume was created with 2.6GB in it. This was an acident and should have been 264Mb. The system was fully loaded and the root file system is VxFS.

The question is, how can you reduce the size of root? I assume that I need to lvreduce the logical volume, newfs it and restore the contents. BTW a dump of root was put in /var as the machine has no tape drive available.

I thought this could all be achieved from the recovery shell but can't work out how.
8 REPLIES 8
Richard Munn
Frequent Advisor

Re: Reducing the size of root

I should have mentioned that this is HP-UX 10.20 and does not have OnlineJFS.
Punithan
Advisor

Re: Reducing the size of root

HI
i wiil gine you a script...
run it and it will show you which file bee increase ...

bye
Punithan
System Engineer
T G Manikandan
Honored Contributor

Re: Reducing the size of root

You can use the ignite for reducing the size of the file system.

Was thinking that the make_tape_recovery which can create a system recovery This doc explains that
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000064129649

but your case is that you do not have a tape drive on the system.

you can do a make_net_recovery of the system and create a system archive on the network.

Then doing a recovery process using that archive the root volume can be reduced.

But considering the above process which should take quite amount of time.
If you had just installed the OS it is better to go for a re-installation.
If this is a old system then you can use the ignite.

Karvendhan M
Frequent Advisor

Re: Reducing the size of root


If the machine is in network, It is better to do make_net_recovery.

Do you have enough space on other disks/vgs/lvs?

If so, Boot in recovery shell, dump the root lv contents and resize it.

I have faced problems in using recovery shell in 10.20 April 1999 media.

but anybody will recommend a ignite recovery of old system or reinstall in case of new system.

~ Kars
Richard Munn
Frequent Advisor

Re: Reducing the size of root

This is what I was trying to do. Before booting the recovery shell I dumped root onto /var. But in the recovery shell I was able to lvreduce root but I could not newfs or do much else.

As it turns out I am using the April 1999 10.20 CD. Is there something wrong with this CD?
Karvendhan M
Frequent Advisor
Solution

Re: Reducing the size of root



Using 10.20 CD april 1999 set, I could not use loadfile as it gives error not enough space.

If you could resize the lv,

You may need to loadfile /sbin/fs/hfs/mkfs
or /sbin/fs/vxfs/mkfs

~ Karvendhan M.
Richard Munn
Frequent Advisor

Re: Reducing the size of root

I used the 11i CD and all my problems suddenly disappeared. I think my April 1999 10.20 CD is on it's way to the trash can!
Karvendhan M
Frequent Advisor

Re: Reducing the size of root



I think,

April 1999 media is the last release for 10.20.

So pls don't throgh it. You may need it.

~ Kars