- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FSCK problems
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
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
01-19-2002 07:13 AM
01-19-2002 07:13 AM
FSCK problems
I reboot and if I do fsck again it will again do the same.
Is this normal or is there something with my disk. The system works fine but when I checked this command on another system it did not behave like this.
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2002 07:56 AM
01-19-2002 07:56 AM
Re: FSCK problems
On the other servers are they the same? are the disks the same? are the arrays the same?
During normal boot up what does fsck tell you?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2002 08:00 AM
01-19-2002 08:00 AM
Re: FSCK problems
Did you fsck the filesystem while it was mounted and being accessed?
Try booting up the system in single-user (hpux -is) or maintenance mode, subsequently perform an fsck on the LVs without mounting the filesystems.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2002 08:50 AM
01-19-2002 08:50 AM
Re: FSCK problems
I assume that this is your / filesystem. It is very important that you do a 'reboot -n' immediately after the fsck. Do not do simply a reboot or a shutdown. The idea is that in this case you do not want to flush the buffers to disk; that would simply corrupt the filesystem again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2002 08:59 AM
01-19-2002 08:59 AM
Re: FSCK problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2002 09:12 AM
01-19-2002 09:12 AM
Re: FSCK problems
In your case, unless you take the disk out and import it to another machine and then do an fsck, it will have to be mounted because it's the root filesystem. I doubt that you have a disk failure, it's just essential that you do a reboot -n and nothing else after the fsck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2002 10:41 AM
01-19-2002 10:41 AM
Re: FSCK problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2002 04:21 PM
01-19-2002 04:21 PM
Re: FSCK problems
Is your root filesystem mirrored? If it is, you can split the mirror, fsck the mirrored LV (eg. /dev/vg00/lvol1b) without mounting it. Then modify your /etc/fstab to mount / using /dev/vg00/lvol1b instead of /dev/vg00/lvol1. Subsequently perform a reboot -n. In this case, shutdown will also work.
If your root filesystem is not mirrored, then follow the instructions in this document to run a recovery shell using your SUPPORT CD:
http://us-support.external.hp.com/cki/bin/doc.pl/sid=2e3a56e617dd2dedb5/screen=ckiDisplayDocument?docId=200000047869320
Once you are in the recovery shell with the appropriate settings configured (indicated in the document), you can perform an fsck on the root filesystem LV (eg. /dev/vg00/lvol1).
Here, I have extracted the crucial steps from the guide for your convenience:
=================================================
Support# chroot_lvmdisk <-------- You type this
Enter the hardware path associated with the '/'(ROOT) file system
(example: 10/0.6.0 ) <-------- Your boot disk path should be listed
Is 10/0.6.0 the hardware path of the root/boot disk?[y|n|q]-y <-- if correct
**** Automated from here ****
/sbin/fs/hfs/fsck -c 0 -y /dev/rdsk/c0t6d0s1lvm
** /dev/rdsk/c0t6d0s1lvm <--- The SupportCD's path to your HFS /stand
** Last Mounted on /stand
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
55 files, 0 icont, 47805 used, 24 free (24 frags, 0 blocks)
***** MARKING FILE SYSTEM CLEAN *****
***** FILE SYSTEM WAS MODIFIED *****
Mounting c0t6d0s1lvm to the Support Tape's /ROOT directory...
/sbin/fs/vxfs/fsck -y /dev/rdsk/c0t6d0s2lvm <----- Normally your / (JFS)
log replay in progress
replay complete - marking super-block as CLEAN
/sbin/fs/vxfs/mount /dev/dsk/c0t6d0s2lvm /ROOT
/sbin/fs/hfs/mount /dev/dsk/c0t6d0s1lvm /ROOT/stand
loading /usr/sbin/chroot
x ./usr/sbin/chroot, 12288 bytes, 24 tape blocks
Enter 'cd /ROOT; chroot /ROOT /sbin/sh' at the shell prompt to chroot to
the customer's /(root) disk.
Support#: <------- If all goes well, it stops here.
=================================================
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 03:32 AM
01-21-2002 03:32 AM
Re: FSCK problems
For the same reason, you must use the *block* device i.e. /dev/vg00/lvol? (not rlvol?).
When it says to "reboot -n" you *must* do so *immediately*, i.e. *no* other commands between the end of the fsck and the "reboot -n".
The point is that fsck has just marked the filesystem clean, but because it is still mounted (because it can not be unmounted), an operation beween the fsck and "reboot -n" can mark it non-clean again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 03:40 AM
01-21-2002 03:40 AM
Re: FSCK problems
Do you do the *second* reboot also in single-user mode?
I.e. the sequence should be:
- Boot in single-user mode.
- fsck /dev/vg00/lvol? fsck *reports* and *fixes* errors and says to "reboot -n"
- *Immediately* do "reboot -n".
- Boot again in single-user mode.
- fsck /dev/vg00/lvol? should report *no* errors. Follow *exact* instructions as fsck gives them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 03:56 AM
01-21-2002 03:56 AM
Re: FSCK problems
I tried this on another similar box and it did not give any messages to reboot.
I will try booting in single user mode and do an fsck on lvol1. then boot multiuser and do an fsck -y again and see if it complains again
stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 04:14 AM
01-21-2002 04:14 AM
Re: FSCK problems
Yes, that is normal, especially if the fsck run *fixed* something.
> I tried this on another similar box and it did not give any messages to reboot.
Probably because on *that* system, nothing was fixed, so there was no need to reboot.