LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2010, 11:02 AM   #1
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Rep: Reputation: 31
fsck on an R/W filesystem


I've got a disk which is R/W. I understand it's highly advisable to mount it read only before commiting to a fsck, but in this case that might not be entirely possible, three qestions

1. What is likely to happen if I run fsck on an r/w system?
2. Is it possible?
3. Is it likely to break anything?

Thanks,
GB
 
Old 08-26-2010, 11:25 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,072
Blog Entries: 14

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
It is not advisable to mount it read only to fsck - it is advisable to unmount it completely. Run the fsck on the device not the mounted filesystem. (Use "df -h" to see what device is associated with the filesystem.)

What fsck will do depends much on what filesystem type you are running (Reiser? ext2? ext3? vxfs? something else?) but in general it can screw things up pretty badly if it is mounted r/w.
 
Old 08-26-2010, 11:28 AM   #3
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
It's a veritas disk running on some ancient solaris OS (5.9), I've actually got it up and running now though, but it's pretty knackered

Thanks anyway, I had a tinkering this might be the answer. Anyone ever done this and had much success then?
 
Old 08-26-2010, 03:30 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,072
Blog Entries: 14

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Do you have VMSA (usually in /opt/VRTSvmsa) on the server or VEA on a Windows machine? If so you might want to see what options those give you. We're running some old HP-UX and in VEA the "check filesystem" is greyed out for me but you might have a newer version that allows for checking (if any do). There a quite a few things that can be done on line if you're running Veritas Volume Manager in addition to Veritas Filesystem (e.g. adding new disk to the volume and evacuating data from the old one to the new one - might help if you suspect a disk issue).
 
Old 08-26-2010, 06:09 PM   #5
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
I actually got it working by moving the disks to a new server, not entirely sure why but it didn't require a manual fsck when I switched the disks over. Think it was my var partition that needed the fsck but thats no longer an issue. I guess I can resolve this, still sorta interested in what happens though. If this is such a dangerous thing to do why does fsck even give the option. I guess the effects would be dependant upon which files were fragmented (e.g if the contents of /tmp were fragmented and required an fsck and it was run on a read only partition I suspect it wouldn't have a noticable effect where as if it were /home it might...).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fsck failed for at least one filesystem (not /)... linux_2007_ Linux - General 2 01-25-2010 01:57 AM
Mainting a filesystem with FSCK Slick666 Linux - Server 1 02-08-2008 10:28 PM
fsck on root filesystem without reboot? Barx Linux - General 3 03-29-2005 04:55 AM
Repair a filesystem ...fsck is it??????? hrg Linux - General 3 07-24-2004 08:41 AM
fsck fails to mount filesystem GoatKing Linux - Software 6 01-26-2004 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration