Sponsored Content
Operating Systems AIX Unable to varyonvg after copy vg from XIV Post 302790339 by MichaelFelt on Friday 5th of April 2013 07:31:09 AM
Old 04-05-2013
This does not have anything to do with the storage system used.

By copy, did you use a command like dd to make the copy? Or did you have LUNS active from both systems and use something like migratepv commands? If so, I am guessing that you removed the old LUN before doing a reducevg command.

Does lspv show a disk as PVMISSING?
If you are facing a PVMISSING disk you could look at my post from 2007 on HOWTO: Cleanup a PVMISSING disk

In any case, (i.e., even if you are not seeing a PVMISSING message) your message reads as if there is a PVID in the VGDA that needs to be removed before you can varyonvg the volume group. More details in the article above - however, here are the basics:

Code:
root@aix53:[/]lsvg -p vgExport  
0516-010 : Volume group must be varied on; use varyonvg command.
root@aix53:[/]varyonvg vgExport
PV Status:      hdisk1  00c39b8d69c45344        PVACTIVE
                hdisk2  00c39b8d043427b6        PVMISSING

Code:
root@aix53:[/]lqueryvg -p hdisk1 -vPt 
Physical:       00c39b8d69c45344                2   0  
                00c39b8d043427b6                1   0  
VGid:           00c39b8d00004c000000011169c45a4b

Get a list of all the logical volumes on the missing disk
Code:
root@aix53:[/]lspv -l -v 00c39b8d00004c000000011169c45a4b hdisk2
hdisk2:
LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT
lvTest                512   512   109..108..108..108..79 /scratch
loglv00               1     1     00..00..00..00..01    N/A

If the last command does not list any logical volumes you can proceed to removing the disk from the volume group (i.e., remove from the VGDA) - otherwise you will need to remove the logical volumes from the volume group before removing the disk.

Code:
root@aix53:[/]ldeletepv -g 00c39b8d00004c000000011169c45a4b -p 00c39b8d043427b6
 
Note: there is no output for the above command when all proceeds accordingly.

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to varyonvg

Hello all, Strange problem on p5 520 server. I've created two volume groups, filesystems, etc.. Everything working fine, without any problem. After some tests with a DS4300 unit I wanted to remove the volume groups, change the DS4300 configuration, and re-create a new volumegroup. However, I'm... (0 Replies)
Discussion started by: EricBE
0 Replies

2. UNIX for Dummies Questions & Answers

Unable to copy or move file

I am trying to move a file that is in the root directory. I suspect it is an old file created by someone when the system was installed. I am testing accessing the file by doing a copy but the command does not find the file. I am operating as root. We are HP-UX B.11.23 I do long listing and... (3 Replies)
Discussion started by: phcorn
3 Replies

3. AIX

FastT600 - Cannot varyonvg on one server, but can varyonvg other server.

Good evening, Thanks a lot for your help, we appreciate it a bunch. Heres basically a summary of what we have (sorry Im adding some extra history as well): We have 2 Ibm Servers (Hag and Aki) that are running AIX Version 5. Each connect to a SAN device via 2 separate fiber paths. Hag seems to... (9 Replies)
Discussion started by: aix-olympics
9 Replies

4. AIX

AIX varyonvg PVMISSING

Hi all. I'm new to AIX, so... We are running a BCV process between two AIX 5 machines attached to EMC Clariion SAN. During the varyonvg portion of the BCV process, we experienced a failure due to the physical volume is marked missing (PVMISSING). What diagnostics can I run to see the missing... (2 Replies)
Discussion started by: KSFlyer
2 Replies

5. AIX

Unable to execute varyonvg during importvg

Hello, On Aix 5.3, during importvg, the varyonvg fails: importvg -y vgtest hdisk20 0516-013 varyonvg: The volume group cannot be varied on because there are no good copies of the descriptor area. When i use manually the command varyonvg -u -b -t vgtest to force, the vg can... (3 Replies)
Discussion started by: dantares
3 Replies

6. Solaris

NIS slave unable to copy the data bases

Hi, I'm learning for my Solaris 10 sys-admin part 2. I'm now trying to get nis working because for the exercise. I run in to a problem. Setup: Three Systems solaris101 (client) Nothing wrong here havent made any config changes yet. solaris102 (master server) Interfaces ... (1 Reply)
Discussion started by: jld
1 Replies

7. Solaris

Solaris with Soft Errors in XIV

Hi guys, I had a solaris box, with veritas controled disk. 1 disc is showing soft errors, how can I repair the soft errors? Please help. Cheers; (4 Replies)
Discussion started by: Mujakol
4 Replies

8. Shell Programming and Scripting

Unable to copy contents

I am trying to move content of a folder usingls /backup/db_backups/INCREMENTAL/|while read file ; do mv $file /backup_LOCAL/db_backups/INCREMENTAL/ done...but when I run this command using a bash script I'm getting this error ./test.sh mv: cannot stat... (6 Replies)
Discussion started by: rocking77
6 Replies

9. AIX

Failed Disk,unable to varyonvg

Iam new to AIX I am unable varyonvg on the vios,some of the disk are reported as harware failure. I am going to replace the disk,Please tell me how to remove the disk without any corruption in the VG lspv -l hdiskx also didn't work (0 Replies)
Discussion started by: roayaix
0 Replies

10. AIX

Is my XIV device open?

Hi there, I am trying to determine if a specific XIV LUN on AIX is in OPEN or CLOSED state. I would like tthe same info as I can get from pcmpath command on v7000 LUN-s. I would need this info to find out if I can safely delete a LUN or not. I tried fuser command, but no luck. It did not... (6 Replies)
Discussion started by: trifo75
6 Replies
All times are GMT -4. The time now is 12:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy