Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Disks and Files
Managing Disks
Chapter 6598
1. Reboot your system in single-user state.
2. If you already have a good current backup of the data in the now
corrupt file system, skip this step.
Only if you do not have such backup data and if those data are
critical, you may want to try to recover whatever part of the data
that may remain intact by attempting to back up the files on that file
system in your usual way.
Before you attempt any current backup, you need to be aware of two
things:
• When your backup program accesses the corrupt part of the file
system, your system will crash again. You will need to reboot
your system again to continue with the next step.
• There is no guarantee that all (or any) of your data on that file
system will be intact or recoverable. This is merely an attempt to
save as much as possible. That is, any data successfully backed
up in this step will be recoverable, but some or all of your data
may not allow for successful backup because of file corruption.
3. Immediately unmount the corrupted file system, if it is mounted.
4. You can now use the logical volume for swap space or raw data
storage, or use SAM or the newfs command to create a new file
system in the logical volume. This new file system will now match
the current reduced size of the logical volume.
5. If you have created a new file system on the logical volume, you can
now do one of the following:
• If you have a good prior backup (NOT the backup from step 2),
restore its contents. Because the new file system in the smaller
logical volume will be smaller than the original file system, you
may not have enough space to restore all your original files.
• If you do not have a good prior backup, attempt to restore as
many files as possible from any backup you made in step 2.
Again, there is no guarantee that complete data will be
recoverable from this backup.
• Use the new file system for creating and storing a new set of files
(not for trying to restore the original files).