VG and LV problem


 
Thread Tools Search this Thread
Operating Systems HP-UX VG and LV problem
# 8  
Old 03-15-2012
Quote:
vgchange: Warning: couldn't query physical volume "/dev/dsk/c8t0d1":The specified path does not correspond to physical volume attached to this volume group
When physical discs are formatted for LVM they are given a unique identity. This error message is usually because the unix device path points to a physical disc which is not the one expected. You have this error for all the non-system discs.

Until you can see all 32 discs in ioscan with their correct device addresses there is nothing sensible you can do with unix LVM commands.
If you have two SANs, is one of them dead?

We are assuming throughout that this is a standalone system which was previously working and suddenly failed, and which has no shared disc paths to another server. (I think that vbe has this idea in post #6).

Last edited by methyl; 03-15-2012 at 01:05 PM..
# 9  
Old 03-15-2012
@ vbe, they are on EVA storage which does the Raid 5.
It's a single server, acting as a test server for the company, the try applications here before going live on the development servers.

@ methyl, the weird thing is that I only have 16 disks in the EVA, it's weird that it shows 32. All 16 disks of these VGs (vgdvqatr, vgr3dev0, vgr3qas0 and vgr3trn0) appear in the ioscan output and are the same mount points in the table and in the (old saved) bdf output.

There are 5 servers connected to this EVA, and they are functioning properly.

Below the output of cat /etc/fstab

Code:
LUNHINGA:[/]#cat /etc/fstab
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg00/lvolswap ... swap pri=1 0 0
/dev/vgr3dev0/lvsapdata1 /oracle/DEV/sapdata1 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3dev0/lvsapdata2 /oracle/DEV/sapdata2 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3dev0/lvsapdata3 /oracle/DEV/sapdata3 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3dev0/lvsapdata4 /oracle/DEV/sapdata4 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3qas0/lvsapdata1 /oracle/QAS/sapdata1 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3qas0/lvsapdata2 /oracle/QAS/sapdata2 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3qas0/lvsapdata3 /oracle/QAS/sapdata3 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3qas0/lvsapdata4 /oracle/QAS/sapdata4 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3trn0/lvsapdata1 /oracle/TRN/sapdata1 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3trn0/lvsapdata2 /oracle/TRN/sapdata2 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3trn0/lvsapdata3 /oracle/TRN/sapdata3 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3trn0/lvsapdata4 /oracle/TRN/sapdata4 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3trn1/lvr3trn1 /oracle/TRN/sapdata5 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgdvqatr/lvdvqatr /oracle vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vglunsap/lvlunsap /usr/sap vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3dev1/lvr3dev1 /oracle/DEV/sapdata5 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vgr3qas1/lvr3qas1 /oracle/QAS/sapdata5 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2

And cat /etc/lvmrc output

Code:
LUNHINGA:[/]#cat /etc/lvmrc
# @(#)B11.23_LR
# /etc/lvmrc
#
# This file is sourced by /sbin/lvmrc. This file contains the flags
# AUTO_VG_ACTIVATE and RESYNC which are required by the script in /sbin/lvmrc.
# These flags must be set to valid values (see below).
#

#
# The activation of Volume Groups may be customized by setting the
# AUTO_VG_ACTIVATE flag to 0 and customizing the function
# custom_vg_activation()
#

#
#       To disable automatic volume group activation,
#       set AUTO_VG_ACTIVATE to 0.
#

AUTO_VG_ACTIVATE=0

#
#       The variable RESYNC controls the order in which
#       Volume Groups are resyncronized. Allowed values
#       are:
#               "PARALLEL"      - resync all VGs at once.
#               "SERIAL"        - resync VGs one at a time.
#
#       SERIAL will take longer but will have less of an
#       impact on overall I/O performance.
#

RESYNC="SERIAL"


#
#       Add customized volume group activation here.
#       A function is available that will synchronize all
#       volume groups in a list in parallel. It is
#       called parallel_vg_sync.
#
#       This routine is only executed if AUTO_VG_ACTIVATE
#       equals 0.
#

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
        parallel_vg_sync "/dev/vgr3dev0 "
        parallel_vg_sync "/dev/vgr3qas0 "
        parallel_vg_sync "/dev/vgr3trn0 "
        parallel_vg_sync "/dev/vgr3trn1 "
        parallel_vg_sync "/dev/vglunsap /dev/vgdvqatr"
        return 0
}

#
# The following functions should require no additional customization:
#

parallel_vg_sync()
{
        for VG in $*
        do
                {
                if /sbin/vgsync $VG > /dev/null
                then
                        echo "Resynchronized volume group $VG"
                fi
                } &
        done
}


Last edited by Scott; 03-15-2012 at 04:15 PM.. Reason: Code tags
# 10  
Old 03-15-2012
Its not weird that it shows 32 if you have 2 controllers that can see the same disks using 2 separate paths... If this is your case then one controller is dead or faulty or the connections... ( could be on EVA side also... but here I am not much of help never had EVAs used only clarrion (once) and HDS systems...)


A mistake not to do in your case is to use vgscan ( you are doomed if you did...) for you have fancy vg and specially lvol names!!! and I suppose you have no vg map files...)

start by a simple ioscan then:
Code:
ant:/home/vbe $ ioscan -funC ctl
Class     I  H/W Path       Driver S/W State   H/W Type     Description
========================================================================
ctl       0  0/0/1/0.7.0    sctl   CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c0t7d0
ctl       1  0/0/1/1.7.0    sctl   CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c1t7d0
ctl       2  0/0/2/0.7.0    sctl   CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c2t7d0
ctl       3  0/0/2/1.7.0    sctl   CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c3t7d0
ctl       8  0/4/0/0.1.196.255.0.0.0  sctl   CLAIMED     DEVICE       HITACHI OPEN-V
                           /dev/rscsi/c13t0d0
ctl       5  0/6/0/0.7.0    sctl   CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c7t7d0
ctl       6  0/6/0/1.7.0    sctl   CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c8t7d0
ctl       9  0/7/0/0.1.196.255.0.0.0  sctl   CLAIMED     DEVICE       HITACHI OPEN-V
                           /dev/rscsi/c15t0d0

so that we can see what controllers you have...

Last edited by vbe; 03-15-2012 at 02:22 PM..
# 11  
Old 03-15-2012
None of the controllers is down, I already checked on the EVA Command View.

Code:
LUNHINGA:[/]#ioscan -funC ctl
Class     I  H/W Path       Driver     S/W State   H/W Type     Description
============================================================================
ctl       0  0/0/3/0.0.7.0  sctl       CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c0t7d0
ctl       1  0/0/3/0.1.7.0  sctl       CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c1t7d0
ctl       2  0/1/1/0.7.0    sctl       CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c2t7d0
ctl       3  0/1/1/1.7.0    sctl       CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c3t7d0
ctl       8  0/2/1/0.1.0.0.0.0.0    sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c8t0d0
ctl       5  0/2/1/0.1.0.255.0.0.0  sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c4t0d0
ctl       9  0/2/1/0.1.1.0.0.0.0    sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c9t0d0
ctl       4  0/2/1/0.1.1.255.0.0.0  sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c5t0d0
ctl      10  0/4/2/0.2.0.0.0.0.0    sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c10t0d0
ctl       7  0/4/2/0.2.0.255.0.0.0  sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c6t0d0
ctl      11  0/4/2/0.2.1.0.0.0.0    sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c11t0d0
ctl       6  0/4/2/0.2.1.255.0.0.0  sctl       CLAIMED     DEVICE       HP      HSV200

Below is an output of ioscan -fnC disk of another server connected to this EVA, it shows 16 disks as well, and this server works perfectly.


Code:
LUO:[/]#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-N
                           /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk      1  0/1/1/0.0.0    sdisk      CLAIMED     DEVICE       HP 146 GST314670 7LC
                           /dev/dsk/c2t0d0     /dev/rdsk/c2t0d0
                           /dev/dsk/c2t0d0s1   /dev/rdsk/c2t0d0s1
                           /dev/dsk/c2t0d0s2   /dev/rdsk/c2t0d0s2
                           /dev/dsk/c2t0d0s3   /dev/rdsk/c2t0d0s3
disk     18  0/1/1/0.1.0    sdisk      CLAIMED     DEVICE       HP 146 GST314670 7LC
                           /dev/dsk/c2t1d0     /dev/rdsk/c2t1d0
                           /dev/dsk/c2t1d0s1   /dev/rdsk/c2t1d0s1
                           /dev/dsk/c2t1d0s2   /dev/rdsk/c2t1d0s2
                           /dev/dsk/c2t1d0s3   /dev/rdsk/c2t1d0s3
disk      3  0/2/1/0.1.0.0.0.0.1  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c4t0d1   /dev/rdsk/c4t0d1
disk      5  0/2/1/0.1.0.0.0.0.2  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c4t0d2   /dev/rdsk/c4t0d2
disk      7  0/2/1/0.1.0.0.0.0.3  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c4t0d3   /dev/rdsk/c4t0d3
disk      9  0/2/1/0.1.0.0.0.0.4  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c4t0d4   /dev/rdsk/c4t0d4
disk      2  0/2/1/0.1.1.0.0.0.1  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c6t0d1   /dev/rdsk/c6t0d1
disk      4  0/2/1/0.1.1.0.0.0.2  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c6t0d2   /dev/rdsk/c6t0d2
disk      6  0/2/1/0.1.1.0.0.0.3  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c6t0d3   /dev/rdsk/c6t0d3
disk      8  0/2/1/0.1.1.0.0.0.4  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c6t0d4   /dev/rdsk/c6t0d4
disk     10  0/4/2/0.2.0.0.0.0.1  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c8t0d1   /dev/rdsk/c8t0d1
disk     12  0/4/2/0.2.0.0.0.0.2  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c8t0d2   /dev/rdsk/c8t0d2
disk     14  0/4/2/0.2.0.0.0.0.3  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c8t0d3   /dev/rdsk/c8t0d3
disk     16  0/4/2/0.2.0.0.0.0.4  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c8t0d4   /dev/rdsk/c8t0d4
disk     11  0/4/2/0.2.1.0.0.0.1  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c10t0d1   /dev/rdsk/c10t0d1
disk     13  0/4/2/0.2.1.0.0.0.2  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c10t0d2   /dev/rdsk/c10t0d2
disk     15  0/4/2/0.2.1.0.0.0.3  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c10t0d3   /dev/rdsk/c10t0d3
disk     17  0/4/2/0.2.1.0.0.0.4  sdisk      CLAIMED     DEVICE       HP      HSV200
                           /dev/dsk/c10t0d4   /dev/rdsk/c10t0d4

and ioscan -funC ctl output

Code:
LUO:[/]#ioscan -funC ctl
[Class     I  H/W Path       Driver     S/W State   H/W Type     Description
============================================================================
ctl       0  0/0/3/0.0.7.0  sctl       CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c0t7d0
ctl       1  0/0/3/0.1.7.0  sctl       CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c1t7d0
ctl       2  0/1/1/0.7.0    sctl       CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c2t7d0
ctl       7  0/1/1/1.7.0    sctl       CLAIMED     DEVICE       Initiator
                           /dev/rscsi/c3t7d0
ctl       6  0/2/1/0.1.0.0.0.0.0    sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c4t0d0
ctl       4  0/2/1/0.1.0.255.0.0.0  sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c5t0d0
ctl       5  0/2/1/0.1.1.0.0.0.0    sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c6t0d0
ctl       3  0/2/1/0.1.1.255.0.0.0  sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c7t0d0
ctl       9  0/4/2/0.2.0.0.0.0.0    sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c8t0d0
ctl      10  0/4/2/0.2.0.255.0.0.0  sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c9t0d0
ctl      11  0/4/2/0.2.1.0.0.0.0    sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c10t0d0
ctl       8  0/4/2/0.2.1.255.0.0.0  sctl       CLAIMED     DEVICE       HP      HSV200
                           /dev/rscsi/c11t0d0


Last edited by vbe; 03-15-2012 at 03:09 PM..
# 12  
Old 03-15-2012
Just noticed your in your lvmrc you are not using auto_activate_vg but have a custom: vg activation, do you know the reason? Have you seen the sequence order you are to respect ?
Code:
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
parallel_vg_sync "/dev/vgr3dev0 "
parallel_vg_sync "/dev/vgr3qas0 "
parallel_vg_sync "/dev/vgr3trn0 "
parallel_vg_sync "/dev/vgr3trn1 "
parallel_vg_sync "/dev/vglunsap /dev/vgdvqatr"
return 0
}

# 13  
Old 03-15-2012
What do you have in /etc/lvmconf?
Do you have any output with this:
ioscan -funC fc ?

Last edited by vbe; 03-15-2012 at 03:25 PM..
# 14  
Old 03-15-2012
Code:
LUNHINGA:[/]#ioscan -funC fc
Class     I  H/W Path  Driver S/W State   H/W Type     Description
=================================================================
fc        0  0/2/1/0   td   CLAIMED     INTERFACE    HP Tachyon XL2 Fibre Channel Mass Storage Adapter
                      /dev/td0
fc        1  0/4/2/0   td   CLAIMED     INTERFACE    HP Tachyon XL2 Fibre Channel Mass Storage Adapter
                      /dev/td1

Code:
LUNHINGA:[/]#cat /etc/lvmconf
¼¸(ÔðÄ`Døä,ÈLd`x0ü¬H,à|°
     *       vg00.conflvm_lock       y
vg00.conf.old   storage.conf.old       }
                vgstorage.conf Xvgstorage.conf.old
vgr3dev0.conf   Ïvgr3dev0.conf.old
vgr3qas0.conf
0vgr3qas0.conf.old
vgr3trn0.conf
vgr3trn0.conf.old
vgr3dev1.conf
^vgr3dev1.conf.old
vgr3qas1.conf
Yvgr3qas1.conf.old
vgr3trn1.conf
¦vgr3trn1.conf.old
vglunsap.conf   vglunsap.conf.old
vgdvqatr.conf
vgdvqatr.conf.old
°
vg00.mapfile
²vgdvqatr.mapfile
´vglunsap.mapfile
¶vgr3dev0.mapfile
¸vgr3qas0.mapfile
ºvgr3trn0.mapfile
¼vgr3trn1.mapfile
¾vgr3dev1.mapfile       WØvgr3qas1.mapfile


Last edited by Scott; 03-15-2012 at 04:14 PM.. Reason: Please use CODE tags for code and terminal output. NOT QUOTE tags.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies

2. IP Networking

Problem with forwarding emails (SPF problem)

Hi, This is rather a question from a "user" than from a sys admin, but I think this forum is apropriate for the question. I have an adress with automatic email forwarding and for some senders (two hietherto), emails are bouncing. This has really created a lot of problems those two time so I... (0 Replies)
Discussion started by: carwe
0 Replies

3. AIX

AIX OS problem? network problem?

Dear ALL. I installed AIX OS on customer sites. but Only one site is too slow when I connected telnet, ftp.. Ping is too fast. but telnet and FTP is not connected.. of course i check the configuration file on aix but it's normal. Do any Idea?? thanks in advance. - Jun - (3 Replies)
Discussion started by: Jeon Jun Seok
3 Replies

4. UNIX for Dummies Questions & Answers

DHCP problem and eth1 problem

At work I am trying to get this one Linux machine (let's call it ctesgm07) to behave like another Linux machine that we have (let's call it test007). test007 returns the following version info: cat /etc/debian_version: lenny/sid uname -a: Linux test007 2.6.27-7-generic #1 SMP Tue Nov 4... (0 Replies)
Discussion started by: sllinux
0 Replies

5. Red Hat

Mail Problem. Maybe, it is a DNS Problem!

Hi, i've a redhat linux 9 upadated by redhat from 7 version to 9 version. A couple of days ago i was a problem with my mail, in other words i'm not able to get any email nor to send any email. I've a proxy configuration and i tried to set iptables in order to verify the port. The 110,255 and 995... (1 Reply)
Discussion started by: pintalgi
1 Replies

6. AIX

user login problem & Files listing problem.

1) when user login to the server the session got colosed. How will resolve? 2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem? Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies

7. Solaris

problem in finding a hardware problem

Hi I am right now facing a strange hardware problem. System get booted with the following error: Fatal Error Reset CPU 0000.0000.0000.0003 AFSR 0100.0000.0000.0000 SCE AFAR 0000.07c6.0000.1000 SC Alert: Host System has Reset It happen 4 or 5 times and get the same error every time.I... (8 Replies)
Discussion started by: girish.batra
8 Replies

8. Shell Programming and Scripting

ssh script problem problem

Hi Please help me with the following problem with my script. The following block of code is not repeating in the while loop and exiting after searching for first message. input_file ========== host001-01 host001-02 2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies

9. Shell Programming and Scripting

problem with dd command or maybe AFS problem

Hi, folks. Sorry for bothering, but maybe someone could help me please. The problem is the following: there is some script that copies files from local file system to AFS. The copying is performed with dd command. The script copies data into some AFS volumes. The problem appeared with one... (0 Replies)
Discussion started by: Anta
0 Replies

10. UNIX for Advanced & Expert Users

SSH Problem auth problem

Hi, Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode: warning: You have no controlling tty. Cannot read confirmation.^M warning: Authentication failed.^M Disconnected; key exchange or algorithm negotiation... (1 Reply)
Discussion started by: budrito
1 Replies
Login or Register to Ask a Question