Operating System - HP-UX
1834532 Members
3620 Online
110069 Solutions
New Discussion

file system space need to increase

 
SOLVED
Go to solution
Babukanthan
Advisor

file system space need to increase

Hi,

/opt/data file system is 99% full. i need to extend. there is no free space on volume.our customer dont want to buy a new hdd, is there any solution to resolve this problem.

Babukanthan
7 REPLIES 7
Robert-Jan Goossens_1
Honored Contributor

Re: file system space need to increase

Hi,

No free space in the volume group? Is there free space in an other volume group?

# vgdisplay -v

Robert-Jan
Darrel Louis
Honored Contributor

Re: file system space need to increase

Hi,

Is it possible to compress some data in the directory?
If yes, move the file to a different location where you've space and then compress it and move it back.

A hdd isn't expensive anymore?????

Darrel
James R. Ferguson
Acclaimed Contributor

Re: file system space need to increase

Hi:

Given your constraints, I'd suggest that you look for where the most space is used:

# du -kx /opt/data|sort -k1nr|more

Regards!

...JRF...
AwadheshPandey
Honored Contributor

Re: file system space need to increase

check if any free space available in another filesystem. u can reduce that lvol and use that space. but bfore reducing pls take filesystem backup of that lvol.
It's kind of fun to do the impossible
Chan 007
Honored Contributor
Solution

Re: file system space need to increase

Hi,

/opt/data, seems to be out of Unix's control. So do the following.

1. Ask business for a requiest, if business asks for it 100% your customer will provide it.

2. Check for any old files or historic data. if they can be compressed, then pass to /opt/data support team to do that work.

3. Write a Script with con-ordination with your /opt/data team and do a housekeeping weekly. If possible scheudle it.

Chan
Rory R Hammond
Trusted Contributor

Re: file system space need to increase



Permament space requires new Hard drive.

Possible things to do.

1. remove OLD data setup a policy and a create script to remove, or truncate obsolete data. For example if /opt/data has a log directory. run script to clean up old logs.
2. Compress unaccessed files.
3. check /opt/data/lost+found
and remove orphans if any.
4. If /opt/data is on a seperate Logical volume, are you not able to extend because you are using contiguous Allocations, if so try removing the contiguous allocation reqiremnet and then extend the logical volume.
5. if /opt/data is in a volume group with several logical volumes can you move a smaller logical volume to another volume group and then exend /opt/data.
6. if /opt/data has directory tree you can move a tree to a different file system with space.
for example if /opt/data has subdirectories called log, usr and tmp. And if /usr has free space. you could move the log subdirectory to /usr by:

##create a directory path
mkdir /usr/data
mkdir /usr/data/log

## copy data to new path
cd /opt/data/log
find . -prinot |cpio -pdmu /usr/data/log

## remove data and subdirectory from old location
cd /opt/data
rm -r /opt/data/log
##link the old subdirectory location to the new location
ln -s /usr/data/log /opt/data/log


Good luck!
Rory
There are a 100 ways to do things and 97 of them are right
Babukanthan
Advisor

Re: file system space need to increase

Tested ok