i have an old server with a mirrored rootvg ( with 2 HDs). i try to mimic this server to a new by using the mirrored disk.
i powered down the server. took one drive to another server and booted the new server up with this mirrored drive and a brand new drive.
then i ended up with a weired situation.
- diag shows 2 drives.
slot1 - hdisk2
slot2 - hdisk1
- But lsdev shows 3 drives. 2 disks(hdisk0/1) are on same scsi address. one is defined.
# lsdev -Cc disk
hdisk0 Defined 06-08-01-5,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 06-08-01-5,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available 06-08-01-8,0 16 Bit LVD SCSI Disk Drive
- And rootvg shows a missing PV,
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 missing 546 450 102..93..37..109..109
hdisk1 active 546 101 06..00..00..00..95
hdisk2 active 546 538 110..101..109..109..109
- somehow i can lspv all 3 PVs and even the missing disk/PV (hdisk0)has contents.
bash-4.2# lspv -l hdisk0
hdisk0:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd2 20 20 00..00..20..00..00 /usr
hd4 2 2 00..00..02..00..00 /
hd3 3 3 00..00..03..00..00 /tmp
hd9var 12 12 00..00..12..00..00 /var
hd10opt 10 10 00..00..10..00..00 /opt
hd1 24 24 00..00..24..00..00 /home
fslv004 8 8 08..00..00..00..00 /mc
hd8 1 1 00..00..01..00..00 N/A
hd6 16 16 00..16..00..00..00 N/A
bash-4.2# lspv -l hdisk1
hdisk1:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
fslv00 200 200 40..00..37..109..14 /trs
fslv01 40 40 00..40..00..00..00 N/A
fslv02 112 112 60..52..00..00..00 /backup
hd11admin 1 1 01..00..00..00..00 /admin
loglv00 1 1 00..01..00..00..00 N/A
hd2 20 20 00..00..20..00..00 /usr
hd4 2 2 00..00..02..00..00 /
hd3 3 3 00..00..03..00..00 /tmp
hd9var 12 12 00..00..12..00..00 /var
hd10opt 10 10 00..00..10..00..00 /opt
hd1 24 24 00..00..24..00..00 /home
livedump 1 1 01..00..00..00..00 /var/adm/ras/livedump
fwdump 1 1 01..00..00..00..00 /var/adm/ras/platform
hd5 1 1 01..00..00..00..00 N/A
hd8 1 1 00..00..01..00..00 N/A
hd6 16 16 00..16..00..00..00 N/A
bash-4.2# lspv -l hdisk2
hdisk2:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
fslv004 8 8 00..08..00..00..00 /mc
- the mount points lists from rootvg is a combination of all 3 PVs. although i only have 2 disks.
bash-4.2# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 16 32 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/stale N/A
hd4 jfs2 2 4 2 open/stale /
hd2 jfs2 20 40 2 open/stale /usr
hd9var jfs2 12 24 2 open/stale /var
hd3 jfs2 3 6 2 open/stale /tmp
hd1 jfs2 24 48 2 open/stale /home
hd10opt jfs2 10 20 2 open/stale /opt
loglv00 jfslog 1 1 1 closed/syncd N/A
fslv00 jfs2 200 200 1 open/syncd /trs
fslv01 jfs2 40 40 1 closed/syncd N/A
fslv02 jfs2 112 112 1 open/syncd /backup
hd11admin jfs2 1 1 1 open/syncd /admin
livedump jfs2 1 1 1 open/syncd /var/adm/ras/livedump
fwdump jfs2 1 1 1 open/syncd /var/adm/ras/platform
fslv004 jfs 8 16 2 closed/stale /mc
- I have tried to remove the hdisk0 from rootvg. but i can not.
# reducevg -d -f rootvg hdisk0
0516-076 lreducelv: Cannot remove last good copy of stale partition.
Resynchronize the partitions with syncvg and try again.
0516-912 rmlv: Unable to remove logical volume fslv004.
0516-884 reducevg: Unable to remove physical volume hdisk0.
How can i resolve this duplicated/missing drives? i feel it is PVID or something messed up in OS.
thanks a lot for any suggestions.
i powered down the server. took one drive to another server and booted the new server up with this mirrored drive and a brand new drive.
then i ended up with a weired situation.
- diag shows 2 drives.
slot1 - hdisk2
slot2 - hdisk1
- But lsdev shows 3 drives. 2 disks(hdisk0/1) are on same scsi address. one is defined.
# lsdev -Cc disk
hdisk0 Defined 06-08-01-5,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 06-08-01-5,0 16 Bit LVD SCSI Disk Drive
hdisk2 Available 06-08-01-8,0 16 Bit LVD SCSI Disk Drive
- And rootvg shows a missing PV,
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 missing 546 450 102..93..37..109..109
hdisk1 active 546 101 06..00..00..00..95
hdisk2 active 546 538 110..101..109..109..109
- somehow i can lspv all 3 PVs and even the missing disk/PV (hdisk0)has contents.
bash-4.2# lspv -l hdisk0
hdisk0:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
hd2 20 20 00..00..20..00..00 /usr
hd4 2 2 00..00..02..00..00 /
hd3 3 3 00..00..03..00..00 /tmp
hd9var 12 12 00..00..12..00..00 /var
hd10opt 10 10 00..00..10..00..00 /opt
hd1 24 24 00..00..24..00..00 /home
fslv004 8 8 08..00..00..00..00 /mc
hd8 1 1 00..00..01..00..00 N/A
hd6 16 16 00..16..00..00..00 N/A
bash-4.2# lspv -l hdisk1
hdisk1:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
fslv00 200 200 40..00..37..109..14 /trs
fslv01 40 40 00..40..00..00..00 N/A
fslv02 112 112 60..52..00..00..00 /backup
hd11admin 1 1 01..00..00..00..00 /admin
loglv00 1 1 00..01..00..00..00 N/A
hd2 20 20 00..00..20..00..00 /usr
hd4 2 2 00..00..02..00..00 /
hd3 3 3 00..00..03..00..00 /tmp
hd9var 12 12 00..00..12..00..00 /var
hd10opt 10 10 00..00..10..00..00 /opt
hd1 24 24 00..00..24..00..00 /home
livedump 1 1 01..00..00..00..00 /var/adm/ras/livedump
fwdump 1 1 01..00..00..00..00 /var/adm/ras/platform
hd5 1 1 01..00..00..00..00 N/A
hd8 1 1 00..00..01..00..00 N/A
hd6 16 16 00..16..00..00..00 N/A
bash-4.2# lspv -l hdisk2
hdisk2:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
fslv004 8 8 00..08..00..00..00 /mc
- the mount points lists from rootvg is a combination of all 3 PVs. although i only have 2 disks.
bash-4.2# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 16 32 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/stale N/A
hd4 jfs2 2 4 2 open/stale /
hd2 jfs2 20 40 2 open/stale /usr
hd9var jfs2 12 24 2 open/stale /var
hd3 jfs2 3 6 2 open/stale /tmp
hd1 jfs2 24 48 2 open/stale /home
hd10opt jfs2 10 20 2 open/stale /opt
loglv00 jfslog 1 1 1 closed/syncd N/A
fslv00 jfs2 200 200 1 open/syncd /trs
fslv01 jfs2 40 40 1 closed/syncd N/A
fslv02 jfs2 112 112 1 open/syncd /backup
hd11admin jfs2 1 1 1 open/syncd /admin
livedump jfs2 1 1 1 open/syncd /var/adm/ras/livedump
fwdump jfs2 1 1 1 open/syncd /var/adm/ras/platform
fslv004 jfs 8 16 2 closed/stale /mc
- I have tried to remove the hdisk0 from rootvg. but i can not.
# reducevg -d -f rootvg hdisk0
0516-076 lreducelv: Cannot remove last good copy of stale partition.
Resynchronize the partitions with syncvg and try again.
0516-912 rmlv: Unable to remove logical volume fslv004.
0516-884 reducevg: Unable to remove physical volume hdisk0.
How can i resolve this duplicated/missing drives? i feel it is PVID or something messed up in OS.
thanks a lot for any suggestions.