1837195 Members
2511 Online
110115 Solutions
New Discussion

vgchgid with problems

 
SOLVED
Go to solution
Carme Torca
Super Advisor

vgchgid with problems


Hi,

I have a problem with one vg.
When I do vgchgid it says me that:

#vgchgid /dev/rdsk/c3t1d3 /dev/rdsk/c1t1d3
vgchgid: disk "/dev/rdsk/c3t1d3" is already in vg "/dev/vgCSParc".

this vg exist in /etc/lvmtab.
Does anyone could help me?

Thanks!
Carmen.
Users are not too bad ;-)
8 REPLIES 8
Luk Vandenbussche
Honored Contributor

Re: vgchgid with problems

Hi,

vgchgid is a command that can be executed before you import the PV in a VG.

Perform a vgexport before you execute the command

Check man vgchgid.
Ninad_1
Honored Contributor

Re: vgchgid with problems

Carme,

I suspect you are executing the vgchgid command on disks that are currently part of an active volume group. My question to you is - if the disks are part of a particular VG which is currently activated, why do you need to change the vgid ?
vgid needs to be changed for disks which are BC copies of disks currently in a active VG - so if you want to import the BC copy disks - first thing required is to change the vgid, then create a new VG with these disks. Read the man page for vgchid throughly - its very well explained.
Please let know what is your exact requirement for doing the vgchgid

Regards,
Ninad
Carme Torca
Super Advisor

Re: vgchgid with problems

Hi,

I cannot do vgexport. It returns me:

#vgexport -pvs -m /tmp/file.map /dev/vgCSParc
Beginning the export process on Volume Group "/dev/vgCSParc".
vgexport: "/dev/vgCSParc/group": not a character device.
vgexport: Couldn't export volume group "/dev/vgCSParc".

I haven't got /dev/vgCSParc
Users are not too bad ;-)
Ninad_1
Honored Contributor

Re: vgchgid with problems

Carme,

Two things.
1. Please attach the outputs of
a. strings /etc/lvmtab
b. vgdisplay -v /dev/vgCSParc
2. Please try to answer my query above to enable us to understand more on what is the situation and what you are trying to achieve - rather than blindly trying to guess the error. Dont take it otherwise.

Regards,
Ninad
Carme Torca
Super Advisor

Re: vgchgid with problems

Hi,

Here you are:

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t8d0
/dev/dsk/c0t10d0
/dev/vgSCS
DA{}
/dev/dsk/c1t6d5
/dev/dsk/c1t6d6
/dev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1
/dev/dsk/c3t1d2
/dev/dsk/c3t10d6
/dev/dsk/c3t10d7
/dev/dsk/c3t11d0

# vgdisplay -v /dev/vgCSParc
vgdisplay: "/dev/vgCSParc/group": not a character device.
vgdisplay: Cannot display volume group "/dev/vgCSParc".


2) The problem was that one people was executing one script, and the origin problem was this witch vgchgid, but there are a lot of instruccions, it is for backups, and I don't know all the instruccions.
I only know that de vgCSParc is bad, because I cannot do vgexport because does not exist /dev/vgCSParc but its on /dev/lvmtab.

What could I do?
Thanks!
Carmen.

Users are not too bad ;-)
Ninad_1
Honored Contributor

Re: vgchgid with problems

Carme,

As the error indicates - is there really no cahracter device file in /dev/vgCSParc with the name group - this is the control file required to be present in every /dev/vg?? directory and needs to have a unique minor number.
Please check the output of
ls -l /dev/*/group

If there is no group file or not a character device file and having entry in /etc/lvmtab , I guess the only option would be to backup existing /etc/lvmtab,
remove the lvmtab file and run vgscan .
But please be aware that vgscan should be used in the most catastrophic situation - read man for vgscan. Also do wait to see if anyone else has better suggestion to come out of this situation.I am sure we have a lot of experts who will get you out of this situation.
Let me think as well.

Regards,
Ninad
Mohanasundaram_1
Honored Contributor
Solution

Re: vgchgid with problems

Hi Carmen,

Do you want to remove the vgCSParc from your system? At present /etc/lvmtab has an entry for this vgCSParc. WHich means as per the system the VG does exist.

do you have the directory /dev/vgCSParc? if so list the contents of this directory.

also provide the output of

# ll /dev/vg*/group


If the group file is not present under the /dev/vgCSParc directory, then you need to create the group device file and then perform the vgexport.

When performing vgexport, remove the "-p" option as it is in preview mode.

With regards,
Mohan.
Attitude, Not aptitude, determines your altitude
Carme Torca
Super Advisor

Re: vgchgid with problems

Hi,

Yes, I wanted to erase the vg. Finally I have created one group (with a minor number no duplicated) and one file (touch file1) in /dev/vgCSParc and after I have removed it without problems. (I have deceived it)
Thanks a lot of everyone!
Users are not too bad ;-)