Operating System - HP-UX
1752278 Members
4725 Online
108786 Solutions
New Discussion юеВ

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 10
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"