Sponsored Content
Full Discussion: Need LVM Help
Operating Systems AIX Need LVM Help Post 302987248 by BG_JrAdmin on Wednesday 7th of December 2016 01:22:42 PM
Old 12-07-2016
Need LVM Help

Hello,

I need some help, it is slightly urgent so any help is appreciated.

We were doing a data migration, during a migratepv command, our SAN ran out of quota space and locked all of the filesystems, now I'm left with a few errors and am not able to do migratepv again.

Code:
[root]/[]:migratepv hdisk18 hdisk100
0516-1244 migratepv: Destination physical volume hdisk100 contains
        partitions of the logical volume lvmhsrwriter.
0516-812 migratepv: Warning, migratepv did not completely succeed;
        all physical partitions have not been moved off the PV.

[root]/[]:lslv -l lvmhsrwriter
0516-1939 : PV identifier not found in VGDA.

root]/db/mhsrwriter[]:lsvg -l datavg
0516-1147 : Warning - logical volume lvmhsrwriter may be partially mirrored.
lvmhsrwriter        jfs2       268     279     18   open/syncd    /db/mhsrwriter

[root]/[]:lslv lvmhsrwriter
LOGICAL VOLUME:     lvmhsrwriter           VOLUME GROUP:   datavg
LV IDENTIFIER:      00c0815e00004c0000000106840bfa30.37 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       opened/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            512                    PP SIZE:        128 megabyte(s)
COPIES:             2                      SCHED POLICY:   parallel
LPs:                268                    PPs:            536
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       maximum                RELOCATABLE:    yes
INTRA-POLICY:       edge                   UPPER BOUND:    64
MOUNT POINT:        /db/mhsrwriter         LABEL:          /db/mhsrwriter
DEVICE UID:         0                      DEVICE GID:     0
DEVICE PERMISSIONS: 432
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO
INFINITE RETRY:     no                     PREFERRED READ: 0
DEVICESUBTYPE:      DS_LVZ
COPY 1 MIRROR POOL: None
COPY 2 MIRROR POOL: None
COPY 3 MIRROR POOL: None

So we tried rmlvcopy (A suggestion from the internet)

Code:
[root]/[]:rmlvcopy lvmhsrwriter 1 hdisk100
0516-1939 lquerypv: PV identifier not found in VGDA.
0516-304 getlvodm: Unable to find device id 0000000000000000 in the Device
        Configuration Database.
0516-848 rmlvcopy: Failure on physical volume 0000000000000000, it may be missing
        or removed.

Any help to resolve this issue is greatly appreciated.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

When to use LVM?

Having first encountered LVM in HP-UX and now experimenting with it in Redhat and Gentoo, I am wondering, when is it actually good practice to use LVM? Obviously LVM doesn't work for boot partitions, so that question is a pretty easy answer: Not for /boot in Linux. While trying to figure out... (1 Reply)
Discussion started by: deckard
1 Replies

2. AIX

Help with LVM

Sorry for the noob question; my experience is with Solaris. Am I reading this right? Are these disks completely unused? Not possibly raw disks for informix or something? hdisk5 0K-08-ff-0,1 Optimal RAID 10 Array 285.7GB pdisk20 0K-08-00-2,0 Active Array Member 142.8GB... (2 Replies)
Discussion started by: filosmith
2 Replies

3. Red Hat

lvm with -- on the name

Hi All, I created an lvm filesystem with a name with dash in the middle, like xxx-yyy (note, that it's only one dash). I was able to create it smoothly with this instructions. lvcreate -L 1G uservg -n xxx-yyy ls /dev/uservg/xxx-yyy (check) mkfs.ext3 /dev/uservg/xxx-yyy mount... (1 Reply)
Discussion started by: itik
1 Replies

4. Red Hat

Lvm

Hi, can we create logical volume from 2 different volume groups. (1 Reply)
Discussion started by: gopalredhat
1 Replies

5. AIX

lvm

Hi. can anyone define about VGDA,VGSA,and quorum in aix.. (1 Reply)
Discussion started by: sumathi.k
1 Replies

6. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

7. AIX

Help with lvm

i have os 5.1 and i do mirror with hdisk0 and hdisk1 on rootvg at the end i get error in mail that: At least one partition mirror is broken please call sysadmin hd5 boot 1 2 2 closed/stale N/A the other fs seems ok and sync what to do about the hd5??? (4 Replies)
Discussion started by: amitt74
4 Replies

8. Red Hat

LVM Help

Hi, I have extended the logical drive on my SMART ARRAY on a BL460 C class blade from 72G to 300G (disk upgrade RAID0+1). It went fine and the new larger disks have now sync'ed up. I now need to create additional disk space on my linux OS (RH) via LVM but I am unable to see the additional... (9 Replies)
Discussion started by: Duffs22
9 Replies

9. Linux

LVM

Hi , I have 500 GB hard drive in my office server, previous employee installed fedora in to it, with 50 GB / and 120 GB (/opt/backup 15GB, /opt/test 5GB so on) . i have 180 GB free space left , so I have created LVM in 180 GB and moved all data from 120 GB to 180 . Now i need to create lvm in... (1 Reply)
Discussion started by: ram5019
1 Replies

10. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies
VGMERGE(8)						      System Manager's Manual							VGMERGE(8)

NAME
vgmerge - merge two volume groups SYNOPSIS
vgmerge [-A|--autobackup{y|n}] [-d|--debug] [-h|--help] [-l|--list] [-t|--test] [-v|--verbose] DestinationVolumeGroupName SourceVol- umeGroupName DESCRIPTION
vgmerge merges two existing volume groups. The inactive SourceVolumeGroupName will be merged into the DestinationVolumeGroupName if physi- cal extent sizes are equal and physical and logical volume summaries of both volume groups fit into DestinationVolumeGroupName's limits. OPTIONS -A, --autobackup y/n Controls automatic backup of VG metadata after the merge ( see vgcfgbackup(8) ). Default is yes. -d, --debug Enables additional debugging output (if compiled with DEBUG). -h, --help Print a usage message on standard output and exit successfully. -l, --list Display merged DestinationVolumeGroupName like "vgdisplay -v". -t, --test Do a test run WITHOUT making any real changes. -v, --verbose Display verbose runtime information about vgmerge's activities. Examples "vgmerge -v databases my_vg" merges the inactive volume group named "my_vg" into the active or inactive volume group named "databases" giv- ing verbose runtime information. DIAGNOSTICS
vgmerge returns an exit code of 0 for success and > 0 for error: 1 2 volume group names must be entered on command line 2 volume group to merge from must be inactive 3 error reading VGDA of volume group to merge into 4 error reading VGDA of volume group to merge from 5 error setting up VGDA for merge 6 error extending VGDA by physical volume in kernel 7 error writing VGDA to physical volume(s) 8 error creating volume group special files 9 error removing volume group from lvmtab 95 driver/module not in kernel 96 invalid I/O protocol version 97 error locking logical volume manager 98 invalid lvmtab (run vgscan(8)) 99 invalid command line ENVIRONMENT VARIABLES
LVM_AUTOBACKUP If this variable is set to "no" then the automatic backup of VG metadata is turned off. LVM_VG_MAX_BACKUPS This variable determines the backup history depth of kept VGDA copy files in /etc/lvmconf. It can be set to a positive number between 0 and 999. The higher this number is, the more changes you can restore using vgcfgrestore(8). See also1 lvm(8), vgcreate(8), vgextend(8), vgreduce(8), vgsplit(8), pvmove(8) AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com> Heinz Mauelshagen LVM TOOLS VGMERGE(8)
All times are GMT -4. The time now is 10:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy