Re: Replace a rootvg hard disk with different capacity

From: Jano (bradounet1_at_caramail.com)
Date: 08/29/03


Date: Fri, 29 Aug 2003 14:33:54 +0200

In AIX, when you create a volume group, you can use 1016 partitons max
per disk.
To create a rootvg VG on a 9.1 disk, you need to use PP size at least
equal to 16 Mo (1016 x 16 = 16256 Mo maximum disk size), that is not
enougth to create or add a volume group on a 18 gig disk.

to check this, use the following command:

# lsvg rootvg | grep SIZE

...to get the PP size used to create rootvg.
If this value is minor than 32 megabytes, you must use (as Steve says)
the "chvg" command, in order to add the new disk to rootvg.
The "chvg" command using a "-t" by-pass the 1016 partitions limitation.

#######################################################################

-t [factor] Changes the limit of the number of physical partitions per
physical volume, specified by factor. factor should be between 1 and 16
for 32 disk volume groups and 1 and 64 for 128 disk volume groups.
If factor is not supplied, it is set to the lowest value such that the
number of physical partitions of the largest disk in volume group is
less than factor x 1016.

If factor is specified, the maximum number of physical partitions per
physical volume for this volume group changes to factor x 1016.

Notes:
If the volume group is created in AIX 3.2/4.1.2 in violation of 1016
physical partitions per physical volume limit, this flag can be used to
convert the volume group to a supported state. This will ensure proper
stale/fresh marking of partitions.
factor cannot be changed if there are any stale physical partitions in
the volume group.
Once volume group is converted, it cannot be imported into AIX Version
4.3 or lower versions.
This flag cannot be used if the volume group is varied on in concurrent
mode.
The maximum number of physical volumes that can be included in this
volume group will be reduced to (MAXPVS/factor).
Change of the volume group may require the modification of the LVM meta
data. In this situation the volume group will be varied off in
management mode to ensure the integrity of the Volume group, needing the
closure of all open logical volumes in this volume group. Since logical
volumes in rootvg cannot be closed, rootvg cannot be converted if it
needs modification of the meta-data as part of the chvg -t operation.
########################################################################

"man chvg" can help you to understand what I'm trying to explain to you !!!

DT wrote:
> Hi Steve,
>
> If I used mirror the lv to the 18 gig disk, I'm not sure whether still need
> to execute chvg.
> Any comment ?
>
> - DT
>
>
> "Steve Nottingham" <steve@wakefieldrfc.freeserve.co.uk> wrote in message
> news:42862645.0308281328.7f3cdd94@posting.google.com...
>
>>"DT" <odn@sinaman.com> wrote in message
>
> news:<bilg3j$4fb3@imsp212.netvigator.com>...
>
>>>Hi Jano,
>>>
>>>Thanks you for your reply, I will test it with testing machine before
>>
> going
>
>>>to live.
>>>
>>
>>You will not be able to add an 18 gig disk to rootvg without changing
>>the factor of the volume group (man chvg)
>>
>>Steve
>
>
>



Relevant Pages

  • LVM on SW RAID for sarge - success
    ... I've just had success migrating Debian Sarge to root on LVM on RAID. ... First make sure the SCSI BIOS boots from the first disk. ... I made reiserfs on all the filesystem partitions and completed the ... The remaining two disks were partitioned and used to create RAID arrays ...
    (Debian-User)
  • Re: Replace SCSI Drive
    ... from there you can manipulate other hard drives attached to the machine. ... It should 'just work' but watch out that you keep disk devices ... vi-a) Write a BSD partition table into the slice, then set up your required FreeBSD partitions: ... items under the 'Custom Install' to achieve the desired result. ...
    (freebsd-questions)
  • Re: Re-mirroring rootvg
    ... that we're sure all is well, we need to re-mirror rootvg again. ... I use the following commands if both disk have the same size and the ... Mirror rootvg using mirrorvg or mklvcopy. ...
    (comp.unix.aix)
  • Re: RAMDisk and HardDisk strikes back!
    ... One disk with only one partition as large as FBA setup; ... Two disk with one or more partitions for each. ... @ 20:32:55.252 #W059 Selecting best compatible driver failed. ... @ 20:53:51.166 #T211 Install Device: Changing registry settings as specified ...
    (microsoft.public.windowsxp.embedded)
  • Re: backups & cloning
    ... dump unmounted file systems to the system's tape drive. ... The restore program, on the other side of the | pipe, does ... Here's an example (ad1 is source disk, ... Use dump only on unmounted partitions. ...
    (freebsd-questions)

Quantcast