Operating System - HP-UX
1833759 Members
2358 Online
110063 Solutions
New Discussion

will vgchange & vgcfgrestore destroy the data or not?

 
SOLVED
Go to solution
bunty...,
New Member

will vgchange & vgcfgrestore destroy the data or not?

vgdisplay -v /dev/vg03
::
::
::
--- Physical volumes ---
PV Name /dev/dsk/c19t7d6
PV Name /dev/dsk/c18t7d6 Alternate Link
PV Status unavailable
Total PE 1151
Free PE 265
Autoswitch On

PV Name /dev/dsk/c19t7d7
PV Name /dev/dsk/c18t7d7 Alternate Link
PV Status unavailable
Total PE 1151
Free PE 0
Autoswitch On

PV Name /dev/dsk/c19t8d0
PV Name /dev/dsk/c18t8d0 Alternate Link
PV Status unavailable
Total PE 1151
Free PE 0
Autoswitch On


how to make them PV Status available...
please suggest.

should i try with these commands?
#vgchange -a n /dev/vg03.
#vgcfgrestore -n /dev/vg03 /dev/rdsk/c19t7d6
#vgchange -a y /dev/vg03

will it destroy the data or not?
I need my data,
Please suggest
6 REPLIES 6
Sivakumar TS
Honored Contributor
Solution

Re: will vgchange & vgcfgrestore destroy the data or not?


Dear Bunty,

Are you able to query the disks ( alternate links ).

Are they CLAIMED in #ioscan and do you get informations for #diskinfo ?

If you could get all the above and if you have the right #vgcfgbackup the data wont be lost.

With Regards,

Siva.
Nothing is Impossible !
Pete Randall
Outstanding Contributor

Re: will vgchange & vgcfgrestore destroy the data or not?

No, those commands won't restore your data but they are not going to help you either. Start by running "ioscan -fnCdisk" and checking to make sure those disks show up correctly.


Pete

Pete
Chan 007
Honored Contributor

Re: will vgchange & vgcfgrestore destroy the data or not?

Bunty,

As long as ioscan and diskinfo for thet PV is successfull, you have your data, if you can't get the output due to Disk Problems then you lost your data (if you have RAID/backup, then be ready for restore)


007
Deoncia Grayson_1
Honored Contributor

Re: will vgchange & vgcfgrestore destroy the data or not?

Bunty,

These are the same disks you inquired about earlier in this string:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=988624

When you did a diskinfo on those particular disks you did not get any return, so in short these disks need to be replaced, vgchange and vgcfgrestore will not help you in this scenario.

If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Chauhan Amit
Respected Contributor

Re: will vgchange & vgcfgrestore destroy the data or not?

Hi Bunty,

vgchange and vgcfgrestore will not be of help to you. You can try following commands to check the data integrity:
a) #ioscan -fnC disk
Check whether disk devices are showing "claimed"
b) #diskinfo /dev/rdsk/c#t#d#
run diskinfo on all the disk devices which are showing PV status unavailable to check the size of the disk
c) See if you are able to read from the disk using the following command:

dd if=/dev/dsk/c#t#d# of=/dev/null bs=64k

where c#t#d# is the appropriate disk device file. If you are unable
to read the disk, then most likely you will have to recreate LUN and restore data.

Hope this helps.

Regards,
Amit

If you are not a part of solution , then you are a part of problem
Tvs
Regular Advisor

Re: will vgchange & vgcfgrestore destroy the data or not?

hi Bunty,

try to eceucte ioscan -fnc .. and check the disk status.if they CLAIMED in #ioscan and do you get informations
try # diskinfo /dev/rdsk/c19t7d6

vgcahnge and vgcfgbackup will not distroty the data

regards

tvs