Operating System - HP-UX
1834809 Members
2475 Online
110070 Solutions
New Discussion

how to restore the volume group and FileSystem -- replaced bad EMC disk

 
SOLVED
Go to solution
Veeravalli
Advisor

how to restore the volume group and FileSystem -- replaced bad EMC disk

Dear Gurus,

I need your help with the following:

situation
=========

1. we had a bad disk in the EMC SAN and was replaced
2. now, we are missing a filesystem i.e it is not mounted /dev/vg36/lvol1 = /oradata
3. if tried to mount manually, it says /dev/vg36/lvol1 /oradata doesnot exist.

Volume group "/dev/vg36" does not exist in the "/etc/lvmtab" file.


# ls -l /dev/vg36
total 0
crw-r----- 1 root sys 64 0x060000 May 23 09:15 group
#

(as you can see, there are no lvol1 and rlvol1 in /dev/vg36.


# ls -l /etc/lvmconf/*36*
-rw------- 1 root sys 234496 Oct 5 2006 /etc/lvmconf/vg36.conf
-rw-r----- 1 root sys 30 Oct 5 2006 /etc/lvmconf/vg36.mapfile

#


Can you please guide me on how to restore vg36 and mount /oradata again.

Really appreciate your HELP!

-PV
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: how to restore the volume group and FileSystem -- replaced bad EMC disk

Shalom,

I'm a little shocked that the loss of a single disk in the EMC hammered your filesystem.

The lack of it being in lvmtab makes me wonder if this was a configuration problem.

As a side note, make sure the LUN being presented to your system includes at least RAID 5 protection.

vgimport would be my first idea, but I really don't think its going to work.

Best bet here would be to create the volume group a new and restore the data from backup tape.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Redhat
Trusted Contributor

Re: how to restore the volume group and FileSystem -- replaced bad EMC disk

use :-
first check the device file of the new LUN's exit though ioscan
else use insf -v
then
vgrestore -n vg36 /dev/dsk/cXtXdX

then mount -aeQ
Veeravalli
Advisor

Re: how to restore the volume group and FileSystem -- replaced bad EMC disk

1. yes, I can see all the physical disks in ioscan now.

2. vgimport needs a list of all the physical volumes, should I list all the PV's (there are 32 PVs).

please advise.

-PV
Redhat
Trusted Contributor

Re: how to restore the volume group and FileSystem -- replaced bad EMC disk

You can use vgcfgrestore as mentioned and then you may need to restored the data of the lvol/lvols reside on the replaced disk
Veeravalli
Advisor

Re: how to restore the volume group and FileSystem -- replaced bad EMC disk

I had to recreate the volume group, lvol, newfs and mount again.

I am all good now.

Thank you All for all your Help!
Really appreciate it!

-PV