Sponsored Content
Full Discussion: AIX extend VG error
Operating Systems AIX AIX extend VG error Post 303033589 by bakunin on Monday 8th of April 2019 08:36:23 PM
Old 04-08-2019
Let me first explain a bit of how historically the LVM evolved to what it is now. It will put things better in perspective so that when i answer your question the picture will be better understandable.

The LVM was introduced with AIX 3, a very long time ago (beginning of the nineties). Back then disks were measured in MB and hence the limitations of the LVM weren't really limitations at all:

- a PV (physical volume) can hold only 1019 PPs (phyiscal partitions)
- a VG (volume group) can contain only 32 PVs

When a VG is created the property of PP size is selected and it cannot be changed later. The only way is to backup the VG, delete and recrete it with a different PP size, recreate the LVs/FSs and then restore the backup. Since disks grew bigger and bigger and the PP size cannot be changed later PVs added later to VGs soon hit the 1019 PPs limit and that could only be rectified by a (time-consuming) backup-and-restore.

The "solution" (actually less solution than rather "workaround") IBM came up with was to introduce the "factor". By rearranging the meaning of a few bits in the respective counters (obviously) they allowed for PVs to hold multiples of these 1019 PPs by - at the same time - reducing the maximum number of PVs in a VG. e.g. a factor of 2 means a single PV (disk) can hold up to 2x1019=2038 PPs but the VG would be limited to hold 16 PVs instead of 32. Analogous for different factors. Notice that will do nothing to increase the maximum amount of space a VG can hold because the increased size of one disk will be offset by the reduction in the number of possible disks.

So, finally IBM came up with the "Big VG" and the "Scalable VG". The scalable VG did away with a lot of limitations the older "classic" VG had. The downside is that VG operations take ever so slightly (seconds at best) longer because the layout is a bit more complex. Also it is not possible to directly convert a classical VG into a scalable one and the management of a scalable VG takes a bit more space.

Quote:
Originally Posted by Phat
How if I convert it to scalable VG? it can add the disk regardless of the size as well as "Max PP per PV" parameter?
Short answer: you can't so backup, recreate and restore. You should do that anyway as i will explain further on:

Your PP size is ridiculously small (128MB) for a VG of this size (~5.2TB). The PP size should be the smallest amount by which you will ever want to increase/decrease a FS. Ask yourself if you need to increase a FS by 128MB and the most probable answer will be "certainly not". Increase the size to something sensible, perhaps 1GB.

Second, you have 29 disks in this VG. Most probably many of these disks are very small compared to the size of the VG. I suppose most of these disks are LUNs anyway therefore it makes sense to recreate at most 3-4 of these disks with the same total size and put the VG on it there. Future increases in size can be done by increasing the size of these LUNs and re-read the LUNs size (see the chvg -g command) instead of adding new LUNs to the VG.

For this to work you want to do away with the 1019-PP-per-disk maximum and hence it makes sense to recreate the new VG as a scalable VG where a PV can have a (practically) unlimited number of PPs. The slight penalty when managing scalable VGs in comparison to classical VGs is negligible.

I hope this helps.

bakunin

Last edited by bakunin; 04-09-2019 at 09:39 AM..
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

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 Replies)
Discussion started by: steve99
2 Replies

2. HP-UX

how to extend a vg on the same disk

on the disk array (EMC Clariion cx300): we added 3 disk and extended the LUN corresponding to HP-9000 (rp7410) on HP-UX 11.11: diskinfo /dev/rdsk/c10t0d0, show more disk space, but vgdisplay vg13 does not show more space So the problem is the disk had increased, but vgdisplay does not... (6 Replies)
Discussion started by: pedro_lezaeta
6 Replies

3. AIX

Extend a Filesystem with other LV

Hi Everybody, Is it possible to extend a Filesystem by adding a new LV that exist on different VG to this Filesystem? Thanks in advance. (6 Replies)
Discussion started by: aldowsary
6 Replies

4. Solaris

How to extend a filesystem

I am running solaris 10 with Veritas. I want to extend a filesystem. It's an oracle partition (/ora12). How can I find out if there is space available to expand the filesystem and then how does one extend it. I'm from the HPUX world and so LVM was always how I did things. Thanks jackie (5 Replies)
Discussion started by: jackiebaron
5 Replies

5. Filesystems, Disks and Memory

How to extend a filesystem??

OK I'm sure this question has been posed far too many times. I have solaris 10 x86 with NO Veritas or Disksuite filesystems. Below is the output of df -k # df -k Filesystem kbytes used avail capacity Mounted on / 10485760 547513 9317128 6% / /dev... (1 Reply)
Discussion started by: jackiebaron
1 Replies

6. Solaris

Filesystem - error when extend the filesystem

Hi all, currently , my root filesystem already reach 90 ++% I already add more cylinder in the root partition as below Part Tag Flag Cylinders Size Blocks 0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300 1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies

7. Red Hat

Can't extend lv

Hi, I have recently increased the size of my pv and I am now attempting to increase the lv but I get the following error: # vgdisplay --- Volume group --- VG Name VolGroup00 System ID Format lvm2 Metadata Areas 1 Metadata... (7 Replies)
Discussion started by: Duffs22
7 Replies

8. AIX

How to extend mirrored VG?

Hi all, I need to extend a lv, but unfortunately I do not have enough space on my mirrored Volume group. I've planned to add 2 more disks to this vg (for mirroring) But ... what's the next steps to extend my lv using these 2 disks with a valid mirroring ? 1. extendvg myvg disk1 disk2... (3 Replies)
Discussion started by: unclefab
3 Replies

9. Linux

Unable to extend LV

Hi all. I have a Logical volume that I can't extend, with this error message: server171:root:/root# lvextend -L +1024M -v /dev/aplic_vg/siteminderwa_lv Finding volume group aplic_vg Archiving volume group "aplic_vg" metadata (seqno 75). Extending logical volume siteminderwa_lv to... (0 Replies)
Discussion started by: Gabriander
0 Replies

10. Red Hat

Is it possible to extend PV

Hello, I have redhat and centos systems that I've only been able to grow the VG by adding more disks. I've been searching the web for a way to extend a volume group by growing the physical disk only and not having to add a second disk. Is it possible? I can do this with AIX, by just... (0 Replies)
Discussion started by: bbbngowc
0 Replies
All times are GMT -4. The time now is 07:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy