Operating System - HP-UX
1748204 Members
3266 Online
108759 Solutions
New Discussion юеВ

Re: vg not activated restarting the server.

 
skt_skt
Honored Contributor

Re: vg not activated restarting the server.

try adding enttry under custom_vg_activation. Like the one u see for swap.

custom_vg_activation()
{
# e.g. /sbin/vgchange -a y -s
# parallel_vg_sync "/dev/vg00 /dev/vg01"
# parallel_vg_sync "/dev/vg02 /dev/vg03"

vgchange -a y /dev/vgswap
return 0
}
Robert-Jan Goossens
Honored Contributor

Re: vg not activated restarting the server.

Hi,

mountall: cannot mount /dev/vg03/lvol2
mountall: diagnostics from mount
vxfs mount: Cannot open /dev/vg03/lvol2: No such device or address
mountall: cannot mount /dev/vg03/lvol3
mountall: diagnostics from mount
vxfs mount: Cannot open /dev/vg03/lvol3: No such device or address
mountall: cannot mount /dev/vg01/lvol1
mountall: diagnostics from mount
vxfs mount: Cannot open /dev/vg01/lvol1: No such device or address
mountall: cannot mount /dev/vg02/lvol2
mountall: diagnostics from mount
vxfs mount: Cannot open /dev/vg02/lvol2: No such device or address

Above are the error messages from your rc.log.

What kind of disk array are you using? It seems like the disks are not available when bcheckr is run at boot time.

Regards,
Robert-Jan
ajin
Frequent Advisor

Re: vg not activated restarting the server.


sir

Any specific command to check the type of disk array ?
Ninad_1
Honored Contributor

Re: vg not activated restarting the server.

Hi,

Pls can you check the permissions and the script /sbin/lvmrc
Also after you bootup, please check your console logs via MP console for the partition (on rp8400) you are booting, and check what it shows for the bcheckrc execution.

Regards,
Ninad

Re: vg not activated restarting the server.

hi,

first check if the lvmtab is including the vg01 and vg02
#strings /etc/lvmtab

Identify the device files of hard disks corresponding to each vg01 & vg02
#ioscan -nfC disk

third restore the structure of each disks:
#vgcfgrestore -n /dev/vg01 /dev/rdsk/cxtydz
#vgchange -a y /dev/vg01
#mount -a

I hope this can help.
ajin
Frequent Advisor

Re: vg not activated restarting the server.

hi

Please find the below details

# strings /etc/lvmtab

/dev/vg00

/dev/dsk/c0t6d0

/dev/vg01

/dev/dsk/c2t6d0

/dev/vg04

/dev/dsk/c9t0d0

/dev/dsk/c9t0d1

/dev/dsk/c9t0d2

/dev/dsk/c9t0d3

/dev/dsk/c12t0d0

/dev/dsk/c12t0d1

/dev/dsk/c12t0d2

/dev/dsk/c12t0d3

/dev/vg02

>"Q

/dev/dsk/c4t6d0

/dev/vg03

/dev/dsk/c6t6d0

# ioscan -fn

Class I H/W Path Driver S/W State H/W Type Description

==============================================================================

root 0 root CLAIMED BUS_NEXUS

cell 0 0 cell CLAIMED BUS_NEXUS

ioa 0 0/0 sba CLAIMED BUS_NEXUS System Bus Adapter (804)

ba 0 0/0/0 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

tty 2 0/0/0/0/0 func0 CLAIMED INTERFACE PCI BaseSystem (103c128d)

tty 0 0/0/0/0/1 asio0 CLAIMED INTERFACE PCI Serial (103c1048)

/dev/diag/mux0 /dev/tty0p0 /dev/tty0p2

/dev/mux0 /dev/tty0p1

lan 0 0/0/0/1/0 gelan CLAIMED INTERFACE HP A3639-60019 1000Base-T Built-in I/O

ext_bus 0 0/0/0/2/0 c720 CLAIMED INTERFACE SCSI C87x Ultra Wide Single-Ended

target 0 0/0/0/2/0.6 tgt CLAIMED DEVICE

disk 0 0/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC

/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0

target 1 0/0/0/2/0.7 tgt CLAIMED DEVICE

ctl 0 0/0/0/2/0.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c0t7d0

ext_bus 1 0/0/0/2/1 c720 CLAIMED INTERFACE SCSI C87x Fast Wide Single-Ended

target 2 0/0/0/2/1.2 tgt CLAIMED DEVICE

disk 1 0/0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305

/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0

target 3 0/0/0/2/1.7 tgt CLAIMED DEVICE

ctl 1 0/0/0/2/1.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c1t7d0

ext_bus 2 0/0/0/3/0 c720 CLAIMED INTERFACE SCSI C896 Fast Wide Single-Ended

target 4 0/0/0/3/0.6 tgt CLAIMED DEVICE

disk 2 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC

/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0

target 5 0/0/0/3/0.7 tgt CLAIMED DEVICE

ctl 2 0/0/0/3/0.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c2t7d0

ext_bus 3 0/0/0/3/1 c720 CLAIMED INTERFACE SCSI C896 Fast Wide LVD

target 6 0/0/0/3/1.7 tgt CLAIMED DEVICE

ctl 3 0/0/0/3/1.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c3t7d0

ba 1 0/0/1 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 2 0/0/2 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 3 0/0/4 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 4 0/0/6 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 5 0/0/8 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

fc 0 0/0/8/0/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Channel Mass Storage Adapter

/dev/td0

fcp 0 0/0/8/0/0.8 fcp CLAIMED INTERFACE FCP Protocol Adapter

ext_bus 9 0/0/8/0/0.8.0.108.0 fcparray CLAIMED INTERFACE FCP Array Interface

target 7 0/0/8/0/0.8.0.108.0.0 tgt CLAIMED DEVICE

disk 3 0/0/8/0/0.8.0.108.0.0.0 sdisk CLAIMED DEVICE HP A6188A

/dev/dsk/c9t0d0 /dev/rdsk/c9t0d0

disk 4 0/0/8/0/0.8.0.108.0.0.1 sdisk CLAIMED DEVICE HP A6188A

/dev/dsk/c9t0d1 /dev/rdsk/c9t0d1

disk 5 0/0/8/0/0.8.0.108.0.0.2 sdisk CLAIMED DEVICE HP A6188A

/dev/dsk/c9t0d2 /dev/rdsk/c9t0d2

disk 6 0/0/8/0/0.8.0.108.0.0.3 sdisk CLAIMED DEVICE HP A6188A

/dev/dsk/c9t0d3 /dev/rdsk/c9t0d3

ext_bus 10 0/0/8/0/0.8.0.255.6 fcpdev CLAIMED INTERFACE FCP Device Interface

target 8 0/0/8/0/0.8.0.255.6.12 tgt CLAIMED DEVICE

ctl 9 0/0/8/0/0.8.0.255.6.12.0 sctl CLAIMED DEVICE HP A6188A

/dev/rscsi/c10t12d0

ba 6 0/0/10 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

lan 1 0/0/10/0/0 gelan CLAIMED INTERFACE HP A4926A PCI 1000Base-SX Adapter

ba 7 0/0/12 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 8 0/0/14 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

memory 0 0/5 memory CLAIMED MEMORY Memory

processor 0 0/10 processor CLAIMED PROCESSOR Processor

processor 1 0/11 processor CLAIMED PROCESSOR Processor

processor 2 0/12 processor CLAIMED PROCESSOR Processor

processor 3 0/13 processor CLAIMED PROCESSOR Processor

cell 1 1 cell CLAIMED BUS_NEXUS

ioa 1 1/0 sba CLAIMED BUS_NEXUS System Bus Adapter (804)

ba 9 1/0/0 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

tty 3 1/0/0/0/0 func0 CLAIMED INTERFACE PCI BaseSystem (103c128d)

tty 1 1/0/0/0/1 asio0 CLAIMED INTERFACE PCI Serial (103c1048)

/dev/GSPdiag1 /dev/mux1 /dev/tty1p1

/dev/diag/mux1 /dev/tty1p0 /dev/tty1p2

lan 2 1/0/0/1/0 gelan CLAIMED INTERFACE HP A3639-60019 1000Base-T Built-in I/O

ext_bus 4 1/0/0/2/0 c720 CLAIMED INTERFACE SCSI C87x Fast Wide Single-Ended

target 9 1/0/0/2/0.6 tgt CLAIMED DEVICE

disk 7 1/0/0/2/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC

/dev/dsk/c4t6d0 /dev/rdsk/c4t6d0

target 10 1/0/0/2/0.7 tgt CLAIMED DEVICE

ctl 4 1/0/0/2/0.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c4t7d0

ext_bus 5 1/0/0/2/1 c720 CLAIMED INTERFACE SCSI C87x Fast Wide Single-Ended

target 11 1/0/0/2/1.0 tgt CLAIMED DEVICE

tape 4 1/0/0/2/1.0.0 stape CLAIMED DEVICE HP C5683A

/dev/rmt/4m /dev/rmt/c5t0d0BESTn

/dev/rmt/4mb /dev/rmt/c5t0d0BESTnb

/dev/rmt/4mn /dev/rmt/c5t0d0DDS

/dev/rmt/4mnb /dev/rmt/c5t0d0DDSb

/dev/rmt/c5t0d0BEST /dev/rmt/c5t0d0DDSn

/dev/rmt/c5t0d0BESTb /dev/rmt/c5t0d0DDSnb

target 12 1/0/0/2/1.7 tgt CLAIMED DEVICE

ctl 5 1/0/0/2/1.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c5t7d0

ext_bus 6 1/0/0/3/0 c720 CLAIMED INTERFACE SCSI C896 Fast Wide Single-Ended

target 13 1/0/0/3/0.6 tgt CLAIMED DEVICE

disk 8 1/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336706LC

/dev/dsk/c6t6d0 /dev/rdsk/c6t6d0

target 14 1/0/0/3/0.7 tgt CLAIMED DEVICE

ctl 6 1/0/0/3/0.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c6t7d0

ext_bus 7 1/0/0/3/1 c720 CLAIMED INTERFACE SCSI C896 Fast Wide LVD

target 15 1/0/0/3/1.7 tgt CLAIMED DEVICE

ctl 7 1/0/0/3/1.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c7t7d0

ba 10 1/0/1 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 11 1/0/2 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 12 1/0/4 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 13 1/0/6 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 14 1/0/8 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

fc 1 1/0/8/0/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Channel Mass Storage Adapter

/dev/td1

fcp 1 1/0/8/0/0.8 fcp CLAIMED INTERFACE FCP Protocol Adapter

ext_bus 12 1/0/8/0/0.8.0.110.0 fcparray CLAIMED INTERFACE FCP Array Interface

target 16 1/0/8/0/0.8.0.110.0.0 tgt CLAIMED DEVICE

disk 9 1/0/8/0/0.8.0.110.0.0.0 sdisk CLAIMED DEVICE HP A6188A

/dev/dsk/c12t0d0 /dev/rdsk/c12t0d0

disk 10 1/0/8/0/0.8.0.110.0.0.1 sdisk CLAIMED DEVICE HP A6188A

/dev/dsk/c12t0d1 /dev/rdsk/c12t0d1

disk 11 1/0/8/0/0.8.0.110.0.0.2 sdisk CLAIMED DEVICE HP A6188A

/dev/dsk/c12t0d2 /dev/rdsk/c12t0d2

disk 12 1/0/8/0/0.8.0.110.0.0.3 sdisk CLAIMED DEVICE HP A6188A

/dev/dsk/c12t0d3 /dev/rdsk/c12t0d3

ext_bus 13 1/0/8/0/0.8.0.255.6 fcpdev CLAIMED INTERFACE FCP Device Interface

target 17 1/0/8/0/0.8.0.255.6.14 tgt CLAIMED DEVICE

ctl 10 1/0/8/0/0.8.0.255.6.14.0 sctl CLAIMED DEVICE HP A6188A

/dev/rscsi/c13t14d0

ba 15 1/0/10 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ext_bus 8 1/0/10/0/0 c720 CLAIMED INTERFACE SCSI C87x Fast Wide Differential

target 18 1/0/10/0/0.7 tgt CLAIMED DEVICE

ctl 8 1/0/10/0/0.7.0 sctl CLAIMED DEVICE Initiator

/dev/rscsi/c8t7d0

ba 16 1/0/12 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

ba 17 1/0/14 lba CLAIMED BUS_NEXUS Local PCI Bus Adapter (782)

memory 1 1/5 memory CLAIMED MEMORY Memory

processor 4 1/10 processor CLAIMED PROCESSOR Processor

processor 5 1/11 processor CLAIMED PROCESSOR Processor

processor 6 1/12 processor CLAIMED PROCESSOR Processor

processor 7 1/13 processor CLAIMED PROCESSOR Processor

cell 2 2 cell CLAIMED BUS_NEXUS

memory 2 2/5 memory CLAIMED MEMORY Memory

processor 8 2/10 processor CLAIMED PROCESSOR Processor

processor 9 2/11 processor CLAIMED PROCESSOR Processor

processor 10 2/12 processor CLAIMED PROCESSOR Processor

processor 11 2/13 processor CLAIMED PROCESSOR Processor

cell 3 3 cell CLAIMED BUS_NEXUS

memory 3 3/5 memory CLAIMED MEMORY Memory

processor 12 3/10 processor CLAIMED PROCESSOR Processor

processor 13 3/11 processor CLAIMED PROCESSOR Processor

processor 14 3/12 processor CLAIMED PROCESSOR Processor

processor 15 3/13 processor CLAIMED PROCESSOR Processor

Re: vg not activated restarting the server.

Hi,

Did you try do restore the lvm structure in the related disks:
#vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t6d0
#vgcfgrestore -n /dev/vg02 /dev/rdsk/c4t6d0

At this stage if you can not restore you have to use the following but you need to recover the file within VG from a backup:

# pvcreate -f /dev/rdsk/c2t6d0
#vgcfgrestore -n /dev/vg01 /dev/rdsk/c2t6d0
#vgchange -a y /dev/vg01
# mount -a
and recover from the backup.

Do the same for the vg02

regards,
F Verschuren
Esteemed Contributor

Re: vg not activated restarting the server.

I see that you have
AUTO_VG_ACTIVATE=1
turned on so in the /etc/lvmrc
so it is not needed to configer the vgchanges in the /etc/lvmrc file. I do not know it can harm but the servers we manage do not have the lines that in the custom_vg_activation (that are hashed of here)
For the rest the error looks like it just needs a vgrestore, but because you din't needed it to activate the vg, I sugest to remove the lines and to do a new (planned) reboot to see if the errors are gone...

custom_vg_activation()

{

# e.g. /sbin/vgchange -a y -s

# parallel_vg_sync "/dev/vg00 /dev/vg01"

# parallel_vg_sync "/dev/vg02 /dev/vg03"



#### /sbin/vgchange -a y /dev/vg01

#### /sbin/vgchange -a y /dev/vg02

#### /sbin/vgchange -a y /dev/vg03



#### parallel_vg_sync "/dev/vg01 /dev/vg02 /dev/vg03"



return 0

}