Operating System - HP-UX
1833299 Members
2760 Online
110051 Solutions
New Discussion

How to mount old disk vg on newly installed system

 
SOLVED
Go to solution
RajeevKumar
Occasional Contributor

How to mount old disk vg on newly installed system

I have installed new hpux 10.20 and want to mount old disk file systems on new disk for data recovery. While we had configured SDS on old disks when ols system was running.Pls suggest method .......
5 REPLIES 5
Victor Fridyev
Honored Contributor
Solution

Re: How to mount old disk vg on newly installed system

Hi,

I suggest, the procedure is standard:

mkdir /dev/vgold
mknod /dev/vgold/group c 64 0x070000
ioscan -fnCdisk
vgimport /dev/vgold /dev/rdsk/XXXX,

where XXXX is address of the old disk

vgchange -a y vgold

and mount all file system

HTH
Entities are not to be multiplied beyond necessity - RTFM
sajeer_2
Regular Advisor

Re: How to mount old disk vg on newly installed system


Hello RajeevKumar,

You have to import the old disk group to system.
1.mkdir /dev/vgold (or any name)
2.mknod /dev/vgold/group c 64 0x0X0000
(check the last minor number used in you system using "ls -l /dev/*/group" command and put the next number in place of 0x0X000)

3.vgimport /dev/vgold /dev/dsk/cXtXdX
(cXtXdX is the Old disk device name which you are going to import.Put all the disk names f you have more disks in same Volume Group)

4.Vgchange -a y vgold

5.do "strings /etc/lvmtab" to verify vg config.

6.ls -l /dev/vgold
this will show you the device file names for each LVs

7.Mount each LV using mount command


nanan
Trusted Contributor

Re: How to mount old disk vg on newly installed system

Hi RajeevKumar

The upper Sajeer's comments is correct.
Just follow his procedure.

You may confuse if you configured old vg with specific lvol name because sajeer's procedure was just recommanding you don't care the exact lvol name.

For example, oldvg had three lvols, like this
/dev/oldvg/data1, data2, data3
If you followed the procedure
vgimport oldvg /dev/dsk/cXtYdZ
you will see lvol1, lvol2, lovl3

in this case, you just need to mount those lvols and restore data you wanted.

What a great consideration he did
he conjuctured you didn't have the oldvgs's map files.

Regards
nanan
RajeevKumar
Occasional Contributor

Re: How to mount old disk vg on newly installed system

Tks. Problem solved with these suggestions.
Steven E. Protter
Exalted Contributor

Re: How to mount old disk vg on newly installed system

Since You are a new ITRC user, I remind you to assign points to the answer that provided you a solution.

Glad your problem is solved.

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