1834241 Members
2391 Online
110066 Solutions
New Discussion

Root Filesystem

 
SOLVED
Go to solution
Manoj Sivan
Regular Advisor

Root Filesystem

Hi Experts,

"/" of one of my server is 96%. I checked and found contiguous space is not available for lvol3.Also my vg00 is having some application filesystems. can anyone suggest any way to extend it other than removing the application filesystem.

>bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 212992 205288 7656 96% /
/dev/vg00/lvol1 298928 38528 230504 14% /stand
/dev/vg00/lvol8 5242880 1029776 4182688 20% /var
/dev/vg00/lvol7 5242880 1464592 3751320 28% /usr
/dev/vg00/lvol4 524288 160824 360680 31% /tmp
/dev/vg00/lvol6 4194304 1881648 2294616 45% /opt
/dev/vg00/tools 24576000 13997322 10248108 58% /mnt/tools
/dev/vg00/local 10485760 6091984 4120961 60% /mnt/local
/dev/vg00/app 10485760 8480576 1942552 81% /mnt/app
/dev/vg00/lvol5 524288 382680 140536 73% /home
/ 212992 205288 7656 96% /net/fwapsvr1
[fwapsvr1]:[root]:/etc/lvmconf
12 REPLIES 12
Arunvijai_4
Honored Contributor

Re: Root Filesystem

Hi Manoj,

Check this thread and read SEP and Sri's reply.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=505209

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Sivakumar TS
Honored Contributor

Re: Root Filesystem


Hi,

Its mandatory to have the root filesystem contigious.

in your situation, i feel the way out is to take a ignite backup and restore with the new disk layout.

Regards,

Siva.
Nothing is Impossible !
Adisuria Wangsadinata_1
Honored Contributor

Re: Root Filesystem

Hi Manoj,

Check first what's the files that filling the root file system :

# du -kx / | sort -rn | more

Do a cleanup first on your root filesystem.

If this cannot help you anymore, there's 2 way to increase the space on root filesystem :

1. re-install the OS
2. by using the features from Ignite/UX software, the command : make_tape_recovery

The other way around is by allocate the contiguous space BUT this one is not supported by HP.

Hope this information can help you.

Cheers,
AW

now working, next not working ... that's unix
Senthil Kumar .A_1
Honored Contributor
Solution

Re: Root Filesystem

Hi Manoj,

I have a solution for this problem. It requires a down time of about approx 0.5 to 1 hour.

My solution is a tested one and works irrespective of you have Online jfs or not.

pre-requisite : you need to have a second hard disk in VG vg00 to move the lvol4 from first harddisk to the second hardisk.

Let us assume your vg00 contains 2 PV's /dev/dsk/c1t0d0 and /dev/dev/c2t0d0. and have assumed that you have currently booted from c1t0d0.

1) move the PE's of lvol4 from first to the second disk.

pvmove -n /dev/vg01/lvol4 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0

this activity can be done when the system is up and running. the time taken depends on the size of lvol4.

2) now extend the root lv, that is you lvol3.say in ur case from 200MB to 500MB, please not that you can increase max to the size which lvol4 has releashed. If you want more try moving lvol5 aswell using "pvmove".

lvextend -L 400 /dev/vg00/lvol3

3) Now reboot the box and go into LVM maintence mode.

at PDC ..interrupt and issue
bo pri
at ISL> prompt issue the following
hpux -lm

4) Once it is in LVM maintenence mode the root volume would be mounted on /dev/root so u can go ahead and extend the root volume FS.

issue the following commands,
a) vgchange -a y vg00
b) extendfs /dev/vg00/rlvol3
c) vgchange -a n vg00
d) reboot -n
At the next reboot go into normal booting mode without interupting PDC.

5) Once in the normal boot, reverse the PV moves.


pvmove -n /dev/vg01/lvol4 /dev/dsk/c2t0d0 /dev/dsk/c1t0d0

regards,
Senthil Kumar .A

Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: Root Filesystem

One corerction in my previous response.. I have extend the root vol to 400 mb and given in the explanation for extending it to 500 MB, so assume in the above case indeed I have extended the root from 200 MB to 400 MB.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Manoj Sivan
Regular Advisor

Re: Root Filesystem

Thanks Everyone...

Hi Senthil,

The solution provided by you is suitable to my server.Apreciable.

But my current vg00 setup is with two disk mirrored.Do you want me to break the mirror and do it on the secondary disk or adding new disk ?

Awaiting your reply

Regards

Manoj
Sivakumar TS
Honored Contributor

Re: Root Filesystem


Hi,

You can either break the mirror and move the lvol4 to second disk. But in this case you will loose the redundancy.

Alternatively, if you have any free disk which can be added to VG00, you may add and move the lvol4 to that disk.

Regards,

Siva.
Nothing is Impossible !
Nguyen Anh Tien
Honored Contributor

Re: Root Filesystem

Fistly, Try to find all strange large file by:
#du -kx / | sort -rn | more
#find / -type f -size +1000n -exec ll {} \;
secondly, extend / file system by ignite tape.
HP is simple
MarkSyder
Honored Contributor

Re: Root Filesystem

Are you sure you need to extend / ? It shouldn't be necessary as / doesn't usually grow.

The most common reason for / growing is someone doing a backup and incorrectly identifying the tape device. This results in a large file appearing in /dev/rmt. Check for this before you do anything drastic.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Muthukumar_5
Honored Contributor

Re: Root Filesystem

Remove temporary log files and cleanup unneeded patches as,

# cleanup -c2

Check the files in /var/ directory. Remove all log files (Trim).

Try to analyse the big files in / file system as,

# du -k / | sort -rnk1 | more

--
Muthu
Easy to suggest when don't know about the problem!
Senthil Kumar .A_1
Honored Contributor

Re: Root Filesystem

Hi Manoj,

If you do not find any extra disk to be added then try breaking the mirror. You can mirror it back once you finish the extension of the root disk.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Manoj Sivan
Regular Advisor

Re: Root Filesystem

Hi Every One,

Thanks for the preciable help. I did it with mirror disk and now everything fine with root 75%.

Thanks again.

Regards

Manoj