- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: moved /usr/lib
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2003 07:49 AM
тАО12-01-2003 07:49 AM
I accidentally moved /usr/lib to /usr/lib2!! Now I get the message when I run most commands :
# ln
crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000002
I have tried to set the SHLIB_PATH, which works, but chatr doesn't - so it doesn't help to add /usr/lib2 to the search path.
I have been trying to use the recovery cd to move the lib2 directory back to lib, but I need some instruction on how to do this.
So far, I can boot to my recovery cd where I can choose to load cp, mv, mount and other tools. After that I chroot_lvmdisk to get to my root directory but there isn't a /usr/lib2 available. How can I get this and once I copy it over how can I force these changes to take affect when I reboot???
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2003 07:55 AM
тАО12-01-2003 07:55 AM
Re: moved /usr/lib
# mv /usr/lib2 /usr/lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2003 07:56 AM
тАО12-01-2003 07:56 AM
Re: moved /usr/lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2003 07:58 AM
тАО12-01-2003 07:58 AM
Re: moved /usr/lib
mv /usr/lib2 /usr/lib
Good luck,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2003 08:59 AM
тАО12-01-2003 08:59 AM
Re: moved /usr/lib
#mount /usr
mount - Cannot open device /dev/vg00/lvol17: no such device or address
So I went to /dev/vg00 and lvol17 is there. I run fsck and and I get this :
#fsck
Can't open /dev/vg00/r1vol1, errono=6
can't open device /dev/vg00/lvol3
file system check failure, aborting ...
.
.
.
can't open device /dev/vg00/lvol9
file system check failure, aborting ...
Again everything appears to be there in the /dev/vg00 directory. I have tried changing permisions thinking maybe that would be the problem, but that doesn't change anything.
What would cause this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2003 09:02 AM
тАО12-01-2003 09:02 AM
Solutionvgchange -a y /dev/vg00
Then you can check them:
fsck -F vxfs /dev/vg00/usr (or whatever it's called)
Then mount it:
mount /usr
That should help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2003 09:08 AM
тАО12-01-2003 09:08 AM
Re: moved /usr/lib
Rachel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2003 09:17 AM
тАО12-01-2003 09:17 AM
Re: moved /usr/lib
Next, /sbin/fsck -F vxfs /dev/vg00/rlvol7 -- or whatever is appropriate for your filesystem/lvol.
Now, mount /usr
/sbin/mount -F vxfs /dev/vg00/lvol7 /usr