- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to run fsck
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
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
тАО01-08-2007 04:06 PM
тАО01-08-2007 04:06 PM
Some of my file system got only in read mode.
but before these are in READ-WRITE mode.
so I want to get them back in RW mode.
I think i need to run fsck.
So please suggest me how to run fsck, this is redhat enterprise Linux server.
Should i use the following steps:
1. first unmount the file system.
2. run the command:
#fsck -y /dev/vg07/db2-mkbldrt01
or
#e2fsck -y /dev/vg07/db2-mkbldrt01
which command should i run?
3. mount the file system.
there are critical data in this file system,
Please suggest
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 04:31 PM
тАО01-08-2007 04:31 PM
SolutionYour steps seem fine, in HPUX i use fsck for when a FS woul not mount at boot time, for example.
fsck -y /dev/vg00/lvol4
1. unmount
2. run command
3. mount filesystem.
Also I hpe you have a backup just in case this doesn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 04:41 PM
тАО01-08-2007 04:41 PM
Re: how to run fsck
Please suggest which command should i use.
#fsck -y /dev/vg07/db2-mkbldrt01
or
#e2fsck -y /dev/vg07/db2-mkbldrt01
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 04:52 PM
тАО01-08-2007 04:52 PM
Re: how to run fsck
I would prefer to specify the file system type using -t option.
Beware of corruptions as fsck by default assumes ext2 file system.
# fsck -t ext3 /dev/vg07/db2-mkbldrt01
OR
# fsck.ext3 /dev/vg07/db2-mkbldrt01
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 05:08 PM
тАО01-08-2007 05:08 PM
Re: how to run fsck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 05:11 PM
тАО01-08-2007 05:11 PM
Re: how to run fsck
from the docs: (http://kbase.redhat.com/faq/FAQ_80_3434.shtm)
Note that you can also configure your system such that fsck on every boot.
For ext3 filesystems, the boot scripts do a quick check to see if the filesystem journal indicates the file system is clean. If the initial check passes no further checking is performed. Otherwise, the user is prompted to run a full fsck check.
You can force an automatic full check by changing the check interval using tune2fs (-c and/or -i). For example:
tune2fs -c 1 /dev/vg07/db2-mkbldrt01
The above command would tell the init scripts to run fsck on hda2 at every boot.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 10:32 PM
тАО01-08-2007 10:32 PM
Re: how to run fsck
Never run a fsck wihtout knowing the exct fsck version.
Because running incorrect version of fsck has damaged our entire server.
1.Identify the fs type.
2. Run fsck.
Regds
B.Ganesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 10:58 PM
тАО01-08-2007 10:58 PM
Re: how to run fsck
i used:
1. unmount the file system
2. #e2fsck -y /dev/vg07/db2
3. mount back the file system
Thanks