Running out of /usr space ...


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Running out of /usr space ...
# 1  
Old 10-21-2014
Hammer & Screwdriver Running out of /usr space ...

Hi,
Can anyone please advise me on how can i increase /usr disk space manually.
The partition was created using manual disk spaces as per IT dept. request

As i don't have any space available on the said production system.
Therefore, i can move the /U01 FS to /U02 file system which will allow me to gain around 15GB of disk space to increase /usr file system.

As i've never done this before
I'll appreciate if anyone can suggest me the procedure on how it can be done.

following is a # df -h output for your kind review.
Code:
[root@asim ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5             5.0G  707M  4.0G  15% /
tmpfs                 7.9G  112K  7.9G   1% /dev/shm
/dev/sda1             2.0G  145M  1.8G   8% /boot
/dev/sda9             2.0G  328M  1.6G  18% /home
/dev/sda10            1.2G  580M  535M  52% /opt
/dev/sda6             5.0G  139M  4.6G   3% /tmp
/dev/sda3              15G  6.0G  8.1G  43% /u01
/dev/sda7             5.0G  4.4G  318M  94% /usr
/dev/sda8             5.0G  981M  3.8G  21% /var
/dev/sdb1             109G   47G   56G  46% /u02

Thanks & Regards
Asim


Moderator's Comments:
Mod Comment Please use code tags next time for your code and data. Thanks

Last edited by vbe; 10-21-2014 at 05:42 AM.. Reason: forgot to thank users
# 2  
Old 10-21-2014
Simple data juggling. First you need to find where you have space. Otherwise, you need to figure out what you can remove.

It takes space to manipulate space.

If the goal is to keep /usr where it is, then you'd have to move areas that are against it contiguously as far as disk sectors are concerned. You haven't supplied enough information to assess that.

Another approach might be to move /usr altogether to as different disk and/or partition.

Either way, you'll need to boot into some sort of rescue shell to do the work ideally.

I mean, if there's a ton of space available somewhere, you might be able to avoid that, but because there can be a good chance of error, you'll want to be able to get to a rescue shell (and test that out) before beginning the work. Just so that you don't lock yourself completely out.
# 3  
Old 10-21-2014
Note: /usr is kind of a special case directory. It has to be there for startup scripts to run using commands like awk or sed. So, it has many files in /usr that also exist as symlinks in the /bin directory. Tinkering with /usr will often lead to disaster. What cjcox mentioned.

Why do you need more space in /usr - it should have been built with almost everything you'll need? The only possibility I can think of quickly is adding more new libraries to /usr/lib. Each of those new additions can be a symlink from /usr/lib to /somediskwithspace/lib
# 4  
Old 10-22-2014
Thanks for the reply cjcox and jim mcnamara.

Actually , the server was initially installed by me as per the customers need
After few weeks I observed that the /usr FS is running out of space which need to be fixed ASAP.

The space was allocated using SAN
Therefore, i can assign more space if required.

The best way i thought was to take the /u01 partition off , so that I can have the 15GB of space available upon the same disk which further can be used to expand /u02 partition.

I don't remembered the procedure for doing so
I'll appreciate if anyone of you can guide me to do so.

The machine is in production mode too
Therefore, I'll appreciate if we can do it without any downtime if possible.

Regards
Asim

Last edited by rbatte1; 10-22-2014 at 12:39 PM.. Reason: Changed CODE tags to ICODE tags
# 5  
Old 10-22-2014
What's the growth rate of /usr?
# 6  
Old 10-23-2014
RudiC,

Although the /usr folder is not growing but it was a rapid growth for the past 2 weeks the folder hasn't increased in size but i'm afraid that for any reason if it does , I'm sure I'll be in a lot of trouble. Smilie
# 7  
Old 10-23-2014
So I guess there's no immediate need for action. And, I'd be very careful juggling around with partitions on a production system. Can't you pursue the way jim mcnamara proposed symlinking files or even directories to somewhere else?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

2. Solaris

Running a script in a sub dir with space in it

Hi I am trying to run a script in a sub-directory, that has one space on it: such as: /internaldisk1/Task Logs1, but my entry in cron is not working: 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /internaldisk1/Task\ logs1/./remov_reject.sh > /var/tmp/interd_`date '+%Y%M%d'`.log 2>&1 Please can... (4 Replies)
Discussion started by: fretagi
4 Replies

3. Solaris

Disk space being used up while running a script

We have a script which when run consumes the space of the disk from where it is being run. we have to kill this script every time to release space. why do this happen ? any work around please we are using solaris 10 P.S. : a part of the code will make some connection to the DB (1 Reply)
Discussion started by: chidori
1 Replies

4. AIX

Running out of space

AIX 6.1 Of course, right at the end of the day I see that my "/" file system is just about out of space. I've been googling and reading man pages, but my google-fu is weak today. How do I find out what is taking all the space? I think I found the process that is cause *some* file to grow but I... (15 Replies)
Discussion started by: Spellbound
15 Replies

5. AIX

Alter paging space while the server is running

========================================================================= Hi I should make hd6 as 6144MB and remove paging00 How to do ? root@dbspsdbn1 #lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type paging01 hdisk2 ... (1 Reply)
Discussion started by: newtoaixos
1 Replies

6. Solaris

Allocating space to ufs /usr by using ZFS in solaris

Hi, Im currently having my diskspace allocation of my UFS filesystem in solris as 100% for /usr directory.I have created a zfs pool of 3 gb.I want to allocate space from my zfs pool to /usr so that i can free space in /usr.Please help me it is quiet urgent. (6 Replies)
Discussion started by: navjotmannan
6 Replies

7. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

8. HP-UX

/usr out of disk space need to unmount/ expand volume /mount

Greetings, I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space. I have plenty of hard disk space on my computer so would like to expand the size of the volume. The... (5 Replies)
Discussion started by: Dirk_
5 Replies

9. AIX

How much space is needed by /usr?

Aix 5.2 If you install Aix and accept the default settings for the various filesystems how much space is allocated for /usr? I've just accepted the default settings for the install prompts and no third party apps have been installed. TIA (3 Replies)
Discussion started by: Westy564
3 Replies

10. UNIX for Advanced & Expert Users

Running out of Space (Root)

Hi, I m working on about 16 Unix Servers, Sometime a file is generated in the root names STA, which causes the root to run out of space within few seconds ,,, and the server crashes..... hlp me out to find why the file is generated , what does it contain 'n' what is the cause ! (0 Replies)
Discussion started by: scorpiyanz
0 Replies
Login or Register to Ask a Question