Visit Our UNIX and Linux User Community


How to make existing volume group "shared"?


 
Thread Tools Search this Thread
Operating Systems AIX How to make existing volume group "shared"?
# 1  
Old 08-07-2013
How to make existing volume group "shared"?

We have a 2 node cluster in which only the primary actually mounts the shared VGs at any specific time. We recently added a volume group to the primary.
* The disks in it are visible to both nodes, but the secondary does not know about the new VG.
* The new VG is not a "shared volume group"
* The new VG is in production
I need to find a way to make the (existing/active) VG on the primary into a "shared VG" available to both nodes.
1. Is there a way to do this without taking both nodes down?
2. How do I make an existing VG a "shared VG"?

Thanks in advance for any guidance you can provide. Procedures I'm finding seem to involve creating the VG and making it shared before actually mounting it and using it on a node.
# 2  
Old 08-07-2013
Are you doing MPIO? Are these physical systems or lpars? Is this HACMP? How do you open the volume group on the system you say that can see the disk?
# 3  
Old 08-08-2013
Try this IBM Redbook and seach for the string concurrent


I hope that this helps, but let me know if I'm miles off target and i will think again.



Robin
Liverpool/Blackburn
UK
# 4  
Old 08-08-2013
Quote:
Originally Posted by blackrageous
Are you doing MPIO? Are these physical systems or lpars? Is this HACMP? How do you open the volume group on the system you say that can see the disk?
AIX is not my "native language", I do much more Solaris, so please forgive any terminology mistakes!

Our luns are served from an EMC Clariion san, and are SATA. The cluster is HACMP, with no standalone management server. OS is 5.3. Servers are P6 550s.

Here's the VG from the Primary/active node:
Code:
bash-2.05b# lsvg vg_arc2
VOLUME GROUP:       vg_arc2                  VG IDENTIFIER:  00cbd24200004c0000000135104bc85d
VG STATE:           active                   PP SIZE:        64 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      36460 (2333440 megabytes)
MAX LVs:            256                      FREE PPs:       0 (0 megabytes)
LVs:                4                        USED PPs:       36460 (2333440 megabytes)
OPEN LVs:           4                        QUORUM:         5 (Enabled)
TOTAL PVs:          8                        VG DESCRIPTORS: 8
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         8                        AUTO ON:        no
MAX PPs per VG:     65536                    MAX PVs:        1024
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
bash-2.05b# lsvg -p vg_arc2
vg_arc2:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdiskpower32      active            7197        0           00..00..00..00..00
hdiskpower33      active            7197        0           00..00..00..00..00
hdiskpower34      active            7197        0           00..00..00..00..00
hdiskpower35      active            7197        0           00..00..00..00..00
hdiskpower41      active            1918        0           00..00..00..00..00
hdiskpower42      active            1918        0           00..00..00..00..00
hdiskpower43      active            1918        0           00..00..00..00..00
hdiskpower44      active            1918        0           00..00..00..00..00
bash-2.05b# lsvg -l vg_arc2
vg_arc2:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
lv_arc9             jfs2       9115    9115    2    open/syncd    /archive9
lv_arc10            jfs2       9115    9115    2    open/syncd    /archive10
lv_arc11            jfs2       9115    9115    2    open/syncd    /archive11
lv_arc12            jfs2       9115    9115    2    open/syncd    /archive12
bash-2.05b# lspv |grep vg_arc2
hdiskpower32    00cbd2427b2ff68d                    vg_arc2         active
hdiskpower33    00cbd2427b35914d                    vg_arc2         active
hdiskpower34    00cbd2427b279500                    vg_arc2         active
hdiskpower35    00cbd2427b2b3c06                    vg_arc2         active
hdiskpower41    00cbd24203dcdec2                    vg_arc2         active
hdiskpower42    00cbd24203e5c4dc                    vg_arc2         active
hdiskpower43    00cbd24203df9ccd                    vg_arc2         active
hdiskpower44    00cbd24203e5eb16                    vg_arc2         active

Here are the same commands from the Secondary/inactive node:
Code:
bash-2.05b# lsvg vg_arc2
0516-306 : Unable to find volume group vg_arc2 in the Device
        Configuration Database.
bash-2.05b# lsvg -p vg_arc2
0516-306 : Unable to find volume group vg_arc2 in the Device
        Configuration Database.
bash-2.05b# lsvg -l vg_arc2
0516-306 : Unable to find volume group vg_arc2 in the Device
        Configuration Database.
bash-2.05b# lspv |grep vg_arc2
bash-2.05b# lspv | egrep 'hdiskpower3|hdiskpower4'
hdiskpower32    00cbd2427b2ff68d                      None
hdiskpower33    00cbd2427b35914d                    None
hdiskpower34    00cbd2427b279500                    None
hdiskpower35    00cbd2427b2b3c06                    None
hdiskpower41    none                                None
hdiskpower42    none                                None
hdiskpower43    none                                None
hdiskpower44    none                                None

The secondary node at least sees the PVIDs of 4 of the disks, the 4 it doesn't see PVIDs for were just added.

"smit cl_admin" shows that this volume group is not shared at all, while various other VGs are shared:
Code:
#Volume Group            Resource Group          Node List
 hbvg                    <None>                  cmax1,cmax2
 vg_arc                  cmax_res                cmax1,cmax2
 vg_bkp                  cmax_res                cmax1,cmax2
 vg_cmax                 cmax_res                cmax1,cmax2
 vg_dba                  cmax_res                cmax1,cmax2

Thanks...

Last edited by Scott; 08-08-2013 at 11:11 AM.. Reason: Use code tags, please...
# 5  
Old 08-08-2013
Have a look at the manual page for chvg. I think you are looking for the -c flag to make the volume group concurrent.



Robin
# 6  
Old 08-08-2013
My understanding is we don't use (or want) concurrent access, as we only have one node active at a time. The Redbook I'm looking at says
"Shared logical volumesWhile not explicitly configured as part of a resource group, each logical volume in
a shared volume group will be available on a node when the resource group is
online. These shared logical volumes can be configured to be accessible by one
node at a time or concurrently by a number of nodes in case the volume group is
part of a concurrent Resource Group."

We never need the nodes to be accessible by a number of nodes, just one node at a time. Problem now is that the volume group is in production, but not shared, as indicated by what you see when you look at "smit cl_admin -> HACMP Logical Volume Management -> Shared Volume Groups". The volume group in question, vg_arc2, is not even listed there, so it is not yet a shared vg. Thanks again.
# 7  
Old 08-08-2013
I think that you might need to make them visible (although varied off) to each node, so there is an update to make to the VG. If I can find the course notes I will dig in a bit more.



Robin

Previous Thread | Next Thread
Test Your Knowledge in Computers #53
Difficulty: Easy
Computer caches are typically built using EPROMS.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

3. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

4. Programming

extract the same format from existing excel file using " Spreadsheet::ParseExcel " module

Hi , can any one tell me,"How to extract the same format from existing excel file to new excel file " using Spreadsheet::WriteExcel or Spreadsheet::ParseExcel module ??? Example_pgm: Below program is used to read existing excel file..In this program "my $cell = $_;" line is used to... (0 Replies)
Discussion started by: kavi.mogu
0 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

Make scipt except from "Y","y" and "yes" to take [Enter] as being "yes"

This is the script: #!/bin/sh if ; then rm -rf /usr/share/WallpaperChanger; fi if ; then rm -rf /usr/bin/wallch; fi; if ; then rm -rf /usr/share/applications/wallch.desktop; fi if ; then rm -rf /usr/share/doc/wallch; fi if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies

7. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

8. Programming

how could i make a program mixed with many "|", "<" and ">"

I have written following code to do: ls -l | wc -w, it works: but when there are not only a single "|", if there are more such as: ls -l | sort -r | sort | sort -r, This program does not work, i want to know how could i deal with it when there are more "|", another situation is that, if it mixes... (2 Replies)
Discussion started by: strugglingman
2 Replies

9. UNIX for Dummies Questions & Answers

"./cofigure" and "make" turmoil

I am a Unix newbie and I downloaded some X11 programs. I have gcc, but I cannot compile the files. I NEED HELP!!!! :confused: (16 Replies)
Discussion started by: gnerd
16 Replies

Featured Tech Videos