1833397 Members
3404 Online
110052 Solutions
New Discussion

Re: Root almost full

 
Waqar Razi
Regular Advisor

Root almost full

We have an hpux server, whose root partition is too small around 204 MB. It is 97% full, there is some space available in the vg00, can i simply increase the logical volume hosting the root file system and then the root file system.
/dev/vg00/lvol3 204800 198920 5880 97% /

And the output of vgdisplay is:
vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 12
Open LV 12
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8418
Free PE 262
Total PVG 2
Total Spare PVs 0
Total Spare PVs in use 0

Please give me some guidance in this regard.

17 REPLIES 17
Ganesan R
Honored Contributor

Re: Root almost full

Hi,

It is not possible to increase the root filesystem straight away because of contigious allocation policy. The only preferred and recommanded way is take ignite backup and restore with modified LV sizes.

Best wishes,

Ganesh.

Re: Root almost full

To increase the file system / , is necessary that you have installed a JFS online, if you don't have, it is not possible. because you will need umount the file system.
Waqar Razi
Regular Advisor

Re: Root almost full

We have Online jfs installed, Can we still able to increase the root file system size?
Javed Khan_1
Valued Contributor

Re: Root almost full

Check this

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

however HP recommend to use ignite for extending / file system.


Did you identify which file/directory consuming more disk space on /?


Regards,
Javed Khan
Never Give Up
Tim Nelson
Honored Contributor

Re: Root almost full

In order to increase the root filesystem you must use Ignite and reinstall.

NO other way!!

11.11 "/" filesytem uses about 142MB start looking for files to cleanup !!


Post your du -sk output for /etc, /dev, /sbin
and we can help compare.
Waqar Razi
Regular Advisor

Re: Root almost full

195080 /
127160 /etc
63472 /etc/vx
60640 /sbin
32960 /etc/vx/type
29472 /etc/vx/static.d
28760 /etc/vx/static.d/build
26528 /etc/lvmconf
20880 /etc/opt
15184 /sbin/fs
14920 /etc/vx/type/static
13128 /etc/opt/resmon
8952 /etc/vx/type/gen
8944 /sbin/fs/vxfs3.5
7632 /etc/opt/resmon/lbin
6776 /etc/vx/type/raid5
6744 /etc/emc
4224 /DR_venus
4000 /etc/opt/resmon/log
3824 /sbin/fs/vxfs
3592 /etc/opt/samba
3560 /etc/opt/samba/codepages
3328 /etc/lp
3264 /DR_venus/lvm_info
3136 /etc/emc/bin
2448 /scripts/prd
2448 /scripts
2304 /etc/vx/type/fsgen
2240 /etc/emc/lib
1856 /scripts/prd/sap
1840 /etc/opt/wbem
1824 /etc/opt/wbem/mof
1776 /sbin/fs/hfs
1632 /sbin/emc
1592 /etc/opt/cifsclient
1544 /etc/opt/cifsclient/unitables
1248 /etc/emc/ppme
1240 /etc/lp/interface
1224 /sbin/init.d
1056 /etc/opt/resmon/lib
752 /etc/dt
744 /etc/dt/appconfig
728 /etc/dt/appconfig/types
720 /etc/vx/type/fsgen/fs.d/vxfs
720 /etc/vx/type/fsgen/fs.d
720 /etc/lp/member
720 /etc/dt/appconfig/types/C
712 /etc/vx/static.d/default
680 /etc/lp/sinterface
680 /etc/lp/cinterface
664 /etc/rc.config.d
640 /sbin/lib
584 /etc/X11
528 /DR_venus/lvmdata
480 /etc/lp/interface/model.orig
456 /etc/hpC2400
384 /etc/cmcluster
368 /etc/mail
360 /etc/vx/licenses/db
360 /etc/vx/licenses
320 /dev
312 /etc/vx/vras
272 /etc/vx/vras/templates
256 /etc/opt/resmon/dictionary
232 /etc/ppp
224 /sbin/fs/cdfs
216 /etc/opt/omni
216 /.sw
208 /sbin/fs/lofs
208 /etc/cmcluster/PRD
208 /DR_venus/system_queries
208 /.sw/sessions
200 /etc/opt/gnome/gtk
200 /etc/opt/gnome
144 /sbin/set_parms.d
144 /etc/opt/mx/config
144 /etc/opt/mx
144 /etc/opt/dce
136 /etc/opt/resmon/lib/nls/msg/C
136 /etc/opt/resmon/lib/nls/msg
136 /etc/opt/resmon/lib/nls
120 /etc/vx/aslkey.d
120 /etc/opt/resmon/persistence
112 /etc/ppp/Examples
104 /etc/sam
104 /etc/opt/omni/server
104 /etc/opt/omni/client
96 /sbin/lib/eisa
96 /sbin/fs/cachefs
96 /etc/vx/vvr/ibc_scripts
96 /etc/vx/vvr
96 /DR_venus/etc
80 /etc/vx/isis
80 /etc/opt/omni/server/customize
72 /sbin/fs/nfs
72 /etc/uucp
72 /etc/opt/omni/client/customize
64 /etc/opt/mx/config/collectors
64 /etc/SnmpAgent.d
56 /etc/default
56 /etc/Navisphere
48 /etc/vx/vvr/ibc_scripts/sample_vxfs_snapshot
48 /etc/vx/vvr/ibc_scripts/sample_db_snapshot
48 /etc/net
40 /etc/opt/resmon/monitors
40 /etc/opt/mx/config/mxnode
40 /etc/log
32 /sbin/lib/mfsconfig.d
32 /sbin/fs/autofs
32 /etc/vx/vras/msg
32 /etc/skel
32 /etc/cmcluster/cvm
32 /etc/Navisphere/log
24 /sbin/rc1.d
24 /etc/opt/resmon/lib/krm
24 /etc/gss
24 /etc/X11/C/print/attributes
24 /etc/X11/C/print
24 /etc/X11/C
24 /dev/vx
16 /etc/vx/elm
16 /etc/opt/cifsclient/pam
16 /etc/net/ticotsord
16 /etc/net/ticots
16 /etc/net/ticlts
16 /etc/local
16 /etc/asx/eus
16 /etc/asx
16 /dev/rdsk
16 /dev/dsk
8 /sbin/rc3.d
8 /sbin/rc2.d
Laerte Cardoso
Frequent Advisor

Re: Root almost full

Increase root filesystem isnt´ possible, see Ganesan reply. Maybe, to minimize the problem, create a new independent filesystem called "/etc/lvmconf_new" to move the actual "/etc/lvmconf".
1 - lvcreate -L 512 /dev/vg00
2 - mkfs -F vxfs /dev/vg00/name_lvol_of_item_1
3 - mkdir /etc/lvmconf_new
4 - mount /dev/vg00/name_lvol_of_item_1 /etc/lvmconf_new
5 - cd /etc/lvmconf
6 - mv * /etc/lvmocnf_new
7 - cd /
8 - umount /etc/lvmocnf_new
9 - mount /dev/vg00/name_lvol_of_item_1 /etc/lvmconf

Re: Root almost full

The problem isn't with the filesystem - it's with the underlying logical volume. The root filesystem needs to be contiguous for it to be bootable - which means if you wanted to extend it there'd need to be free physical extents right at the end of the logical volume - which there probably isn't (you can check that with pvdisplay -v /dev/dsk/cXtYdZ for the disk(s) in your root VG)

Probably easier to figure out why its got so full by looking for files of 10MB and over as a starting point:

find / -size +10000000c -xdev -exec ll {} \;

There really shouldn't be many big files in / so have a look at what that produces and consider deleting non-system files.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Torsten.
Acclaimed Contributor

Re: Root almost full

What's this?

4224 /DR_venus
and
1856 /scripts/prd/sap

Is each a LVOL on it's own?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   

Re: Root almost full

@Laerte Cardoso

Moving /etc/lvmconf to another logical volume is a *dumb* idea...

So I get some corruption in my vg00 VGRA header and want to restore it. I can't get to single user or multi-user mode as the VG won't activate, so I go to LVM maintenance mode where all I have available is the root partition. If I moved lvmconf data somwehere else I can never recover my VGRA.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Tim Nelson
Honored Contributor

Re: Root almost full

Here is what mine looks like.

# du -sk /etc /sbin /dev
94480 /etc
41976 /sbin
120 /dev


You can review /etc and cleanup about 20MB

Please respond to Torsten's question on the unknown directories and if they are part of root.

Review directories under "/" that are NOT filesystem mount points !!!

Waqar Razi
Regular Advisor

Re: Root almost full

Unde/etc/emc/ppme there is a log file:

-rw------- 1 root root 10485760 Aug 12 10:55 log.0000000001

And under /etc/vx/static.d/build, there is another file:

-r-xr-xr-x 1 bin bin 29443732 Jan 31 2007 vold.o

Which are bigger than 10 MB
Laerte Cardoso
Frequent Advisor

Re: Root almost full

Duncan,
it´s a temporary solution, to avoid the stop the system...
Waqar Razi
Regular Advisor

Re: Root almost full

DR_venus is a directory where we keep DR information that is backed up part of ignite process, and the other /scripts/sap/prd has some SAP scripts which the basis admin uses for R3 maintenance and administration.
Torsten.
Acclaimed Contributor

Re: Root almost full

But the directories are in / or not?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Waqar Razi
Regular Advisor

Re: Root almost full

Yes they are in root file system

Re: Root almost full

Don't touch vold.o

The other file looks like an EMC PowerPath Migration Enabler logfile. I'm guessing at some point in the past this system has been through a PowerPath upgrade.

Assuming the file is not in use (check with fuser), I think you can safely move/backup that file and truncate to 0.

I'd keep looking for other large files in / by adjusting the value of the "size" in the find command down to 5MB, 1MB etc. and see what other junk you turn up.

HTH

Duncan

I am an HPE Employee
Accept or Kudo