1834483 Members
3648 Online
110067 Solutions
New Discussion

unable to activate VG

 
praveen reddy g
New Member

unable to activate VG

earlier we have deactivated this volume group by
vgchange -a y vg08 command.
now we are trying to activate it but we are unable to do it.
please have a look over the attachment to see the issue....

thanks in advance if any one could help me out resolving this...
11 REPLIES 11
Kapil Jha
Honored Contributor

Re: unable to activate VG

Do you remember how many devices vg08 has?

/dev/dsk/c2t1d0 is probably faulty , do you have mirrored disk for this.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Raj D.
Honored Contributor

Re: unable to activate VG

Praveen,

- What do you mean earlier,
- what is the output of: # uptime

- check if you can see the disk:
# diskinfo /dev/rdsk/c2t1d0

- What do you see in # ioscan -fnC disk

- Also check:

- xd -An -j8200 -N16 -tx /dev/rdsk/c2t1d0
It will display the current vgid, and pvid of the disk if the disk is available.

Hth,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
SoorajCleris
Honored Contributor

Re: unable to activate VG

earlier we have deactivated this volume group by
vgchange -a y vg08 command.

==> The command is for activating volume group, not for deactivating.


please paste the command output
#strings /etc/lvmtab

It seems like there is a failed disk or cross-device link - Looks like some of your disks are used in more than one volume group.

#ioscan -fnC disk |grep c2t1d0

How many disks are there in vg08?

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
praveen reddy g
New Member

Re: unable to activate VG

sorry all
the command was vgchange -a n vg08 command.
( instead i've specified vgchange -a y vg08.

the etc/lvmtab info is there in the notepad...

there are no mirrored volumes...

raj i've run this command yesterday only...

thanks
Kapil Jha
Honored Contributor

Re: unable to activate VG

Are you sure nothign else was done on VG08 and /dev/rdsk/c2t1d0 was not touched.

#pvdisplay /dev/dsk/c2t1d0

#vgcfgrestore -n /dev/vg08 -l

send above output.

and if you see the same disk then
#vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0

Make sure you playing with LVM metadata, so be sure and then only run the command
I am in this small bowl, I wane see the real world......
praveen reddy g
New Member

Re: unable to activate VG

hi kapil
i am sending the output of the commands provided by pls check that in attachment..

there is no LV present in VG08.
Raj D.
Honored Contributor

Re: unable to activate VG

Praveen,

It is obvious that your disk c2t1d0 doesn't have any LVM information in the disk meta data area,

# xd -An -j8200 -N16 -tx /dev/rdsk/c2t1d0
0 0 0 0


- Possible cause someone might have done a pvcreate -f on that disk.


- Seems you have to recreate the LVM structure on that disk and restore the data in that case.

Hth.
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
praveen reddy g
New Member

Re: unable to activate VG

please provide the steps to recreate the LVM structure on that disk

thanks
Kapil Jha
Honored Contributor

Re: unable to activate VG

you run wrong command
vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0

you should run
#vgcfgrestore -n /dev/vg08 /dev/rdsk/c2t1d0

Always take care while running LVM and disk related commands else you could be in deep trouble for nothing.

Just check if this command works, else you would have to recreate disk and restore data from backup.

BR,
Kapil+

I am in this small bowl, I wane see the real world......
SoorajCleris
Honored Contributor

Re: unable to activate VG

you have run a wrong command

vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0

===> WRONGGGGGGGGGGGG


vgcfgrestore -n /dev/vg08 /dev/rdsk/c2t1d0

CORRECT VG NAMW
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Rohit Bakale
New Member

Re: unable to activate VG

# pvdisplay /dev/dsk/c2t1d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t1d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg08".
pvdisplay: Cannot display physical volume "/dev/dsk/c2t1d0".
# vgcfgrestore -n /dev/vg08 -l
Volume Group Configuration information in "/etc/lvmconf/vg08.conf"
VG Name /dev/vg08
---- Physical volumes : 1 ----
/dev/rdsk/c2t1d0 (Non-bootable)
# vgcfgrestore -n /dev/vg08 /dev/rdsk/c2t1d0
vgcfgrestore: "/dev/vg08/group": not a character device.
Volume Group configuration has been restored to /dev/rdsk/c2t1d0