Sponsored Content
Operating Systems AIX changing Physical Partition (PP) Post 302344307 by shockneck on Saturday 15th of August 2009 07:03:21 PM
Old 08-15-2009
Quote:
Originally Posted by eRJe
[...]I am trying to replace an old 9gb hard disk for a 36gb hard drive on an AIX 4.3.2 system (can't update)

I was thinking of doing this by doing a dd from the 9gb to the 36gb hard drive and then resize the Logical Volumes. However, lspv <36gb hard disk> gives me the folowing:

Code:
#lrnt> lspv hdisk6
PHYSICAL VOLUME:    hdisk0                   VOLUME GROUP:     rootvg
PV IDENTIFIER:      0035570279651069         VG IDENTIFIER     00355702e19f34a0
PV STATE:           active                                     
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            16 megabyte(s)           LOGICAL VOLUMES:  9
TOTAL PPs:          542 (8672 megabytes)     VG DESCRIPTORS:   2
FREE PPs:           29 (464 megabytes)                         
USED PPs:           513 (8208 megabytes)                       
FREE DISTRIBUTION:  00..00..00..00..29                         
USED DISTRIBUTION:  109..108..108..108..80        

I can only allocate an extra 29 PPs = 464mb. Where are the rest of the PPs of how can I increase the PP size?
Hi Robert.
From what you describe I think you are experienced with some other Unix, probably Linux, but you are unaware of AIX in general and of LVM in particular. Unfortunately by using what worked in a different environment you outfoxed yourself here. LVM is great because many things can be done on the fly but among the things LVM cannot do is changing a VG's PP size. Once you decided upon a PP size you need create a new VG to change that. This usually means backup followed by restore. By using dd you wrote your 9GB disk onto the 36GB disk. This explains why there are just as many PP visible as the 9GB disk had you used as infile. No LVM has written any logical structure onto your bigger disk but you did that with dd. From AIX 5.2 on you might be able to change this with chvg -g but you would need to boot from that disk first. However, even if your server boots from that disk and you could add new partitions to the VG's descriptor area you would still need to use the -t factor to fully utilise the 36GB disk.

Quote:
Originally Posted by eRJe
Or should I be using a different way to upgrade the (boot)disk?
Well, yes. Both scottn and zxmaus hinted at part of the solution. An AIX administrator would
Code:
# extendvg -f rootvg hdisk6
# chvg -t 4 rootvg
# mirrorvg rootvg hdisk6
# bosboot -ad /dev/hdisk6
# bootlist -m hdisk6 hdisk0
# shutdown -Fr

Unfortunately there is another fly in the ointment. Depending on where hdisk6 belongs to there might be more to do before you could follow that procedure. AIX is very robust usually but sth AIX cannot deal with is two disks with the same PVID but that is what you created with dd. If that evil disk exists within your rootvg removing it from there might turn out to be bit of problem. In that case start with takeing a backup from your rootvg. Only then try to get rid of the disk with a
Code:
# dd if=/dev/zero of=/dev/hdisk6 bs=1024k
# reducevg rootvg hdisk6
# savebase
# shutdown -Fr

And hopefully your server has no memory of hdisk6 as member of the rootvg after that.

http://www.redbooks.ibm.com/abstract...5432.html?Open
http://www.redbooks.ibm.com/abstract...5433.html?Open

Last edited by shockneck; 08-16-2009 at 05:23 AM.. Reason: Added redbooks links.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

vol group - physical partition size

Hi Everyone, Can someone tell me the effect of the pp size of the volume group created for Oracle data. It would seem that creating small pp's will cause more overhead. What if you make the pp to large? What should I base this size on? Thanks, (4 Replies)
Discussion started by: kburrows
4 Replies

2. UNIX for Dummies Questions & Answers

understanding logical partition, physical partition

hi, 1) is logical partition the same as physical partition except that one is physical and the other is logical? 2) then it must a one to one ratio? (3 Replies)
Discussion started by: yls177
3 Replies

3. UNIX for Dummies Questions & Answers

physical volume and physical disk.

Hello, I need explanations about physical disks and physical volumes. What is the difference between these 2 things? In fact, i am trying to understand what the AIX lspv2command does. Thank you in advance. (2 Replies)
Discussion started by: VeroL
2 Replies

4. UNIX for Dummies Questions & Answers

Physical volume- no free physical partitions

I was in smit, checking on disc space, etc. and it appears that one of our physical volumes that is part of a large volume group, has no free physical partitions. The server is running AIX 5.1. What would be the advisable step to take in this instance? (9 Replies)
Discussion started by: markper
9 Replies

5. AIX

Maximum Limit of HMC to handle Physical Power Virtualization Physical Machine

Hello All, Can anybody please tell me what is the maximum limit of Physical IBM Power Machine which can be handled by single HMC at a single point of time? Thanks, Jenish (1 Reply)
Discussion started by: jenish_shah
1 Replies

6. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

7. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

8. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

9. Solaris

Changing physical block size in ssd.conf Solaris

Close (0 Replies)
Discussion started by: gull05
0 Replies
All times are GMT -4. The time now is 03:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy