Operating System - HP-UX
1836598 Members
2947 Online
110102 Solutions
New Discussion

Re: vgimport error "not a directory"

 
SOLVED
Go to solution
erics_1
Honored Contributor

Re: vgimport error "not a directory"

Let's try this:

ioscan -fnC disk (show us the output)
vgexport vgdatos
mkdir /dev/vgdatos
mknod /dev/vgdatos/group c 64 0x010000
vgimport -v -m / vgdatos /dev/dsk/c0t2d0

vgchange -a y vgdatos

We'll do the best we can to help you with this but you shouldn't have removed the original config info on the other system. Hopefully there is a backup available if need be.

Eric
erics_1
Honored Contributor

Re: vgimport error "not a directory"

Sorry, scratch the ioscan request. Also, use c0t2d0 instead of c2t0d0.

Eric
Devender Khatana
Honored Contributor

Re: vgimport error "not a directory"

Hi,

Finally if you want to create new VG on the drive and restore backup then follow the steps like this.

#vgexport /dev/vgdatos

Insure that there is no entry in /etc/lvmtab by

#strings /etc/lvmtab
Now
1. #pvcreate -f /dev/rdsk/c2t0d0( Insure c2t0d0 is that disk only)
2. #mkdir /dev/vgdatos (Allready there so not required)
3. #mknod /dev/vgdatos/group c 64 0x010000 (Allready there so not required)

4. #vgcreate /dev/vgdatos /dev/dsk/c2t0d0
5. #lvcreate -L (Size in MB) /dev/vgdatos
Repeat for multiple LVs.
6. #newfs -F vxfs /dev/vgdatos/rlvol1
Repeat for all LV's

Then create mount point directory and mount all LVs.
#mount -F vxfs /dev/vgdatos /mount_point

Create entry in /etc/fstab.

HTH,
Devender
Impossible itself mentions "I m possible"
Denver Osborn
Honored Contributor

Re: vgimport error "not a directory"

If you hadn't trashed the disk and started over from scratch and in the middle of a restore now... As a last resort the least I would do is pull the /etc/lvmconf/vgdatos.conf from the original host and put it on the box where the import failed... then restore the lvm conf to the disk from the last known good conf on the original box.

vgcfgrestore -f /tmp/original_vgdatos.conf /dev/rdsk/c2t0d0

Then have at the vgimport again. If the lvm header was trashed before/after/during the move, that could fix it.

just a final thought, good luck.

-denver
GerGon
Regular Advisor

Re: vgimport error "not a directory"

I gonna define the disk like new and create vg y lv's as new.

Maybe I'll get problem because some definition alreadry done..

Thanks all