The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Sun Fire X4540 Server as Backup Server for Zmanda's Amanda Enterprise 2.6 Software iBot Solaris BigAdmin RSS 0 09-17-2008 08:10 AM
Installer Exit Codes of Sun GlassFish Communications Server and Enterprise Server iBot Solaris BigAdmin RSS 0 09-15-2008 08:30 AM
Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server madhunk UNIX for Dummies Questions & Answers 5 01-31-2008 01:30 PM
Axigen, A Fresh Approach for Mail Server Admins - Server Watch iBot UNIX and Linux RSS News 0 07-12-2007 05:20 PM
Unable to varyonvg EricBE UNIX for Advanced & Expert Users 0 07-29-2005 06:47 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #8 (permalink)  
Old 07-02-2009
filosophizer filosophizer is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 113
aix olympics:

could you tell what are you are trying to do ?

1) access the Shared DATA on the San Storage from your two AIX Machines ?

2) like bakunin said, if it is not concurrent then you can varyonvg on both machines ?

you can find out if it is enhanced concurrent or not just simply by checking the characteristics of the volume group
lsvg VG_NAME
or
lspv

HDISKXXX ---> active (for normal)
HDISKXXX --> Concurrent if it is concurrent.

Then we can proceed.
  #9 (permalink)  
Old 07-02-2009
aix-olympics aix-olympics is offline
Registered User
  
 

Join Date: May 2009
Posts: 6
Exclamation

Hello bakunin/filesophizer,

Thank you very much for your response.

I have another few questions (in purple). Im sorry for being paranoid... Thanks for being patient with me!

(A) If I did not want to enable the concurrent mode, can I still use the `chdev -l hdiskXX -a pv=yes` command?

In other words, will I be safe if I VARYOFFVG from the working server and then run the chdev command? (This way I wont need to change the concurrent mode settings on the disk).

To answer Filesophizer question: This disk is shared between the two servers, but we only want 1 server to be able to mount and read/write to it at a time b/c it hosts our database. Thus I dont want concurrent mode enabled. I want to be able to shutdown my Aki (working server who can varyonvg/mount), and allow my Hag server to varyonvg. It wont varyonvg because the lspv between the two servers are different. Hag does not have the PVID's in his lspv and so I think(?) that is why he cannot varyonvg the hdisks 2-7. Also, The hdisks are set to "Active", not "Concurrent" at the moment.

So...

(B) How can I make the lspv's the same while leaving concurrent mode off, so that only 1 server can varyonvg at a time and both servers have access?

Here is the lspv differences (from my previous post on page 1 of this thread):
1) lspv from Aki (working machine, he can varyonvg and varyoffvg)
hdisk0 000b80bfce436320 rootvg active
hdisk1 000b80bf05467e80 None
hdisk2 000b80bf27ceb498 vg00 active
hdisk3 000b80bf6c9b41f8 vg01 active
hdisk4 000b80bf6c9a3a8d vg02 active
hdisk5 000b80bffbb9f2af vg03 active
hdisk6 000b80bffbb6bf7b vg04 active
hdisk7 000b80bf27dc7320 vg05 active

2) lspv from Hag (notice the PVIDs are empty, so maybe this is why he cant varyonvg hdisks 2-7):
hdisk0 000268fceda1da0 rootvg active
hdisk1 000268fdfe25883 db01vg active
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None

And finally... as always...

Thank you so much for your help!!!!

Last edited by aix-olympics; 07-02-2009 at 09:44 PM..
  #10 (permalink)  
Old 07-03-2009
filosophizer filosophizer is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 113
Ok. I understand now.
If this is the case: You want to varyonvg from one Machine/Server at a time then there is no need for enhanced concurrent mode. You can use SHared Volume Groups / Logical Volumes.

Anyway, let us move to solve your issue.

1) yes you can use always the CHDEV command to give the PVID's to the HDISKs
on HAG

2) OR the other best way is to use smitty importvg on HAG but since you don't know the PVIDs then you don't know which disk is with which VG ?

if you know how to check the LUN ID in AIX and check in the storage then you can proceed with step 2
here is how

HOST: AKI
hdisk2 000b80bf27ceb498 vg00 active
hdisk3 000b80bf6c9b41f8 vg01 active
hdisk4 000b80bf6c9a3a8d vg02 active
hdisk5 000b80bffbb9f2af vg03 active
hdisk6 000b80bffbb6bf7b vg04 active
hdisk7 000b80bf27dc7320 vg05 active

HOST: HAG
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None

Objective: We want to know {{ AKI :: hdisk2 000b80bf27ceb498 vg00 }} is what on HAG ?
Since you don't have the PVID on HAG, so it could be HDISK2, HDISK3, ........, HDISK7

a) Check the LUN ID on AKI for HDISK2
lscfg -vl hdisk2

check for location --> LXX <-- This is in HEX
or
lsattr -El hdisk2
search for LUN ID :: 0x2C000000 <-- this is in HEX
convert this HEX to decimal and on HAG search for this LUN ID (hdisk2,hdisk3...hdisk7)

OR easier method
just give it PVID on HAG
chdev -l hdiskXX -a pv=yes
chdev -l hdisk2 -a pv=yes

see if the PVID is same or NOT ?

3) So, if HAG HDISK2 has same PVID=000b80bf27ceb498 as AKI HDISK2
then you know HDISK2 on HAG has Volume Group : vg00

4) Find out the major Number (recommended practice)
on AKI go to
cd /dev
ls -ltr | grep vg00
ls -ltr | grep hdisk2
check for major number which will be like 42,0 hdisk2 or vgname (don't remember exactly)

5) on HAG run this command
smitty importvg
VG NAME: vg00
Physical DISK: hdisk2
Major Number: whatever we found on AKI for vg00 / hdisk2

hope this helps... if not post here.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0