1837738 Members
3581 Online
110118 Solutions
New Discussion

Re: vgimport

 
SOLVED
Go to solution
Teck Sim
Frequent Advisor

vgimport

[wally:/] # mkdir /dev/vg01
[wally:/] # mknod /dev/vg01/group c 64 0x010000
[wally:/] # cd /dev/vg01
[wally:/dev/vg01] # ll
total 0
crw-r--r-- 1 root sys 64 0x010000 Jul 12 09:50 group
[wally:/dev/vg01] # vgimport -m vg01.mapfile -p -v -s /dev/vg01
Creating "/etc/lvmtab".
Beginning the import process on Volume Group "/dev/vg01".
Logical volume "/dev/vg01/d02" has been successfully created
with lv number 1.
Logical volume "/dev/vg01/u01" has been successfully created
with lv number 2.
Logical volume "/dev/vg01/d01" has been successfully created
with lv number 3.
Logical volume "/dev/vg01/u02" has been successfully created
with lv number 4.
Logical volume "/dev/vg01/d03" has been successfully created
with lv number 5.
Logical volume "/dev/vg01/d0reports" has been successfully created
with lv number 6.
Logical volume "/dev/vg01/redolog1" has been successfully created
with lv number 7.
Logical volume "/dev/vg01/redolog2" has been successfully created
with lv number 8.
Logical volume "/dev/vg01/redolog3" has been successfully created
with lv number 9.
Logical volume "/dev/vg01/redolog4" has been successfully created
with lv number 10.
Logical volume "/dev/vg01/u03" has been successfully created
with lv number 11.
Logical volume "/dev/vg01/u04" has been successfully created
with lv number 12.
Volume group "/dev/vg01" has been successfully created.

[wally:/dev/vg01] # vgchange -a y /dev/vg01
vgchange: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file.

[wally:/dev/vg01] # mkdir /d01
[wally:/] # mount /dev/vg01/lvol3 /d01
mount: /dev/vg01/lvol3: No such file or directory

What's the problem here?
What are the steps I need to take from here after vgimport?
Thanks.
9 REPLIES 9
Helen French
Honored Contributor
Solution

Re: vgimport

I think the problem is the use of -p with vgimport. This will only do a preview and will not do the actual task. Remove the option '-p' and try again.
Life is a promise, fulfill it!
James R. Ferguson
Acclaimed Contributor

Re: vgimport

Hi Teck:

Your problem is that yuo used the 'p' (preview) option! Thus the /etc/lvmtab is not updated!!!

Regards!

...JRF...
PIYUSH D. PATEL
Honored Contributor

Re: vgimport

Hi,

remove -p option in vgimport ( it only previews )

The rest all things are fine.
You will be done.

Piyush
Jeff Schussele
Honored Contributor

Re: vgimport

HI Tech,

Drop the -p from the vgimport command & you'll be good to go.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Teck Sim
Frequent Advisor

Re: vgimport

Thanks to all of you. This problem has been resolved.

The other thing is that, after I did a cold-install to HP-UX 11 from HP-UX 10.20, when I tried to log in as myself tsim/xxxx, the system says login incorrect.
I can only log in as root/xxxx.

Thanks.
PIYUSH D. PATEL
Honored Contributor

Re: vgimport

Hi,

Check whether the user name is present in the /etc/passwd file and whether the home directory where you should come has been created or not.

Piyush
James R. Ferguson
Acclaimed Contributor

Re: vgimport

Hi Teck:

Remember, a cold-install means *everything* is erased from your target disk (vg00). You will need to copy-in and/or rebuild all of your configuration files -- /etc/passwd, etc.

Regards!

...JRF...
PIYUSH D. PATEL
Honored Contributor

Re: vgimport

Hi,

You should restore all the configuration files from the backup carefully.

Piyush
James R. Ferguson
Acclaimed Contributor

Re: vgimport

Hi (again) Teck:

I meant to add: Since your problem with 'vgimport' is resolved, please *open a new thread* for other problems, instead of adding to this one.

Regards!

...JRF...