Operating System - HP-UX
1751701 Members
5193 Online
108781 Solutions
New Discussion

Swapped disk came back as Alternate Link

 
IrvingM
Occasional Contributor

Swapped disk came back as Alternate Link

Hi experts,
I have an issue with an old 9000/800. All disks are local SCSI. We hot swapped a failed disk ( c6t10 ), but it has come back into the config as an alternate link, which it isn't:

Before swap:

   --- Physical volumes ---
   PV Name                     /dev/dsk/c5t10d0
   PV Status                   available
   Total PE                    8681
   Free PE                     274
   Autoswitch                  On

   PV Name                     /dev/dsk/c6t0d0
   PV Status                   available
   Total PE                    8681
   Free PE                     0
   Autoswitch                  On

   PV Name                     /dev/dsk/c6t10d0
   PV Status                   unavailable
   Total PE                    8681
   Free PE                     274
   Autoswitch                  On

   PV Name                     /dev/dsk/c5t0d0
   PV Status                   available
   Total PE                    8681
   Free PE                     0
   Autoswitch                  On


   --- Physical volume groups ---
   PVG Name                    pvg1
   PV Name                     /dev/dsk/c5t0d0
   PV Name                     /dev/dsk/c5t10d0

   PVG Name                    pvg2
   PV Name                     /dev/dsk/c6t0d0
   PV Name                     /dev/dsk/c6t10d0

After disk swap:

   --- Physical volumes ---
   PV Name                     /dev/dsk/c5t10d0
   PV Name                     /dev/dsk/c6t10d0 Alternate Link
   PV Status                   available
   Total PE                    8681
   Free PE                     274
   Autoswitch                  On

   PV Name                     /dev/dsk/c6t0d0
   PV Status                   available
   Total PE                    8681
   Free PE                     0
   Autoswitch                  On

   PV Name                     /dev/dsk/c5t0d0
   PV Status                   available
   Total PE                    8681
   Free PE                     0
   Autoswitch                  On


   --- Physical volume groups ---
   PVG Name                    pvg1
   PV Name                     /dev/dsk/c5t0d0
   PV Name                     /dev/dsk/c5t10d0

   PVG Name                    pvg2
   PV Name                     /dev/dsk/c6t0d0
   PV Name                     /dev/dsk/c6t10d0

I've vgreduced it from the VG, but it still shows up as part of the group in vgscan.

/dev/vg01
/dev/dsk/c5t0d0
/dev/dsk/c5t10d0
/dev/dsk/c6t0d0
/dev/dsk/c6t10d0


It was also removed from /etc/lvmpvg by the vgreduce.

PVG     pvg1
/dev/dsk/c5t0d0
/dev/dsk/c5t10d0
PVG     pvg2
/dev/dsk/c6t0d0


Adding it back as part of pvg2 gives this error:

# vgextend -g pvg2 /dev/vg01 /dev/dsk/c6t10d0
Volume group "/dev/vg01" has been successfully extended.
Physical volume group "pvg2" has been successfully extended.
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 5 disks for "/dev/vg01"; /etc/lvmtab has 4 disks.
Cannot proceed with backup.

And the disk is added as an alternate link

--- Physical volumes ---
   PV Name                     /dev/dsk/c5t10d0
   PV Name                     /dev/dsk/c6t10d0 Alternate Link
   PV Status                   available
   Total PE                    8681
   Free PE                     274
   Autoswitch                  On

How do I correct this?

Many thanks.

 

1 REPLY 1
Bill Hassell
Honored Contributor

Re: Swapped disk came back as Alternate Link

You don't have 4 disks. One of them is dead:

   PV Name                     /dev/dsk/c6t10d0
   PV Status                   unavailable
   Total PE                    8681
   Free PE                     274
   Autoswitch                  On

Run ioscan -nfCdisk
and look for NO_HW



Bill Hassell, sysadmin