Operating System - HP-UX
1752732 Members
6284 Online
108789 Solutions
New Discussion юеВ

Re: vgdisplay: Volume group not activated .

 
SOLVED
Go to solution
Avinash20
Honored Contributor

Re: vgdisplay: Volume group not activated .

Post output of

# strings /etc/lvmtab
# diskinfo /dev/rdsk/c5t0d0
# kmtune | grep maxvgs
# ioscan -fnC disk
# vgcfgrestore -n /dev/vg01 -l
# vgcfgrestore -f /tmp/vg01.backup -l

### The above command are only to provide me the output of the PV and the VG
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
UVK
Trusted Contributor

Re: vgdisplay: Volume group not activated .

Try doing fsck on your lvols
Does this vg use any external disks ?

PV's used by VG should be available. Did u check of you have those PVs available ?
-------------------------------------------
Like it or worked !! Click kudos !!
UVK
Trusted Contributor

Re: vgdisplay: Volume group not activated .

BTW.. you can list the pv's in the vg by using
#strings /etc/lvmtab

-------------------------------------------
Like it or worked !! Click kudos !!
Torsten.
Acclaimed Contributor

Re: vgdisplay: Volume group not activated .

Try

# vgchange -q n -a y vg01

One of the disks is probably bad - are the LVOLs mirrored?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Avinash20
Honored Contributor

Re: vgdisplay: Volume group not activated .

# vgchange -q n -a y vg01

will work out if there is >=50% disk available.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Bijeesh
Respected Contributor

Re: vgdisplay: Volume group not activated .

hi
is the disk "/dev/dsk/c5t0d0" belongs to vg01?
what is the o/p of
#strings /etc/lvmtab
sysad_boy
Frequent Advisor

Re: vgdisplay: Volume group not activated .

[root@]:/>strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t0d0
/dev/vg01
/dev/dsk/c5t0d0

[root@]:/>diskinfo /dev/rdsk/c5t0d0
SCSI describe of /dev/rdsk/c5t0d0:
vendor: HP
product id: LOGICAL VOLUME
type: direct access
size: 1146960776 Kbytes
bytes per sector: 512

[root@]:/>kmtune | grep maxvgs
maxvgs 256 - 256



[root@]:/>ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/3/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0/4/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/6/1/0/4/0.0.0 sdisk CLAIMED DEVICE HP LOGICAL VOLUME
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0


[root@]:/>vgcfgrestore -n /dev/vg01 -l
Volume Group Configuration information in "/etc/lvmconf/vg01.conf"
VG Name /dev/vg01
---- Physical volumes : 1 ----
/dev/rdsk/c5t0d0 (Non-bootable)

[root@]:/> vgcfgrestore -f /tmp/vg01.backup -l
vgcfgrestore: Error opening LVM configuration file : /tmp/vg01.backup

[root@]:/>ls -l /tmp/vg01.backup
/tmp/vg01.backup not found
Torsten.
Acclaimed Contributor

Re: vgdisplay: Volume group not activated .

diskinfo /dev/rdsk/c5t0d0
SCSI describe of /dev/rdsk/c5t0d0:
vendor: HP
product id: LOGICAL VOLUME



This must be a hardware RAID.

Do you see any "ciss" devices in ioscan?

Please get more information:

# sautil /dev/ciss_

# saconfig /dev/ciss_

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sysad_boy
Frequent Advisor

Re: vgdisplay: Volume group not activated .

FYI it took me almost an hour to finish executing vgchange earlier before I posted in here. is that normal?

sysad_boy
Frequent Advisor

Re: vgdisplay: Volume group not activated .

[root@]:/>sautil /dev/ciss_

******************************************************************************
**** ****
**** S A U T I L S u p p o r t U t i l i t y ****
**** ****
**** for the HP SmartArray RAID Controller Family ****
**** ****
**** version A.02.09 ****
**** ****
**** (C) Copyright 2003-2005 Hewlett-Packard Development Company, L.P. ****
******************************************************************************


sautil: Unrecognized device file specified: "/dev/ciss_"

sautil: Error - File open failed
sautil: No such file or directory, errno=2


RAID SA device files (/dev/cissX) found using "/usr/sbin/ioscan -kfnd ciss":

Class I H/W Path Driver S/W State H/W Type Description
========================================================================
ext_bus 2 0/1/1/0/4/0 ciss CLAIMED INTERFACE PCI-X SmartArray 640 2 RAID Controller
/dev/ciss2
ext_bus 5 0/6/1/0/4/0 ciss CLAIMED INTERFACE PCI-X SmartArray 640 2 RAID Controller
/dev/ciss5

Run "sautil run_startup_script" if you suspect that the device file is missing or corrupted.
Run "sautil" to view usage screen.



[root]:/>saconfig /dev/ciss_


saconfig (/dev/ciss_): Error - File open failed
saconfig (/dev/ciss_): No such file or directory, errno=2


SmartArray RAID device files (/dev/cissX) found using "/usr/sbin/ioscan -kfnd ciss":

Class I H/W Path Driver S/W State H/W Type Description
========================================================================
ext_bus 2 0/1/1/0/4/0 ciss CLAIMED INTERFACE PCI-X SmartArray 6402 RAID Controller
/dev/ciss2
ext_bus 5 0/6/1/0/4/0 ciss CLAIMED INTERFACE PCI-X SmartArray 6402 RAID Controller
/dev/ciss5

Run "sautil run_startup_script" if you suspect that the device file is missing or corrupted.