Operating System - HP-UX
1752672 Members
6166 Online
108789 Solutions
New Discussion юеВ

extend the /( root) file system--

 
SOLVED
Go to solution
sam_25_1
Frequent Advisor

extend the /( root) file system--

Hello everyone,


I would be oblidged if you'll could help me out. I have gone through nearly all the threads regaring the (/) root file system full and have tried all possible suggestion, however my problem is still persisting.

I have my /root file system at 94 % and have checked for core files and other options posted in previous thread.

Intially my root file system was at 76% but when I rebooted the server It reached 94 %.

please find the contents of the root file system.

____________________________________________

.Xauthority .pvprinters_ver1 ThCallHooks: dev ignite-backup1 nsr sbin tmp
.Xauthority.new .rhosts ThrSaveSPAFields error.file opt stand tmp_mnt
.Xauthority.old .sh_history ThrSaveSPAFields: etc lib oracle taxware usr
.gpmhp-lathstg .ssh bas home lost+found sap taxware345 var
.profile .sw bin iface lvoltest sapmnt
temp-backup wan
.profile.bak SD_CDROM cdrom ignite-backup net sapswap testr

----------------------------------------------
i have usr and tmp & others mounted on different Logical volumes.

I have checked there are no core files & other log files which I could modify.


Kindly let me know, what I could do to get this sorted out.

Incase I need to finally extend the roof file system through Ignite backup. Could u please guide me how to fo about while resing it.

I have downloaded few pdf for the same and I am trying my best to grasp as much understanding I could.

Thanks once again to everone for your ongoing support & forum rocks:) ...

Awaiting your reply

Regards

Sam
20 REPLIES 20
Ganesan R
Honored Contributor

Re: extend the /( root) file system--

Hi Sam,

Most cases /etc/lvmconf directory consumes more space. You can move or delelte old conf files.

Use this command to find which directory consumes more space on root filesystem.

#du -xk / |sort -nr |head -25

The above command will list the top 25 directory consumes more space on root filesystem. you need to check top directories and remove the unnecessary files.


Though we have some alternates, ignite is the safe and preferred way to extend the root filesystem. If you have installed ignite issue the below command.

#make_tape_recovery -Av -x inc_entire=vg00 -I

Boot with the tape and run interactive mode. Select advance options there you can modify the LV sizes and continue to restore.
Best wishes,

Ganesh.
smatador
Honored Contributor

Re: extend the /( root) file system--

Hi,
You could search for example the big file
find / -xdev -size +5000 -exec ls -al {} \;
maybe you have some dead.letter or tar file put somewhere in /
sam_25_1
Frequent Advisor

Re: extend the /( root) file system--

Hi Ganesah,Smartdoor

Thanks a lot for your speedy reply. You are rite under lvm.conf there were some old configs which I have already moved earlier thats how my / root file system came down from 97% to /94%. To be really honest I dont know what other files have occupied so much of space and why after reboot my / root file system suddenly increased.

The out of the large files are given below.

175512 /
126528 /etc
63448 /etc/vx
48256 /sbin
33128 /etc/opt
32960 /etc/vx/type
29472 /etc/vx/static.d
28760 /etc/vx/static.d/build
23344 /etc/opt/resmon
17808 /etc/opt/resmon/lib
14920 /etc/vx/type/static
12576 /etc/lvmconf
8952 /etc/vx/type/gen
8504 /etc/lp
6776 /etc/vx/type/raid5
6736 /etc/lp/interface
6232 /etc/opt/OV/share
6232 /etc/opt/OV
5928 /sbin/fs
5512 /etc/opt/OV/share/conf
5416 /etc/lp/interface/model.orig
4504 /etc/emc
4104 /etc/opt/OV/share/conf/analysis
3832 /etc/opt/resmon/lbin
3512 /sbin/fs/vxf
-----------------------------------------=

Thanks once again for your help & guidance, is there anything else I could do to get this worked, as I havent tried doing a ignite-backup/restore before.

Thanks once again for your speedy reply.

Regards

Sam
Ganesan R
Honored Contributor

Re: extend the /( root) file system--

Hi Sam,

I don't think you can get much free space from here. Your root filesystem has been created with default size taken during installation. This is the comman scenario most of the unix admin faces. It should have created with some more space considering the future.

Anyway now you have to extend the filesystem
I still prefer to ignite backup and restore.
If not there is a alternate way. If you have mirrordisk and enough space in vg00 you can try this.

Go through here..

http://www.symmetricwebsites.com/articles/HP-UX/hpuxDynamicallyExtendSlashAndOrStand.php
Best wishes,

Ganesh.
sam_25_1
Frequent Advisor

Re: extend the /( root) file system--

Hi ganesan,

Well I dont have the mirror disk in place.

is there anything else i could move or delete from the output u large files.

Well I would go through the link for the ignite-recovery. To be honest I have never done this activity before of restoring through the ignite-tapes. Thanks once again for your guidance, sincelry appreciate it.



Regards

Sam
Ganesan R
Honored Contributor
Solution

Re: extend the /( root) file system--

Hi SAM,

I cannot see any directory cleaned up further since all are necessary directories.

If you still not willing to go for ignite recovery and want to free up some space, try few steps.

Find 1MB files and see anything can be deleted.

#find / -xdev -size +1000

check the size of /etc/utmp and empty if needed

#ll /etc/utmp

check for any log files

#find / -xdev -name log
Best wishes,

Ganesh.
smatador
Honored Contributor

Re: extend the /( root) file system--

Hi,
Boot from the tape or you lan boot image and you will get an interative install. You could change the sizes during this.
Ganesan R
Honored Contributor

Re: extend the /( root) file system--

Hi Sam,

If you have another free disk or LUN and you are good in LVM, I would suggest another way since you do not have mirror.

If you have another disk with enough space and onlineJFS installed you can try this.

Add the new disk or LUN into VG00 using pvcreate and vgextend.
pvmove the lvol1/lvol2/lvol3 to the new disk
Now we have root lv on newdisk. you can extend the root lv now, since we have contigious space. And extend the filesystem using fsadm.

After that you need to pvmove the remaining lvols to new disks. Now all the lvols are in new disks. If need mirror the new disk with old disk. Having the new disk in VG00 or breaking it, is upto you.

Also for safer side, you can do mirror instead of pvmove. So that we can be safe during pvmove activity.

Hope this helps..
Best wishes,

Ganesh.
Steven E. Protter
Exalted Contributor

Re: extend the /( root) file system--

Shalom,

Move every home directory based in root out of root.

You seem to be using x windows app and the temporary data is being stored in the root fs.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com