Visit Our UNIX and Linux User Community


extend /usr on AIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users extend /usr on AIX
# 1  
Old 08-13-2002
Question extend /usr on AIX

Hi!

How to extend /usr partition in rootvg on AIX 4.3.3-09?
I guess first I'll have to decrease the size of other partition(s) in rootvg?


Thank you!
# 2  
Old 08-13-2002
Increase the /usr PP (Physical Partition) number with the command:
chlv -x 512 hd2

Mount /tmp with the command :
mount /dev/hd3 /tmp

Note: If the tmp logical volume name is different from /dev/hd3 the migration will fail. It is recommended that your /tmp file system has at least 40 MB of free space; if necessary, free in /tmp or extend the file system with SMIT or the chfs command (example here to increase /tmp with 20,000 512 blocks = 10 MB) :
chfs -a size='+20000' /tmp
Be aware that if the disk is completely full, you may not be able to increase the size of the /tmp or /etc if they are too small. If this is the case, make a backup (smit mksysb), and restore with the shrink option. The minimum free disk space required is 200 MB. Check the rootvg place and PP size with the command:
lsvg rootvg

If you have a system disk less than 4GB or if the PP size is 4MB, it is better to extend the hd5 partition. If you do not extend hd5, you may have the following problem:
0301-161 bosboot: dd failed to copy boot image
0301-165 bosboot: WARNING! System not bootable

To extend the hd5 partition:
check the PP number of hd5 with the command:
lspv -p hdiskXX| grep -i boot (hdiskXX is rootvg)
Only 1 PP : 1-1 used outer edge hd5 boot N/A

if the PP number is 1 extend it with the command:
extendlv hd5 1
Note : the two hd5 PP have to be contiguous.
Two PP not contiguous :1-1 used outer edge hd5 boot N/A
13-13 used outer edge hd5 boot N/A
If it is not, you have to remove hd5 and create it again with the commands:
rmlv -f hd5
mklv -y hd5 -t boot -u2 rootvg 2 hdiskXX
lspv -p hdiskXX | grep -i boot (for checking)

( Two PP contiguous : 162-163 used outer middle hd5 boot N/A)
bosboot -a -d /dev/ipldevice
# 3  
Old 08-13-2002
you can also use smit jfs

you can only increase the size of a filesystem but you can not decrease the size of a filesystem.

Previous Thread | Next Thread
Test Your Knowledge in Computers #11
Difficulty: Medium
IBM chose the name System/360 (or S/360) because it was one of the first computers to focus on graphics processing.
True or False?

9 More Discussions You Might Find Interesting

1. AIX

AIX extend VG error

Hi, I have encountered the issue of extending VG: Here is my command / > extendvg vg1 hdisk39 0516-1162 extendvg: Warning, The Physical Partition Size of 128 requires the creation of 8192 partitions for hdisk39. The limitation for volume group tsm_stg is 3048 physical... (10 Replies)
Discussion started by: Phat
10 Replies

2. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies

3. 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

4. AIX

/usr/sbin/extendvg: Unable to extend volume group

Dear Expret, Help me about my issue, I trying add new disk to volume Group but error: step add new disk to volume group. 1. ~Change a Volume Group Add a Physical Volume to a Volume Group Remove a Physical Volume from a Volume Group Reorganize a Volume Group... (6 Replies)
Discussion started by: williamen
6 Replies

5. Shell Programming and Scripting

AIX -/usr/bin/expect shows output Don't know why.

Hi, I have been programming with the expect program for a while now and have create a series of menu driven checks for the operations team. One thing I have noticed is that I call a remote script and pass parameters and this is display on the screen....for example. Within the script ... (0 Replies)
Discussion started by: yakky
0 Replies

6. AIX

Which files can be deleted in /usr in an aix hacmp node?

Hi Can ony one advise which files can be deleted in /usr in an aix hacmp node ? Im new to aix and Im not sure which files can be deleted ? #df -g /usr Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd2 7.00 1.00 86% 67013 22% /usr ... (4 Replies)
Discussion started by: samsungsamsung
4 Replies

7. AIX

aix:ksh: /usr/bin/rm: 0403-027 The parameter list is too long.

Hi, I am getting the below error message When i am trying to delete the files from the directory.Could you please guide me? rm *.aud ksh: /usr/bin/rm: 0403-027 The parameter list is too long. and find /oracle/admin/testP/adump/*.aud -mtime +5 -exec rm {} \; ksh: /usr/bin/find:... (3 Replies)
Discussion started by: nokiae63
3 Replies

8. 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

9. 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

Featured Tech Videos