HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

loadfile vgimport loaded but not wok

 
SOLVED
Go to solution
Aungshuman Paul
Regular Advisor

loadfile vgimport loaded but not wok

Can anyone help regarding following problem :

I boot the system in recovery shell mode then load necessary file including vgimport. But when we execute the vgimport command it shows the following error :
# loadfile vgimport
# vgimport
/sbin/sh: vgimport: not found

Aungshu
10 REPLIES
Prasanth V Aravind
Trusted Contributor

Re: loadfile vgimport loaded but not wok

try to give /usr/bin/vgimport

atul2701
Frequent Advisor

Re: loadfile vgimport loaded but not wok

correct path is /usr/sbin.
try /usr/sbin/vgimport
Atul Gupta
Aungshuman Paul
Regular Advisor

Re: loadfile vgimport loaded but not wok

# loadfile /usr/sbin/vgimport
ERROR: File: /usr/sbin/vgimport not found.
NOTE: Retrying loadfile command...
ERROR: File: /usr/sbin/vgimport not found.
NOTE:

Please suggest. During the time of loadfile it did not shows any error. and I also found the following output from the /sbin path :

# ls
awk fs init loadfile mkdir ramfs sync
bdf fs_type insf ls mknod reboot unlink
cat fsdaemondir ioinit lssf mksf rescan vgchange
chmod funzip ioscan lvchange mv rm vgimport
chown get_disk_layout kcshutdown lvlnboot pstat rmsf
exit_0 get_partition_info launch map_root_lv pvcreate sh
# pwd
/sbin

Aungshu
Aungshuman Paul
Regular Advisor

Re: loadfile vgimport loaded but not wok

And it also not work for path :

# loadfile /usr/bin/vgimport

ERROR: File: /usr/bin/vgimport not found.
NOTE: Retrying loadfile command...


Aungshuman Paul
Regular Advisor

Re: loadfile vgimport loaded but not wok

And all the not working command look like

lrwxr-xr-x 1 root sys 13 May 13 04:57 vgchange -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 May 13 04:57 vgimport -> ./lvm_wrapper

in the /sbin path.

Please suggest.

Burak Topal
Frequent Advisor

Re: loadfile vgimport loaded but not wok

Hi,

Try /usr/sbin/vgimport as atul said, not /usr/bin
R.O.
Esteemed Contributor
Solution

Re: loadfile vgimport loaded but not wok

Hi,

After mounting "/" file system, try:

loadfile lvm_wrapper pvck vgimport vgexport vgchange vgdisplay lvmcmd

Regards,
"When you look into an abyss, the abyss also looks into you"
Aungshuman Paul
Regular Advisor

Re: loadfile vgimport loaded but not wok

Thanks R.O its now working vgimport etc commnad. But now I cant load chroot :

# loadfile /chroot
ERROR: File: /chroot not found.
NOTE: Retrying loadfile command...
ERROR: File: /chroot not fo
R.O.
Esteemed Contributor

Re: loadfile vgimport loaded but not wok

Hi,

Take a look at this doc:

http://www.pbraun.nethence.com/doc/sysutils_hpux/hpux_lvm_recovery.html

Regards,
"When you look into an abyss, the abyss also looks into you"
Kanagaraj
Regular Advisor

Re: loadfile vgimport loaded but not wok

what is OS version?

If it is 11.31..

see below attached logs
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgcfgbackup -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgcfgrestore -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgchange -> ./lvm_wrapper
lr-xr-xr-x 1 root sys 13 Mar 9 2009 vgchgid -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgcreate -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgdisplay -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgexport -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgextend -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgimport -> ./lvm_wrapper
lr-xr-xr-x 1 root sys 13 Mar 9 2009 vgmodify -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgreduce -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgremove -> ./lvm_wrapper
lrwxr-xr-x 1 root sys 13 Mar 9 2009 vgscan -> ./lvm_wrapper
lr-xr-xr-x 1 root sys 13 Mar 9 2009 vgsync -> ./lvm_wrapper

All vg related commands are symbolic linked to /sbin/lvm_wrapper.

I think it will help you