Logical volume name conflict in two volume group


 
Thread Tools Search this Thread
Operating Systems AIX Logical volume name conflict in two volume group
# 1  
Old 12-05-2009
Logical volume name conflict in two volume group

Hello,

I am a french computer technician, and i speak English just a little.

On Aix 5.3, I encounter a name conflict logical volume on two volume group.

The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM

Code:
root # lsvg -l rootvg |grep lvnode01 
lvnode01           jfs2       32    64    2    open/syncd    /users/node01 

root # lslv lvnode01 
LOGICAL VOLUME:     lvnode01              VOLUME GROUP:   rootvg 
LV IDENTIFIER:      00c7beec00004c00000001249820e29f.19 PERMISSION:  read/write 
VG STATE:           active/complete        LV STATE:       opened/syncd 
TYPE:               jfs2                   WRITE VERIFY:   off 
MAX LPs:            512                    PP SIZE:        32 megabyte(s) 
COPIES:             2                      SCHED POLICY:   parallel 
LPs:                32                     PPs:            64 
STALE PPs:          0                      BB POLICY:      relocatable 
INTER-POLICY:       minimum                RELOCATABLE:    yes 
INTRA-POLICY:       middle                 UPPER BOUND:    32 
MOUNT POINT:        /users/ node01        LABEL:          /home/ node01 
MIRROR WRITE CONSISTENCY: on/ACTIVE 
EACH LP COPY ON A SEPARATE PV ?: yes 
Serialize IO ?:     NO 

root # odmget -q name= lvnode01 CuAt 

CuAt: 
        name = " lvnode01" 
        attribute = "lvserial_id" 
        value = "00c7beec00004c00000001249820e29f.19" 
        type = "R" 
        generic = "D" 
        rep = "n" 
        nls_index = 648 

Command getlvcb is consistent 

root # getlvcb -AT lvnode01 
         AIX LVCB 
         intrapolicy = m 
         copies = 2 
         interpolicy = m 
         lvid = 00c7beec00004c00000001049820e29f.19 
         lvname = lvnode01 
         label = /home/ node01 
         machine id = 7BEEC4C00 
         number lps = 32 
         relocatable = y 
         strict = y 
         stripe width = 0 
         stripe size in exponent = 0 
         type = jfs2 
         upperbound = 32 
         fs = vfs=jfs2:log=/dev/alt_hd8:mount=true:quota=no:account=false 
         time created  = Tue Oct 27 23:33:44 2009 
         time modified = Wed Oct 28 02:55:59 2009

Another logical volume with the same name lvnode01 is present in another volume group (datavg), but in the closed state.

Code:
root # lsvg -l datavg | grep lvnode01 
lvnode01           jfs2       64    64    31   closed/syncd  /users/node01

I want to delete the logical volume lvnode01 in the second volume group datavg without impacting the first logical volume lvnode01 in rootvg. The server is critical.

With the lqueryvg command I could read the lvid in the volume group datavg on one of physical volume (hdisk10).

it is the lvid 00c7beec00004c0000000104e69b04cf.7 for the logical volume lvnode01

Code:
Lsvg –p datavg |grep hdisk10 
Hdisk10         active            1736        3           00..00..00..00..03 

root # lqueryvg -p hdisk10 -At 
Max LVs:        512 
PP Size:        24 
Free PPs:       64 
LV count:       7 
PV count:       31 
Total VGDAs:    31 
Conc Allowed:   0 
MAX PPs per PV  2032 
MAX PVs:        64 
Quorum Setting  1 
Auto Varyon ?:  1 
Conc Autovaryo  0 
Varied on Conc  0 
Logical:        00c7beec00004c0000000104e69b04cf.1   logva01 1 
                00c7beec00004c0000000104e69b04cf.2   logsa01 1 
                00c7beec00004c0000000104e69b04cf.3   data02 1 
                00c7beec00004c0000000104e69b04cf.4   tm01lv 1 
                00c7beec00004c0000000104e69b04cf.5   pu01lv 1 
                00c7beec00004c0000000104e69b04cf.6   data01lv 1 
                00c7beec00004c0000000104e69b04cf.7   lvnode01 1 
Physical:       00c7beece64601ba                1   0 
                00c7beece6460796                1   0 
                00c7beece6460c05                1   0 
                00c7beece64610ad                1   0 
                00c7beece6461618                1   0 
                00c7beece6461b37                1   0 
                00c7beece64620c9                1   0 
                00c7beece64625e9                1   0 
                00c7beece6462b79                1   0 
                00c7beece6463220                1   0 
                00c7beece64637dc                1   0 
                00c7beece6463fa2                1   0 
                00c7beece6464799                1   0 
                00c7beece64650b9                1   0 
                00c7beece6465775                1   0 
                00c7beece6465ea6                1   0 
                00c7beece646653b                1   0 
                00c7beece6466c7a                1   0 
                00c7beece64673ee                1   0 
                00c7beece6467b4d                1   0 
                00c7beece646825e                1   0 
                00c7beece6468aaf                1   0 
                00c7beece64692d9                1   0 
                00c7beece6469b38                1   0 
                00c7beece646a399                1   0 
                00c7beece646ac4c                1   0 
                00c7beece646b596                1   0 
                00c7beece646bfc1                1   0 
                00c7beece646ca29                1   0 
                00c7beece646d46d                1   0 
                00c7beece646ddc0                1   0 
Total PPs:      53816 
LTG size:       128 
HOT SPARE:      0 
AUTO SYNC:      0 
VG PERMISSION:  0 
SNAPSHOT VG:    0 
IS_PRIMARY VG:  0 
PSNFSTPP:       16128 
VARYON MODE:    0 
VG Type:        1 
Max PPs:        130048

I tried with the commands lchangelv and ldeletelv to delete or rename the second logical volume from its lvid but this does not work.

Code:
root # lchangelv -l 00c7beec00004c0000000104e69b04cf.7 -n lvnode01bad 
0516-082 lchangelv: Unable to access a special device file. 
         Execute redefinevg and synclvodm to build correct environment. 

root # ldeletelv -l 00c7beec00004c0000000104e69b04cf.7 
0516-046 ldeletelv: Cannot delete logical volume before partitions removed.

What is the solution to remove this second logical volume the same without impacting the availability of server?

Is that the synclvodm command could solve the problem?

Thanks a lot for your answer.


---------- Post updated 12-05-09 at 12:38 AM ---------- Previous update was 12-04-09 at 10:53 PM ----------

Hello,

After some research I think the command synclvodm could solve the problem of name conflict by renaming the logical volume automatically by default.

Have you ever used this command in this situation?

---------- Post updated at 12:39 AM ---------- Previous update was at 12:38 AM ----------

After some research I think the command synclvodm could solve the problem of name conflict by renaming the logical volume automatically by default.

Have you ever used this command in this situation?

Last edited by bakunin; 12-05-2009 at 10:39 AM..
# 2  
Old 12-05-2009
Quote:
ldeletelv -l 00c7beec00004c0000000104e69b04cf.7
0516-046 ldeletelv: Cannot delete logical volume before partitions removed.
Did you try to first umount the fs located on the LV? and then try
Code:
 smit rmlv

and indicate your LV ..

Last edited by wwwzviadi; 12-05-2009 at 06:27 AM..
# 3  
Old 12-05-2009
I can't unmount the file system because it is already used in another volume group rootvg.

For this reason i can't remove the logical volume with name lvnode01.

In odm, the logical volume lvnode01 exists once and is present only in the volume group rootvg.

In fact, I try to delete the duplicate of this lvnode01 logical volume in volume group datavg
# 4  
Old 12-05-2009
Quote:
lslv lvnode01
LOGICAL VOLUME: lvnode01 VOLUME GROUP: rootvg
LV IDENTIFIER: 00c7beec00004c00000001249820e29f.19 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 32 megabyte(s)
COPIES: 2 SCHED POLICY: parallel
LPs: 32 PPs: 64


so as we see thereis mirroring .. so try this
Code:
 smit rmlvcopy

and indicate PV from which you want to remove LV
# 5  
Old 12-05-2009
both copies reported by the command lslv are on the physical volume of rootvg: hdisk0 and hdisk1.

Both copies will not affect the datavg vg.

In fact I try to delete, without impacting applications, the problem of name conflict logical volume on this server. There are two times the logical volume lvnode01 : once in the volume group rootvg (mounted and active) and a second time in another volume group datavg (unmounted, not in the ODM but present in VGDA off physical volume related volume group datavg).

After some research I think the command synclvodm could solve the problem of name conflict by renaming the logical volume automatically by default.
# 6  
Old 12-05-2009
Quote:
Originally Posted by dantares
After some research I think the command synclvodm could solve the problem of name conflict by renaming the logical volume automatically by default.
Unfortunately i don't think so. "synclvodm" updates the contents of the ODM with the data of the VGDA (volume group descriptor area) and the LVCB (logical volume control block), nothing more, nothing less. You have this name conflict in the physical configuration (your VG/LV information as it is stored on disk) and your problem is not that the ODM contains other data than your disks. Therefore "synclvodm" will most likely not help you at all.

I'd try the following, which needs some downtime, but should be save. CAUTION: I cannot recreate your problem condition on the fly so the following is UNTESTED:

- use "varyoffvg" to completely unmount both of the VGs containing the conflicting LV.

- Use "exportvg" to get both VGs completely out of the system configuration.

- then use "synclvodm" to get a clean system configuration in the ODM

- "importvg" and "varyonvg" one of the VGs and delete the offending LV (you said you want to delete one of them anyways, but of course you could recreate and copy it under a different name to remove the conflict)

- "importvg" the other VG

The name conflict should be removed.

I hope this helps.

bakunin
# 7  
Old 12-05-2009
I wanted to use the command synclvodm to rename the logical volume lvnode01 in default in the volume group datavg.

So I could remove the default logical volume in volume group datavg without stopping applications. In fact I am forced to stop applications when using a importvg / exportvg.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Ubuntu

Rename Root Logical Volume group?

Hello, I'm running Ubuntu 12.04. I need to rename my root logical volume group and it's bootmanager/fstab accordingly. Here is the output: I need to change the HP-TEST001 to PRODGROUP01. Please advice me. root@PROD-02:/home# vgdisplay --- Volume group --- VG Name HP-TEST001 System ID... (2 Replies)
Discussion started by: moneynut
2 Replies

3. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

4. AIX

Position of the logical volume on the physical volume

Hello everyone, I just read that while creating a logical volume(LV) we can choose the region of the physical volume (PV) in which the LV should be created. When I say region I mean: outer edge - outer middle - center - inner middle and inner edge. Can anyone help me understand the utility... (11 Replies)
Discussion started by: adilyos
11 Replies

5. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

6. HP-UX

Unmount and remove all Logical vol.Volume group and physical disk

Hi, Someone please help me with how i can unmount and remove all the files systems from a cluster. This is being shared by two servers that are active_standby. (3 Replies)
Discussion started by: joeli
3 Replies

7. AIX

Basic Filesystem / Physical Volume / Logical Volume Check

Hi! Can anyone help me on how I can do a basic check on the Unix filesystems / physical volumes and logical volumes? What items should I check, like where do I look at in smit? Or are there commands that I should execute? I need to do this as I was informed by IBM that there seems to be... (1 Reply)
Discussion started by: chipahoys
1 Replies

8. HP-UX

Renaming logical volume group and volumes

Hi all, How do u rename a logical volume group and the logical volumes belonging to that? The logical volumes contain data and are in use. eg: Renaming dev/vgov to dev/ov-dg ? (6 Replies)
Discussion started by: Mr. Zer0
6 Replies

9. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

10. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies
Login or Register to Ask a Question