1753784 Members
7004 Online
108799 Solutions
New Discussion юеВ

vgimport

 
SOLVED
Go to solution
A.G.M. Velthof
Valued Contributor

vgimport

Hello all,

I have (had) a server with 3 external disks (forming 1 VG).
The server passed away and I want to put the data on the disks. (the 3 disks are attached to the new server).
Do I use vgimport to create the VG on the new server. There is no mapfile. And do I need to vreate /dev/vg.... and the goup file first?

Regards, Alfons
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: vgimport

Shalom,

When connected, does the external disk array show up on ioscan?

Without the mapfile, life is harder, you will not be able to preserve -n lvname information.

You should however still be able to create a directory /dev/vgsomething mknod and vgimport the disks, if they are compatible with the new OS and system.

What is the OS and version and what type of device is this? It could be relavent. More detail is better when writing such cases.

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
Pete Randall
Outstanding Contributor

Re: vgimport

The map file is only required if you used non-standard LVol names (lvol1, lvol2, etc. are standard).

The procedure to do the import is:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport /dev/vg01 /dev/dsk/c0t1d0 /dev/dsk/c0t3d0 /dev/dsk/c0t5d0

Note: the minor number (01 in 0x010000) must be unique and usually matches the vg number. Also, change the device files in the vgimport command to match yours.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: vgimport

Hi Alfons:

# mkdir /dev/vgNN
# mknod /dev/vgNN/group c 64 0xNN0000
# vgimport -v vgNN /dev/dsk/c0t0d0 /dev/dsk/c0t0d1 /dev/dsk/c0t0d2
# vgchange -a y vgNN

...Choose a value for NN that is unique and is less than your kernel 'maxvgs' parameter.

Since you don't have a mapfile, your logical volume names will default to the format "lvolN'. If you know the names you want, you can construct a map file for use with the '-m mapfile' argument to the 'vgimport'. The mapfile would simply look like:

1 mylvola
2 mylvolb
3 mylvolc

Regards!

...JRF...
A.G.M. Velthof
Valued Contributor

Re: vgimport

The disk show with an ioscan and the device files are also present.
The OS is 10.20 and there are 3 seagate disks, together forming a VG.

Regards, Alfons
A.G.M. Velthof
Valued Contributor

Re: vgimport

It worked.

Thanks.