How to increase space /dev/hd4?

A check disk space and find /dev/hd4 used 99%. How to increase space. Thank you for advice.

/home/tecsys > df 
Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4         1048576     20624   99%     5977    68% /
/dev/hd2         6815744    653032   91%    59194    44% /usr
/dev/hd9var       524288    109936   80%     5638    31% /var
/dev/hd3          524288    504808    4%      632     2% /tmp
/dev/fwdump      1572864   1558232    1%       25     1% /var/adm/ras/platform
/dev/hd1         3145728    622848   81%    14771    18% /home
/proc                  -         -    -         -     -  /proc
/dev/hd10opt      524288    279096   47%     3568    11% /opt
/dev/lv00        2097152   1345240   36%      683     1% /home/tecsys/hold
/dev/lv01        2621440   2539072    4%       16     1% /home/tecsys/Bhome/tecs
ys/yhi
/dev/lv02       62390272  29611016   53%     1826     1% /usr/master/yhi
/dev/lv03       15204352   7513968   51%     1908     1% /usr/master/hold
/dev/lv04        4194304    938408   78%      971     1% /usr/master/ft

If you have space in rootvg:

chfs -a size=+1G /

(where 1G = pick a size)

Otherwise, add a new disk, or reduce some of the other FS sizes.

If you need to add extents to the LV first, use the chlv command.

Absolutely correct, but the problem itself begs the question: why is the space in "/" exhausted? Under normal circumstances this can't happen in an AIX system, so there must have gone something awry before.

It might be this problem, which caused the full "/".

I hope this helps.

bakunin

1 Like

If you need help chasing down files in / I usually use:

du -ks * | sort -n

The largest files/directories will be at the bottom

Just thought I would mention the "iconic" extension of a file system is

chfs -a size+=1 FileSystemName

In other words, you are required to increase everything by at least 1PP - you can supply any number (e.g., +7890) and AIX will compute the number of PP (physical partitions) needed to complete the increase - as long as space is available.

1 Like