vgchgid missed one disk


 
Thread Tools Search this Thread
Operating Systems HP-UX vgchgid missed one disk
# 1  
Old 02-13-2009
vgchgid missed one disk

Hi,

Suppose I have 3 disks c0t0d0, c0t0d1, and c0t0d2 all with the *same* VGID.

I then run:
# vgchgid /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d1
(notice I *accidentally* skipped the third disk!)

How would I fix this so that all 3 disks have the same VGID again?

I'm looking for step-by-step list of commands that would fix this...

Thanks.
# 2  
Old 02-17-2009
any ideas?
# 3  
Old 02-17-2009
Never had the use for the command... sorry
At the time it was designed for EMC sysmmetrix... later you could use it on a set of disks which are not EMC Symmetrix BCVs using the -f option as the first argument on the command line, the type of underlying disc type will not be checked. It may be worth trying again with -f ...

Anyway knowing what you were trying to do may help us understand you issue or is it
a guess since you started with "suppose"
# 4  
Old 02-17-2009
Someone gave you an answer here: IT Resource Center forums - vgchgid missed one disk

For the benefit of other forum members, did that work for you?
# 5  
Old 02-18-2009
Quote:
Originally Posted by candlejack
Someone gave you an answer here: IT Resource Center forums - vgchgid missed one disk

For the benefit of other forum members, did that work for you?
I posted that there too. Basically:

# vgchgid -f /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d1 /dev/rdsk/c0t0d2
vgchgid: physical volume "/dev/rdsk/c0t0d0" and "/dev/rdsk/c0t0d2" do not belong to the same volume group.

So the -f option won't work.

I know for a fact that the 3 disks did belong to the same VG before (exported from system A then moved to system B where we accidently vgchgid the first two and forgot the third).

Silly mistake, but not my mistake Smilie
No way of fixing so far Smilie

Anyone know of a way (my guess would be to use the dd command to duplicate the first few sectors from c0t0d0 to c0t0d2), but cannot believe others have never enocountered such a issue before Smilie
# 6  
Old 02-18-2009
It was mirrored disks you split right?
I would go and remove the PV (pvxreate -f , may have to use rmsf ( long time since I last played with vgs like that...)) and add it back to the group, mirror and start all again...
# 7  
Old 02-19-2009
Curious if this would work: vgextend /dev/vg00 /dev/dsk/c0t0d2
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

DISK ARRAY PROTECTION SUSPENDED message displayed following disk replacement

Hello, On 4/20/2018, we performed a disk replacement on our IBM 8202 P7 server. After the disk was rebuilt, the SAS Disk Array sissas0 showed a status of degraded. However, the pdisks in the array all show a status of active. We did see a message in errpt. DISK ARRAY PROTECTION SUSPENDED. ... (1 Reply)
Discussion started by: terrya
1 Replies

2. Shell Programming and Scripting

Find missed numbers

I have a file as follows: 1 3 7 12 78 ... 999998 1000000 I want to find out all numbers not in the file above and put into another file like 2 4 5 6 8 9 10 (13 Replies)
Discussion started by: dtdt
13 Replies

3. Linux

Apache folder missed

Hi, I am confused on apache service. Please advice me There is no apache directory in my linux box. Even I cant find out httpd.conf file also. But If browse my Hostname in Internet Explor, I can able to apache service there. Please How it is working .. This file is available in... (1 Reply)
Discussion started by: Mani_apr08
1 Replies

4. Solaris

( VxVM ) How to add the removed disk back to previous disk group

Previously , i remove the disk by #vxdg -g testdg -k rmdisk testdg02 But i got error when i -k adddisk bash-2.03# vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online invalid c0t1d0s2 auto:none ... (1 Reply)
Discussion started by: waibabe
1 Replies

5. Shell Programming and Scripting

asked question about script before missed ansewr..

linux fedora core2 :) i am trying to write a script to clear, date, pwd and tty a linux termnal or konsole.. when I test the tty against $0 i am, getting a premission denied on the terminal that I am trying to printf to.. I tried using an awk command, test condition, an if then fi clause, but... (6 Replies)
Discussion started by: moxxx68
6 Replies
Login or Register to Ask a Question