Operating System - HP-UX
1831676 Members
2157 Online
110029 Solutions
New Discussion

how to extend / directory?

 
Rick Chen_1
Occasional Advisor

how to extend / directory?

Lately I noticed the "/" directory is used 90%. What is filling it up? Is there a way to extend / ?

Thanks

Rick
5 REPLIES 5
Andres_13
Respected Contributor

Re: how to extend / directory?

You cannot extend the root filesystem because it must remain contiguous, that is, every extent must be adjacent. The root filesystem is unique because of boot requirements so it should be carefully managed, just like /var. The only supported way to extend the root filesystem is to use your latest Ignite backup tape to reinstall HP-UX on your boot disks. But unless you have dozens of volume groups and/or thousands of LUNs and alternate links to add, the / filesystem won't have to be recreated. Find out where the unusual amount of space is being consumed:

# du -kx / | sort -rn | head -20

Only two filesystems should be at the top: /etc and /sbin. If /dev is more than 50-100 KB then the root user made a spelling error with a backup command. Find the error with:

# find /dev -type f

There must be no regular files in /dev. If /dev is OK, then look at / which should have only directories present. Unfortunately, root's $HOME is there by default so a lot of junk appears in /. To check if there are any files in /, use:

find /* -prune -type f

Regular files, especially big files, do not belong in the / directory.

Now look at any directories that do not begin with /sbin or /etc.

Regards!
Adam W.
Valued Contributor

Re: how to extend / directory?

The only way to extend is to push a backup from tape and extend it before you push the tape.
There are two types of people in the world, Marines and those who wish they were.
praveen_kp
Occasional Contributor

Re: how to extend / directory?

You have two option.check any core file or logs generated in root dir otherhand u can extend the same via ignite backup backup.dependce upon the hardware specification its restoration procedure is different.

Tim Nelson
Honored Contributor

Re: how to extend / directory?

The only recommened way to increase "/" is to use an ignite image and rebuild the OS.

Permanent solution. Stop letting applications write into the root filesystem.

One of the most common is a device file typo.
find /dev -type f ( there should be NO file type of files in /dev )

If you post your OS version and bdf we can compare to what a typical OS install should have for the STATIC root environment.

Rick Chen_1
Occasional Advisor

Re: how to extend / directory?

HP-UX 11.11 64 bit with MC-service guard.
/etc/cmlcuster/cluster1/cluster1.cntl.log
this log has been accumulating. After I emptied the log, the / usage reduced to 75%.

Thanks