Increasing ./usr or any filesystem


 
Thread Tools Search this Thread
Operating Systems AIX Increasing ./usr or any filesystem
# 1  
Old 09-15-2010
Increasing ./usr or any filesystem

Hi guys,

I want to increase my ./usr or just one path in my aix6.1 machine.

currently if I

Code:
# lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00f6126500004c00000                 0012aef0c9035
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (139776 megaby                 tes)
MAX LVs:            256                      FREE PPs:       1004 (128512 megaby                 tes)
LVs:                12                       USED PPs:       88 (11264 megabytes                 )
OPEN LVs:           11                       QUORUM:         1 (Disabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
PV RESTRICTION:     none

Code:
# df -k
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           393216    202272   49%    10599    18% /
/dev/hd2          2359296    252912   90%    47500    44% /usr
/dev/hd9var        524288    175432   67%     9768    20% /var
/dev/hd3           262144    242380    8%       40     1% /tmp
/dev/hd1           131072    130708    1%        5     1% /home
/dev/hd11admin      131072    130692    1%        5     1% /admin
/proc                   -         -    -         -     -  /proc
/dev/hd10opt       393216    185584   53%     8744    18% /opt
/dev/livedump      262144    261776    1%        4     1% /var/adm/ras/livedump

Code:
# lsvg -l rootvg | grep /usr
hd2                 jfs2       18      36      2    open/syncd    /usr
# 256                      FREE PPs:       1004 (128512 megabytes)

I've read :-
increase the size of file system
Add new disks and expandlv

my questions would be ->
1) is there any side effects to my current ./usr if I add space to it. Any risk of losing any data in the directory?

2) would this command be correct?
Code:
chfs -a size=+3000M /usr

or

Code:
extendlv /hd2 22

I can see that free PP is 1004, not so sure 1 PP stands for how many MBs. I just assume 139776 devide by 1004 = 139.219 mb per 1PP.

my intention is just to create a space with at least 3G of free space in one location.

please advice.

---------- Post updated at 03:02 PM ---------- Previous update was at 12:39 PM ----------

I just tried

Code:
# chfs -a size=+3000M /usr
Filesystem size changed to 11010048

before ->

Code:
# df -k
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           393216    202272   49%    10599    18% /
/dev/hd2          2359296    252912   90%    47500    44% /usr
/dev/hd9var        524288    175432   67%     9768    20% /var
/dev/hd3           262144    242380    8%       40     1% /tmp
/dev/hd1           131072    130708    1%        5     1% /home
/dev/hd11admin      131072    130692    1%        5     1% /admin
/proc                   -         -    -         -     -  /proc
/dev/hd10opt       393216    185584   53%     8744    18% /opt
/dev/livedump      262144    261776    1%        4     1% /var/adm/ras/livedump

after ->
Code:
# bootinfo -K
64
# df -k
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           393216    202272   49%    10599    18% /
/dev/hd2          5505024   3398160   39%    47500     6% /usr
/dev/hd9var        524288    176672   67%     9770    20% /var
/dev/hd3           262144    242380    8%       40     1% /tmp
/dev/hd1           131072    130708    1%        5     1% /home
/dev/hd11admin      131072    130692    1%        5     1% /admin
/proc                   -         -    -         -     -  /proc
/dev/hd10opt       393216    185584   53%     8744    18% /opt
/dev/livedump      262144    261776    1%        4     1% /var/adm/ras/livedump
#

seems that everythings fine. It did add 3G i guess.hmm..Now lets hope all the original files in /usr are there Smilie

+ One additional question.

Can I keep on adding the size? meaning lets say after this I still find 3G not enough and I want to add more, would it effect anything? My assumption is No.
# 2  
Old 09-16-2010
Quote:
Originally Posted by pilotHans
seems that everythings fine. It did add 3G i guess.hmm..Now lets hope all the original files in /usr are there Smilie

+ One additional question.

Can I keep on adding the size? meaning lets say after this I still find 3G not enough and I want to add more, would it effect anything? My assumption is No.
chfs works fine and does not affect existing data. you can keep adding space as long as you have physical space available. I would strongly suggest moving non-OS data out of /usr though. This will make backup/restores go much smoother and avoid having an application affect the OS in a negative way.

chfs is normally the only command that is needed for this. be *very* careful with LVM commands. They are very powerful and can make for a bad day if used improperly.

Last edited by frank_rizzo; 09-16-2010 at 01:59 AM.. Reason: add comment
# 3  
Old 09-18-2010
Hi,
Quote:
I can see that free PP is 1004, not so sure 1 PP stands for how many MBs. I just assume 139776 devide by 1004 = 139.219 mb per 1PP.
Wrong. As your own output shows:
Quote:
PP SIZE: 128 megabyte(s)
You do not have to extend /usr ever - as it is supposed to be used only for package installations - and these have the capability to extend the filesystem according to their needs. If it runs full, commit old packages that are only applied - this makes a lot of space free.
Quote:
Can I keep on adding the size?
Sure - as long as you haven't reached the size you defined when creating your logical volume filesystem. If you did reach you will get an error message and need to change this size to a greater value.
btw - if you run df -g instead of df -k, it makes the entire output a lot more readable.

For future, read the LVM redbook or at least a basic system administration redbook - these are written for AIX 5L but basic commands never change on AIX. If you are switching from Solaris or HP to AIX there are very good redbooks for this as well.
Kind regards
zxmaus
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Hardware

Increasing the filesystem size

Hi Guys We have a VM machine, now I want to increase the size of the filesystem. We are running RHEL6 O/S. I have filesystem that is 500GB I want to increase that filesystem to 1.5 TB. The guy who manages the VM increased the size on the VM machine, now how do I make sure that the... (7 Replies)
Discussion started by: Phuti
7 Replies

2. AIX

Problem in increasing filesystem

Hi Friends, I have a problem while increasing the fileystem. Actually the filesystem is 256 gb and i have to add another 256 gb.So i got a new lun(hdisk) with 256 gb. I added to the vg using the extendvg command. It was successfully added, and when i checked the free pp's in vg it was showing... (4 Replies)
Discussion started by: Mohamed Thamim
4 Replies

3. AIX

Does HACMP have bugs increasing filesystem or Logical volumes

Hello, Does HACMP have bugs ? I have version 5.4 on AIX 6.1 and when I try to increase filesystem space or logical volume partitions which are under HACMP VG it gives me error: # lsvg rootvg pr0oravg px0oravg pb0oravg pr0sapvg px0sapvg pb0sapvg pr1_pr2_vg pr2_px1_vg # #... (11 Replies)
Discussion started by: filosophizer
11 Replies

4. AIX

What is the cause of USR filesystem full

we are using aix 5.3 and we notice that the filesystem /usr is almost full. we have an oracle database running on the server.what are the cause why this filesystem is almost full.what should we do to free some space on this filesystem beside increase the size?thanks (4 Replies)
Discussion started by: paulexis
4 Replies

5. Solaris

smf fails to mount svc:/system/filesystem/usr:default

http://i44.tinypic.com/2cmq7vn.jpg Please help me on this issue i'm using solaris on vmware x86 even i runed fsck on root disk like 'fsck -Y /dev/rdsk/c0d0s0 ' but again after reboot it is going to maintanance mode reply soon (6 Replies)
Discussion started by: knl.sundeep
6 Replies

6. AIX

/usr/nsr needing cleanup (filesystem 100%)

Hi, got a nice surprise this morning. I have an alert saying I have a server with the filesystem /usr/nsr full at 100%. Upon looking at its content I have no idea what to clean up. The only files that were created within the past few days are kind of small. So I suspect it was always almost... (3 Replies)
Discussion started by: Browser_ice
3 Replies

7. Solaris

Mount /usr as a separate filesystem

Hi All, I have mount /usr directory as a seperate filesystem.The /usr directory includedd in / root file system.I have to mount it as seperate. Please Help me, Thanks and Regards, (7 Replies)
Discussion started by: lbreddy
7 Replies

8. Filesystems, Disks and Memory

how can I extend /usr filesystem

How can extend /usr filesystem in hp-ux 11.11 (I'm not using online JFS) ? (0 Replies)
Discussion started by: pedro_lezaeta
0 Replies

9. AIX

Increasing the FileSystem Size

Hi Everybody, I have AIX 4.3 and I have a FileSystem with 400GB size, which called /db/run. Because of grow up of the application's data, more storage has been added 200GB. To add this space without affecting the application & the application's requirements, I have to add this 200GB to the existed... (9 Replies)
Discussion started by: aldowsary
9 Replies

10. UNIX for Advanced & Expert Users

Increasing filesystem space

Now, i know a ufs file system can be increased using mkfs but hwo do I take space from a file system and add it to another file system? at my job here, that seems to be possible because I see request on it almost every day. what is the exact command to do this and does the system need to be... (1 Reply)
Discussion started by: TRUEST
1 Replies
Login or Register to Ask a Question