- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /var corruption
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
Forums
Discussions
Discussions
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
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
04-20-2006 02:23 AM
04-20-2006 02:23 AM
I do have a fullbackup and an Installation/update/recovery cd.
Can these two help me recovery a healthy /var fs?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:26 AM
04-20-2006 02:26 AM
Re: /var corruption
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:26 AM
04-20-2006 02:26 AM
Re: /var corruption
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 02:30 AM
04-20-2006 02:30 AM
Re: /var corruption
All you need to do is bring the machine up in single-user mode. You may simply need to do an fsck on /var or you may run newfs and create a new filesystem, mount /var, and then restore. You then umount /var and reboot and you are fixed. In single-user mode, you need to execute the commands in /sbin because all of these (tar,pax,frecover) are statically linked. You can use /sbin/pax to restore tar, cpio, or pax images although you could mount /usr and then also have cpio itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 03:16 AM
04-20-2006 03:16 AM
Re: /var corruption
I have an fbackup.
The problem started when the EMS reported a a disk error and the server crashed. The disk with problem is in VG00. At the time there was no mirror disk.
I booted the server in single user mode and did the fsck -F vxfs -o full /dev/vg00/lvol8
could not stat.
The server was not booted again until this day. It complained about some files but it booted. I then made a mirror of vg00 and replaced the defective drive and resync'd both drives.
The tested the both drives and they boot ok, but when I tried to run swlist I got the error:
root:/>swlist
# Initializing...
# Contacting target "HPL-2000"...
ERROR: The expected depot or root does not exist at "/".
ERROR: There is currently no installed software on host "HPL-2000" at
location "/".
So, I believe that /var has some corrupted files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 03:24 AM
04-20-2006 03:24 AM
SolutionYou need to restore '/var' from a backup. WIthout the Installed Products Database held in '/var/adm/sw' your server is worthless in terms of any patching. It's not capable anymore.
I would boot up into single user mode; mount '/usr' and '/tmp' and 'newfs' '/var'. Then, use your 'frecover' to recovery the entire contents of the '/var' filesystem. I assume that you have a current backup taken at least after your last patch ('swinstall' and/or 'swremove') session.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 07:18 AM
04-20-2006 07:18 AM
Re: /var corruption
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2006 07:19 AM
04-20-2006 07:19 AM