lspv is not showing all hdisks in rootvg!

lspv is not showing all hdisks in rootvg!

Post by Mats Sj?bl » Thu, 13 Feb 2003 19:21:26



Hi!
OS: AIX 433-10

Our mirrored rootvg is located on hdisk0 + hdisk1, but when doing the
lspv command the output on hdisk1 is:

lspv hdisk1
0516-320 : Physical volume 0040b6ba6defe2970000000000000000 is not
assigned to
        a volume group.

Output from hdisk0 is OK and says it belongs to rootvg.

However, lsvg -p rootvg shows the truth, hdisk1 IS assigned to rootvg!
rootvg:
PV_NAME      PV STATE  TOTAL PPs  FREE PPs FREE DISTRIBUTION
hdisk1       active    542        288      97..03..00..79..109
hdisk0       active    542        268      77..03..00..79..109

.. and lslvg -l rootvg is as expected:
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT
POINT
hd6                 paging     67    134   2    open/syncd    N/A
hd5                 boot       1     2     2    closed/syncd  N/A
hd8                 jfslog     1     2     2    open/syncd    N/A
hd4                 jfs        8     16    2    open/syncd    /
hd2                 jfs        128   256   2    open/syncd    /usr
hd9var              jfs        11    22    2    open/syncd    /var
hd3                 jfs        10    20    2    open/syncd    /tmp
hd1                 jfs        1     2     2    open/syncd    /home

... and lsvg rootvg shows that there are 2 active PVs, no STALE PVs!
VOLUME GROUP:   rootvg                   VG IDENTIFIER:
0040b6ba140802b8
VG STATE:       active                   PP SIZE:        16
megabyte(s)
VG PERMISSION:  read/write               TOTAL PPs:      1084 (17344
megabytes)
MAX LVs:        256                      FREE PPs:       556 (8896
megabytes)
LVs:            12                       USED PPs:       528 (8448
megabytes)
OPEN LVs:       11                       QUORUM:         1
TOTAL PVs:      2                        VG DESCRIPTORS: 3
STALE PVs:      0                        STALE PPs:      0
ACTIVE PVs:     2                        AUTO ON:        yes
MAX PPs per PV: 1016                     MAX PVs:        32

So ....
How can i fix this miss-match, and get hdisk1 back to rootvg in lspv
output!?
Do I have to unmirror rootvg, remove hdisk1, then assign it again and
finallay mirror rootvg again ... hope not!?
I have rebooted but no diffrence.
Problem accured probably after moving hdisk1 to another SCSI ... not
really sure since we didnt discover it until resently!

Regards,
Mats Sj?blom

Stockholm

 
 
 

lspv is not showing all hdisks in rootvg!

Post by Olivier Vuillemar » Thu, 13 Feb 2003 19:25:19


try synclvodm -v rootvg.


> Hi!
> OS: AIX 433-10

> Our mirrored rootvg is located on hdisk0 + hdisk1, but when doing the
> lspv command the output on hdisk1 is:

> lspv hdisk1
> 0516-320 : Physical volume 0040b6ba6defe2970000000000000000 is not
> assigned to
>         a volume group.

> Output from hdisk0 is OK and says it belongs to rootvg.

> However, lsvg -p rootvg shows the truth, hdisk1 IS assigned to rootvg!
> rootvg:
> PV_NAME      PV STATE  TOTAL PPs  FREE PPs FREE DISTRIBUTION
> hdisk1       active    542        288      97..03..00..79..109
> hdisk0       active    542        268      77..03..00..79..109

> .. and lslvg -l rootvg is as expected:
> rootvg:
> LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT
> POINT
> hd6                 paging     67    134   2    open/syncd    N/A
> hd5                 boot       1     2     2    closed/syncd  N/A
> hd8                 jfslog     1     2     2    open/syncd    N/A
> hd4                 jfs        8     16    2    open/syncd    /
> hd2                 jfs        128   256   2    open/syncd    /usr
> hd9var              jfs        11    22    2    open/syncd    /var
> hd3                 jfs        10    20    2    open/syncd    /tmp
> hd1                 jfs        1     2     2    open/syncd    /home

> ... and lsvg rootvg shows that there are 2 active PVs, no STALE PVs!
> VOLUME GROUP:   rootvg                   VG IDENTIFIER:
> 0040b6ba140802b8
> VG STATE:       active                   PP SIZE:        16
> megabyte(s)
> VG PERMISSION:  read/write               TOTAL PPs:      1084 (17344
> megabytes)
> MAX LVs:        256                      FREE PPs:       556 (8896
> megabytes)
> LVs:            12                       USED PPs:       528 (8448
> megabytes)
> OPEN LVs:       11                       QUORUM:         1
> TOTAL PVs:      2                        VG DESCRIPTORS: 3
> STALE PVs:      0                        STALE PPs:      0
> ACTIVE PVs:     2                        AUTO ON:        yes
> MAX PPs per PV: 1016                     MAX PVs:        32

> So ....
> How can i fix this miss-match, and get hdisk1 back to rootvg in lspv
> output!?
> Do I have to unmirror rootvg, remove hdisk1, then assign it again and
> finallay mirror rootvg again ... hope not!?
> I have rebooted but no diffrence.
> Problem accured probably after moving hdisk1 to another SCSI ... not
> really sure since we didnt discover it until resently!

> Regards,
> Mats Sj?blom

> Stockholm

--

*----------------------*
| Olivier Vuillemard   |
| Tel : 01.47.65.51.99 |
*----------------------*

 
 
 

lspv is not showing all hdisks in rootvg!

Post by Norman Levi » Sat, 15 Feb 2003 16:22:32



| Hi!
| OS: AIX 433-10
|
| Our mirrored rootvg is located on hdisk0 + hdisk1, but when doing the
| lspv command the output on hdisk1 is:
|
| lspv hdisk1
| 0516-320 : Physical volume 0040b6ba6defe2970000000000000000 is not
| assigned to
|         a volume group.
|
| Output from hdisk0 is OK and says it belongs to rootvg.
|
| However, lsvg -p rootvg shows the truth, hdisk1 IS assigned to rootvg!
| rootvg:
| PV_NAME      PV STATE  TOTAL PPs  FREE PPs FREE DISTRIBUTION
| hdisk1       active    542        288      97..03..00..79..109
| hdisk0       active    542        268      77..03..00..79..109
|
|
| .. and lslvg -l rootvg is as expected:
| rootvg:
| LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT
| POINT
| hd6                 paging     67    134   2    open/syncd    N/A
| hd5                 boot       1     2     2    closed/syncd  N/A
| hd8                 jfslog     1     2     2    open/syncd    N/A
| hd4                 jfs        8     16    2    open/syncd    /
| hd2                 jfs        128   256   2    open/syncd    /usr
| hd9var              jfs        11    22    2    open/syncd    /var
| hd3                 jfs        10    20    2    open/syncd    /tmp
| hd1                 jfs        1     2     2    open/syncd    /home
|
|
| ... and lsvg rootvg shows that there are 2 active PVs, no STALE PVs!
| VOLUME GROUP:   rootvg                   VG IDENTIFIER:
| 0040b6ba140802b8
| VG STATE:       active                   PP SIZE:        16
| megabyte(s)
| VG PERMISSION:  read/write               TOTAL PPs:      1084 (17344
| megabytes)
| MAX LVs:        256                      FREE PPs:       556 (8896
| megabytes)
| LVs:            12                       USED PPs:       528 (8448
| megabytes)
| OPEN LVs:       11                       QUORUM:         1
| TOTAL PVs:      2                        VG DESCRIPTORS: 3
| STALE PVs:      0                        STALE PPs:      0
| ACTIVE PVs:     2                        AUTO ON:        yes
| MAX PPs per PV: 1016                     MAX PVs:        32
|
|
| So ....
| How can i fix this miss-match, and get hdisk1 back to rootvg in lspv
| output!?
| Do I have to unmirror rootvg, remove hdisk1, then assign it again and
| finallay mirror rootvg again ... hope not!?
| I have rebooted but no diffrence.
| Problem accured probably after moving hdisk1 to another SCSI ... not
| really sure since we didnt discover it until resently!
|
| Regards,
| Mats Sj?blom

| Stockholm

Could be a corruption in the ODM. If you have your documentation on line, do a
docsearch and look for lqueryvg.  You should get 3 hits and one of them will be
for a shell script called "rvgrecover" (Root VG Recover).
Try it.
norm

 
 
 

lspv is not showing all hdisks in rootvg!

Post by Mats Sj?bl » Thu, 20 Feb 2003 18:43:03


Hi!

Thanx for all rply:s!
"synclvodm -v rootvg" did the job!

//Mats Sj?blom

:~> lspv
hdisk0         0040b82a76e54f7f    rootvg
hdisk1         0040b82adf42795f    None

:~>
:~> synclvodm -v rootvg
synclvodm: Physical volume data updated.
synclvodm: Logical volume hd6 updated.
synclvodm: Logical volume hd5 updated.
synclvodm: Logical volume hd8 updated.
synclvodm: Logical volume hd4 updated.
synclvodm: Logical volume hd2 updated.
synclvodm: Logical volume hd9var updated.
synclvodm: Logical volume hd3 updated.
synclvodm: Logical volume hd1 updated.
synclvodm: Logical volume afs_cache updated.
synclvodm: Logical volume l.afs_cli updated.
synclvodm: Logical volume local updated.
synclvodm: Logical volume dumpdevice updated.
:~>
:~> lspv
hdisk0         0040b82a76e54f7f    rootvg
hdisk1         0040b82adf42795f    rootvg

 
 
 

1. How to remove a hdisk which is not belong to rootvg but has a rootvg label

Hi, AIX experts,

How to remove a hdisk which is not belong to rootvg but has a rootvg label.
This disk used to be in the rootvg as hdisk0, then it was removed from
rootvg, reducevg rootvg hdisk0, and then its SCSI ID was changed from 0 to
2, after rebooting, got the following

Any help will be appreciated!!!

# lspv
hdisk0 00004801412e120b rootvg
hdisk1 000048014091fe83 rootvg
hdisk2 0001744027162ae6 rootvg

# rmdev -dl hdisk2
hdisk2 deleted

# cfgmgr

# lspv
hdisk0 00004801412e120b rootvg
hdisk1 000048014091fe83 rootvg
hdisk2 0001744027162ae6 rootvg

# reducevg rootvg hdisk2
0516-022 ldeletepv: Illegal parameter or structure value.
0516-884 reducevg: Unable to remove physical volume hdisk2.

# reducevg rootvg 0001744027162ae6
0516-022 ldeletepv: Illegal parameter or structure value.
0516-884 reducevg: Unable to remove physical volume 0001744027162ae6.

# extendvg rootvg hdisk2
0516-696 extendvg: Physical Volume hdisk2 belongs to another volume group.

Regards,
Wade

2. msgrcv() gets a SIGBUS

3. Renaming rootvg's hdisks?

4. Fetchmail / sendmail setup for server to handle mail

5. How can I migrate the rootvg from one hdisk to another?

6. Reboots when compiling using GCC

7. Plug-ins not not seen by Gimp

8. (Fwd) restoring files

9. About mirror rootvg and the contents in the rootvg automatically synchronize

10. Physical memory not showing up (48M installed, only showing 14M)

11. hdisk from SAN not recognised after reboot

12. getty_ps2.0.7 Still my modem does not accepts dial-ins.

13. descriptor file not large enough to add another drive to rootvg