Re: [CentOS] fsck mdraid root partition

2015-08-20 Thread Keith Keller
Apologies for the late reply; I only just saw this message today.

On 2015-08-17, Bowie Bailey  wrote:
> It shows as /dev/md/2, while it is called /dev/md2 if I boot into the OS.

It's possible that one is a symlink to the other.  IIRC the /dev/md2
naming style is somewhat deprecated.  If you can boot off of the current
/, you can check for sure.

> mdadm --assemble --scan /dev/md/2
>
> I assume it will assemble it.  Is it going to cause and problems 
> assembling it under a different name in order to run the fsck?

If it assembles, then it shouldn't cause any problems once you reboot.
Running fsck against the /dev/md/2 device should be fine.

--keith

-- 
kkel...@wombat.san-francisco.ca.us


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fsck mdraid root partition

2015-08-17 Thread Bowie Bailey
There are some errors on my root filesystem, so I need to fsck it. In 
order to do this while the filesystem is unmounted, I'm booting from the 
install disk.  However, since the filesystem is on an mdraid device, I'm 
not sure of the right way to get it assembled so I can check it.


If I do, mdadm --examine --scan, then I get this:

ARRAY /dev/md/2 metadata=...
(and others, but I'm only interested in md2 at this point)

It shows as /dev/md/2, while it is called /dev/md2 if I boot into the OS.

If I do this:

mdadm --assemble --scan /dev/md/2

I assume it will assemble it.  Is it going to cause and problems 
assembling it under a different name in order to run the fsck?


Should I rather force it to have the same name like this:

mdadm --assemble /dev/md2 /dev/sda1 /dev/sda2

if that will even work?

Thanks,

--
Bowie
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck - anyway to increase verbosity to show point in process

2013-04-10 Thread Santi Saez
El 09/04/13 20:41, Max Pyziur escribió:

> And there is no indication how much of the process has been completed
> (nothing like a %tage indicator), at least the way that I am running it.

Tip: if you have already launched "fsck" you can recover the progress 
bar sending SIGUSR1 signal, see this behavior in action:

http://www.youtube.com/watch?v=cS4eztFtS0U

SantiSaez
http://powerstack.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck - anyway to increase verbosity to show point in process

2013-04-09 Thread Max Pyziur
On Tue, 9 Apr 2013, m.r...@5-cent.us wrote:

> Max Pyziur wrote:
>>
>> Greetings,
>>
>> I'm running CentOS 5.x on one ancient but reasonably reliable machine:
> 
>> I am running some fsck's on some of the larger drives (750GB and 2TB) that
>> are used for backups. There is a verbosity flag (-V); but because of the
>> size of the drives along with slowness of the processor, the process is
>> taking a long time.
>>
>> And there is no indication how much of the process has been completed
>> (nothing like a %tage indicator), at least the way that I am running it.
>>
>> Is this expected, or is there some way of amping up the feedback?
>
> -C gives you nice warm fuzzies, something for you to watch as you fall
> asleep (it takes a *long* bloody while for big drives, he says from
> experience.)

Yes, I see. Thanks; and it is buried in the man page.


> mark


MP
p...@brama.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck - anyway to increase verbosity to show point in process

2013-04-09 Thread m . roth
Max Pyziur wrote:
>
> Greetings,
>
> I'm running CentOS 5.x on one ancient but reasonably reliable machine:

> I am running some fsck's on some of the larger drives (750GB and 2TB) that
> are used for backups. There is a verbosity flag (-V); but because of the
> size of the drives along with slowness of the processor, the process is
> taking a long time.
>
> And there is no indication how much of the process has been completed
> (nothing like a %tage indicator), at least the way that I am running it.
>
> Is this expected, or is there some way of amping up the feedback?

-C gives you nice warm fuzzies, something for you to watch as you fall
asleep (it takes a *long* bloody while for big drives, he says from
experience.)

 mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fsck - anyway to increase verbosity to show point in process

2013-04-09 Thread Max Pyziur

Greetings,

I'm running CentOS 5.x on one ancient but reasonably reliable machine:
root@leeloo ~> uname -a
Linux leeloo 2.6.18-308.24.1.el5 #1 SMP Tue Dec 4 17:42:30 EST 2012 i686 
i686 i386 GNU/Linux
root@leeloo ~> cat /proc/cpu
cat: /proc/cpu: No such file or directory
root@leeloo ~> cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 11
model name  : Intel(R) Pentium(R) III CPU family  1400MHz
..

I am running some fsck's on some of the larger drives (750GB and 2TB) that 
are used for backups. There is a verbosity flag (-V); but because of the 
size of the drives along with slowness of the processor, the process is 
taking a long time.

And there is no indication how much of the process has been completed 
(nothing like a %tage indicator), at least the way that I am running it.

Is this expected, or is there some way of amping up the feedback?

Much thanks,

Max Pyziur
p...@brama.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck -fvy ?

2012-09-30 Thread hadi motamedi
On 9/29/12, Andy Smith  wrote:
> On 29 September 2012 10:45, Hadi Motamedi  wrote:
>
>>
>>
>>
>> Dear All
>> My server got inconsistency from sudden power cut that I fixed it with
>> #fsck -fvy /dev/hda at the maintenance prompt . But after reboot, one of
>> the installed applications is preventing it from booting up (as can be
>> seen
>> in the boot up process list). Can you please let me know how can I remove
>> it from the boot up list to reach the root user prompt and then
>> re-install
>> it again ?
>> Thank you
>>
>>
> Hi.
> Boot up in single user mode
> Or press "i" when prompted during early boot stages for interactive boot
> and select no when prompted to start your application.
> Then "chkconfig  off" to permanently turn it off until you can
> fix it.
>
> Regards,
>   Andy.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
Thank you very much for your reply. I did it and it solved my problem.
Thank you again
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck -fvy ?

2012-09-29 Thread Andy Smith
On 29 September 2012 10:45, Hadi Motamedi  wrote:

>
>
>
> Dear All
> My server got inconsistency from sudden power cut that I fixed it with
> #fsck -fvy /dev/hda at the maintenance prompt . But after reboot, one of
> the installed applications is preventing it from booting up (as can be seen
> in the boot up process list). Can you please let me know how can I remove
> it from the boot up list to reach the root user prompt and then re-install
> it again ?
> Thank you
>
>
Hi.
Boot up in single user mode
Or press "i" when prompted during early boot stages for interactive boot
and select no when prompted to start your application.
Then "chkconfig  off" to permanently turn it off until you can
fix it.

Regards,
  Andy.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fsck -fvy ?

2012-09-29 Thread Hadi Motamedi



Dear All
My server got inconsistency from sudden power cut that I fixed it with #fsck 
-fvy /dev/hda at the maintenance prompt . But after reboot, one of the 
installed applications is preventing it from booting up (as can be seen in the 
boot up process list). Can you please let me know how can I remove it from the 
boot up list to reach the root user prompt and then re-install it again ?
Thank you


  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK on mounted filesystem (LVM/DRBD)?

2012-04-12 Thread Devin Reade
--On Thursday, April 12, 2012 10:38:56 PM +0200 Dennis Jacobfeuerborn
 wrote:

> On 04/12/2012 08:17 PM, Devin Reade wrote:

>> However, if you're using pacemaker the RA (IIRC) has the option
>> of doing an 'fsck -p' before mounting. [...]
> 
> "doing an 'fsck -p' before mounting" still means you have to take the fs
> offline though so this doesn't really change anything.

Correct; it still has to be offline.  I was mentioning
it as a possible alternative for the OP's use case if this is
more than just a "one of".  On re-reading the original message,
though, it sounds like it might just be bare DRBD rather than
in combination with pacemaker.

Devin

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK on mounted filesystem (LVM/DRBD)?

2012-04-12 Thread Dennis Jacobfeuerborn
On 04/12/2012 08:17 PM, Devin Reade wrote:
> --On Thursday, April 12, 2012 03:17:37 PM +0200 Dennis Jacobfeuerborn
>  wrote:
> 
>> On 04/12/2012 09:50 AM, Rafał Radecki wrote:
>>>
>>> I have two running servers (drbd primary, drbd secondary). When there is
>>> a problem with one of them we switch to the second one. [...]
>>>
>>> Is there a way to make fsck -a on mounted filesystem for ext3?
>>
>> No. None of the popular Filesystems support online fsck.
> 
> However, if you're using pacemaker the RA (IIRC) has the option
> of doing an 'fsck -p' before mounting. OTOH, since an fsck has
> no predicatable run time limit, a long fsck might cause a 
> 'failed start' condition, causing a cascade from one node to 
> another to another ...
> 
> (more details on this mechanism are probably more appropriate to the 
> applicable HA lists)

"doing an 'fsck -p' before mounting" still means you have to take the fs
offline though so this doesn't really change anything.

Regards,
  Dennis
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK on mounted filesystem (LVM/DRBD)?

2012-04-12 Thread Devin Reade
--On Thursday, April 12, 2012 03:17:37 PM +0200 Dennis Jacobfeuerborn
 wrote:

> On 04/12/2012 09:50 AM, Rafał Radecki wrote:
>> 
>> I have two running servers (drbd primary, drbd secondary). When there is
>> a problem with one of them we switch to the second one. [...]
>> 
>> Is there a way to make fsck -a on mounted filesystem for ext3?
> 
> No. None of the popular Filesystems support online fsck.

However, if you're using pacemaker the RA (IIRC) has the option
of doing an 'fsck -p' before mounting. OTOH, since an fsck has
no predicatable run time limit, a long fsck might cause a 
'failed start' condition, causing a cascade from one node to 
another to another ...

(more details on this mechanism are probably more appropriate to the 
applicable HA lists)

Devin

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK on mounted filesystem (LVM/DRBD)?

2012-04-12 Thread Dennis Jacobfeuerborn
On 04/12/2012 09:50 AM, Rafał Radecki wrote:
> Hi All.
> 
> I have two running servers (drbd primary, drbd secondary). When there is a
> problem with one of them we switch to the second one. Currently on the
> /dev/drbd0 (it has /xxx ext3 filesystem directly on it) we have some
> filesystem problems (after fsck -n). I would like to correct these errors
> but the filesystem should be unmounted first (I would like to avoid it if
> possible).
> 
> Is there a way to make fsck -a on mounted filesystem for ext3? My setup is:

No. None of the popular Filesystems support online fsck.

Regards,
  Dennis
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] FSCK on mounted filesystem (LVM/DRBD)?

2012-04-12 Thread Rafał Radecki
Hi All.

I have two running servers (drbd primary, drbd secondary). When there is a
problem with one of them we switch to the second one. Currently on the
/dev/drbd0 (it has /xxx ext3 filesystem directly on it) we have some
filesystem problems (after fsck -n). I would like to correct these errors
but the filesystem should be unmounted first (I would like to avoid it if
possible).

Is there a way to make fsck -a on mounted filesystem for ext3? My setup is:

ext3 filesystem (problems)
^
DRBD
^
LVS
^
RAID

Any ideas?

Best regards,
Rafal.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck

2012-01-27 Thread Les Mikesell
On Fri, Jan 27, 2012 at 2:21 PM, Johnny Hughes  wrote:
>>
> The reason it is not the default in CentOS is because it is not the
> default in RHEL.
>
> As to why it is not the default in RHEL, I can't say for sure ... BUT
> ... -y (auto answer yes) is more dangerous that -p (preen).  The
> definition of preen is "to automatically fix any filesystem problems
> that can be safely fixed without human intervention".  When you do -y
> instead, it answers yes to everything ... including things that can't be
> fixed "without human intervention".  That is not necessarily the safest
> thing to do.  If you choose to do this, make sure you have good backups :D
>

I do sort-of understand the difference between the -p and -y - and the
CentOS position on the subject.  But seriously, how many people are
going to be able to recover a filesystem better than fsck?  And you
need the backups anyway - the disk might really be dead.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck

2012-01-27 Thread Johnny Hughes
On 01/27/2012 11:19 AM, Les Mikesell wrote:
> On Fri, Jan 27, 2012 at 10:43 AM, Johnny Hughes  wrote:
>> On 01/25/2012 10:46 AM, Steve Clark wrote:
>>> Hello,
>>>
>>> We are running units in the field that are headless. Sometimes we get units 
>>> returned
>>> that we when we boot them up have some type of filesystem inconsistency 
>>> that the default preen
>>> doesn't fix but running fsck -y does.
>>>
>>> I want to eliminate the -p (preen option) and always do the -y option 
>>> anyone know where
>>> to make this change?
>>>
>>> Thanks,
>>>
>> You can create a file called:
>>
>> /etc/sysconfig/autofsck
>>
>> inside there you need the following lines:
>>
>> AUTOFSCK_DEF_CHECK=yes
>> AUTOFSCK_OPT="-y"
>>
>> That should take away all options except "-f" and use the ones you put
>> in AUTOFSCK_OPT.
> Thanks!  Is that something we should have found in the documentation?
>  I've always wondered why it wasn't the default.  It is always painful
> when headless/remote machines fail to boot because of this, and the
> odds of anyone knowing more than fsck does about repairing a file
> system are essentially zero.
>

The reason it is not the default in CentOS is because it is not the
default in RHEL.

As to why it is not the default in RHEL, I can't say for sure ... BUT
... -y (auto answer yes) is more dangerous that -p (preen).  The
definition of preen is "to automatically fix any filesystem problems
that can be safely fixed without human intervention".  When you do -y
instead, it answers yes to everything ... including things that can't be
fixed "without human intervention".  That is not necessarily the safest
thing to do.  If you choose to do this, make sure you have good backups :D



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck

2012-01-27 Thread Steve Clark
On 01/27/2012 12:19 PM, Les Mikesell wrote:
> On Fri, Jan 27, 2012 at 10:43 AM, Johnny Hughes  wrote:
>> On 01/25/2012 10:46 AM, Steve Clark wrote:
>>> Hello,
>>>
>>> We are running units in the field that are headless. Sometimes we get units 
>>> returned
>>> that we when we boot them up have some type of filesystem inconsistency 
>>> that the default preen
>>> doesn't fix but running fsck -y does.
>>>
>>> I want to eliminate the -p (preen option) and always do the -y option 
>>> anyone know where
>>> to make this change?
>>>
>>> Thanks,
>>>
>> You can create a file called:
>>
>> /etc/sysconfig/autofsck
>>
>> inside there you need the following lines:
>>
>> AUTOFSCK_DEF_CHECK=yes
>> AUTOFSCK_OPT="-y"
>>
>> That should take away all options except "-f" and use the ones you put
>> in AUTOFSCK_OPT.
> Thanks!  Is that something we should have found in the documentation?
>   I've always wondered why it wasn't the default.  It is always painful
> when headless/remote machines fail to boot because of this, and the
> odds of anyone knowing more than fsck does about repairing a file
> system are essentially zero.
This is so true! I had this same argument back in the '90 with a NCR developer 
when their Towers did the same thing,
and we using them as message switches in the public safety arena.

-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.cl...@netwolves.com
http://www.netwolves.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck

2012-01-27 Thread Steve Clark
On 01/27/2012 11:43 AM, Johnny Hughes wrote:
> On 01/25/2012 10:46 AM, Steve Clark wrote:
>> Hello,
>>
>> We are running units in the field that are headless. Sometimes we get units 
>> returned
>> that we when we boot them up have some type of filesystem inconsistency that 
>> the default preen
>> doesn't fix but running fsck -y does.
>>
>> I want to eliminate the -p (preen option) and always do the -y option anyone 
>> know where
>> to make this change?
>>
>> Thanks,
>>
> You can create a file called:
>
> /etc/sysconfig/autofsck
>
> inside there you need the following lines:
>
> AUTOFSCK_DEF_CHECK=yes
> AUTOFSCK_OPT="-y"
>
> That should take away all options except "-f" and use the ones you put
> in AUTOFSCK_OPT.
>
Thanks much for the info.


-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.cl...@netwolves.com
http://www.netwolves.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck

2012-01-27 Thread Les Mikesell
On Fri, Jan 27, 2012 at 10:43 AM, Johnny Hughes  wrote:
> On 01/25/2012 10:46 AM, Steve Clark wrote:
>> Hello,
>>
>> We are running units in the field that are headless. Sometimes we get units 
>> returned
>> that we when we boot them up have some type of filesystem inconsistency that 
>> the default preen
>> doesn't fix but running fsck -y does.
>>
>> I want to eliminate the -p (preen option) and always do the -y option anyone 
>> know where
>> to make this change?
>>
>> Thanks,
>>
> You can create a file called:
>
> /etc/sysconfig/autofsck
>
> inside there you need the following lines:
>
> AUTOFSCK_DEF_CHECK=yes
> AUTOFSCK_OPT="-y"
>
> That should take away all options except "-f" and use the ones you put
> in AUTOFSCK_OPT.

Thanks!  Is that something we should have found in the documentation?
 I've always wondered why it wasn't the default.  It is always painful
when headless/remote machines fail to boot because of this, and the
odds of anyone knowing more than fsck does about repairing a file
system are essentially zero.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck

2012-01-27 Thread Johnny Hughes
On 01/25/2012 10:46 AM, Steve Clark wrote:
> Hello,
>
> We are running units in the field that are headless. Sometimes we get units 
> returned
> that we when we boot them up have some type of filesystem inconsistency that 
> the default preen
> doesn't fix but running fsck -y does.
>
> I want to eliminate the -p (preen option) and always do the -y option anyone 
> know where
> to make this change?
>
> Thanks,
>
You can create a file called:

/etc/sysconfig/autofsck

inside there you need the following lines:

AUTOFSCK_DEF_CHECK=yes
AUTOFSCK_OPT="-y"

That should take away all options except "-f" and use the ones you put
in AUTOFSCK_OPT.



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fsck

2012-01-25 Thread Steve Clark
Hello,

We are running units in the field that are headless. Sometimes we get units 
returned
that we when we boot them up have some type of filesystem inconsistency that 
the default preen
doesn't fix but running fsck -y does.

I want to eliminate the -p (preen option) and always do the -y option anyone 
know where
to make this change?

Thanks,

-- 
Stephen Clark
*NetWolves*
Director of Technology
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.cl...@netwolves.com
http://www.netwolves.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck - and there was much rejoicing

2010-12-01 Thread m . roth
Lamar Owen wrote:
> On Wednesday, December 01, 2010 02:01:35 pm m.r...@5-cent.us wrote:
>> Looks like the fsck bug has been stomped! I did a 960G drive this
>> morning,
>> and I'm 90% of the way through a 1.4T drive, both of which have *lots*
>> of
>> files and hard links, and it has *not* hung at 70.1%, and is running at
>> reasonable speed.
>
> Hey, let us know how long that 1.4T fsck takes if you don't mind.

Sure - I think it was an hour, or an hour and a quarter, but I may be
misremembering - it could have been before lunch, which would make it
about 2.25 hrs.

  mark


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck - and there was much rejoicing

2010-12-01 Thread Lamar Owen
On Wednesday, December 01, 2010 02:01:35 pm m.r...@5-cent.us wrote:
> Looks like the fsck bug has been stomped! I did a 960G drive this morning,
> and I'm 90% of the way through a 1.4T drive, both of which have *lots* of
> files and hard links, and it has *not* hung at 70.1%, and is running at
> reasonable speed.

Hey, let us know how long that 1.4T fsck takes if you don't mind.  Longwinded 
e2fsck's are a bane on reboot times on critical VM's, and I have a number of 
VM's with 2TB ext3 filesystems, some of which haven't had an fsck in. well, 
too long. 

And I'll echo the kudos to the intrepid bug-fixers.  Long and interminable 
e2fsck's have been with us a long time.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fsck - and there was much rejoicing

2010-12-01 Thread m . roth
Looks like the fsck bug has been stomped! I did a 960G drive this morning,
and I'm 90% of the way through a 1.4T drive, both of which have *lots* of
files and hard links, and it has *not* hung at 70.1%, and is running at
reasonable speed.

Thanks to the folks who got this one. I *really* needed to do this, esp.
to our backup drives.

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Fsck on mdraid array - SOLVED

2010-07-23 Thread Jussi Hirvi
Hei,

Ok, as many of you pointed out, the raid arrays did not start 
automatically on "linux rescue" boot (when not mounting the arrays).

I followed Mogens' advice: I let linux rescue mount the arrays, then 
checked /etc/mtab and unmounted everything. After that fsck run ok.

(Turned out the filesystems were ok, so my problem must lie elsewhere.)

- Jussi

On 22.7.2010 11.54, Mogens Kjaer wrote:
> You could try to let the rescue dvd mount the partitions.
>
> Then you can umount them and fsck.
>
> I don't think that the rescue disk assembles the RAID partitions
> unless they are going to be mounted.
>
> Mogens
>


-- 
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hi...@greenspot.fi * http://www.greenspot.fi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Fsck on mdraid array

2010-07-22 Thread Mogens Kjaer
On 07/22/2010 10:38 AM, Jussi Hirvi wrote:
...
> I still don't know why fsck from the rescue dvd does not work.

You could try to let the rescue dvd mount the partitions.

Then you can umount them and fsck.

I don't think that the rescue disk assembles the RAID partitions
unless they are going to be mounted.

Mogens

-- 
Mogens Kjaer, m...@lemo.dk
http://www.lemo.dk
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Fsck on mdraid array

2010-07-22 Thread Kay Diederichs
Jussi Hirvi schrieb:
> Something seems to be wrong with my file systems, and I want to fsck 
> everything. But I cannot.
> 
> The setup consists of 2 hds, carrying 3 raid1 (ext3) file systems (boot, 
> /, swap). OS is up-to-date CentOS 5.
> 
> So I boot from CentOS 5.3 dvd in rescue mode, do not mount the file 
> systems, and try to run
>   fsck -y /dev/md0
>   fsck -y /dev/md1
>   fsck -y /dev/md2

you should check, using "cat /proc/mdstat ", whether the raid devices
were found and started.
If not, you could do it manually, e.g.
mdadm /dev/md0 --assemble /dev/sdaX /dev/sdbY
where the disk (e.g. a and b) and partition (e.g. X and Y) names need to
be filled in.
There's also mdadm --examine /dev/sdaX , and of course fdisk -l /dev/sda

Once the devices appear correctly in /proc/mdstat, you should be able to
fsck them.

HTH,

Kay

> 
> For each try I get an error message: "Superblock could not be found..." 
> "The device does not seem to contain a valid ext2 filesystem..."
> 
> Well, of course not, the filesystem is ext3, not ext2.
> 
> I also tried fsck.ext3, but the error messages stay the same.
> 
> So, how could I fsck these arrays?
> 
> - Jussi
> 

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Fsck on mdraid array

2010-07-22 Thread Jussi Hirvi
> Are you using lvm on top of the mdraid?
>
> If so you need to fsck the lvs not the mds.

No lvm's.

I can boot the raid system, and
cat /proc/mdstat
shows clean arrays.

The automatic fsck reported problems a while ago, and corrected them. 
When I now try to run certain rsync script, I get kernel panic. I 
suspect bad blocks, and/or filesystem errors.

I still don't know why fsck from the rescue dvd does not work.

- Jussi

-- 
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hi...@greenspot.fi * http://www.greenspot.fi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Fsck on mdraid array

2010-07-21 Thread Gordon Messmer
On 07/21/2010 09:12 AM, Jussi Hirvi wrote:
>
> So I boot from CentOS 5.3 dvd in rescue mode, do not mount the file
> systems, and try to run
>   fsck -y /dev/md0
>   fsck -y /dev/md1
>   fsck -y /dev/md2
>
> For each try I get an error message: "Superblock could not be found..."
> "The device does not seem to contain a valid ext2 filesystem..."

Perhaps they weren't started automatically?  Try running "mdadm -IRs" 
and then look at the contents of /proc/mdstat and the output of 'dmesg' 
for more information.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Fsck on mdraid array

2010-07-21 Thread Ross Walker
On Jul 21, 2010, at 12:12 PM, Jussi Hirvi  wrote:

> Something seems to be wrong with my file systems, and I want to fsck 
> everything. But I cannot.
> 
> The setup consists of 2 hds, carrying 3 raid1 (ext3) file systems (boot, 
> /, swap). OS is up-to-date CentOS 5.
> 
> So I boot from CentOS 5.3 dvd in rescue mode, do not mount the file 
> systems, and try to run
>fsck -y /dev/md0
>fsck -y /dev/md1
>fsck -y /dev/md2
> 
> For each try I get an error message: "Superblock could not be found..." 
> "The device does not seem to contain a valid ext2 filesystem..."
> 
> Well, of course not, the filesystem is ext3, not ext2.
> 
> I also tried fsck.ext3, but the error messages stay the same.
> 
> So, how could I fsck these arrays?

Are you using lvm on top of the mdraid?

If so you need to fsck the lvs not the mds.

-Ross

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Fsck on mdraid array

2010-07-21 Thread Arun Khan
On Wed, Jul 21, 2010 at 9:42 PM, Jussi Hirvi  wrote:
> Something seems to be wrong with my file systems, and I want to fsck
> everything. But I cannot.
>
> The setup consists of 2 hds, carrying 3 raid1 (ext3) file systems (boot,
> /, swap). OS is up-to-date CentOS 5.
>
> So I boot from CentOS 5.3 dvd in rescue mode, do not mount the file
> systems, and try to run
>        fsck -y /dev/md0
>        fsck -y /dev/md1
>        fsck -y /dev/md2
>
> For each try I get an error message: "Superblock could not be found..."
> "The device does not seem to contain a valid ext2 filesystem..."

ext2 is the base of the journaling ext3 FS.

I  would suggest you use TestDisk
 and see if you can recover
your filesystem.
The tool is powerful.  I have been able to recover disk partitions and
the filesystems within when all other tools reported "no disk
partition" on the HDD.

Good luck.
-- Arun Khan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Fsck on mdraid array

2010-07-21 Thread Jussi Hirvi
Something seems to be wrong with my file systems, and I want to fsck 
everything. But I cannot.

The setup consists of 2 hds, carrying 3 raid1 (ext3) file systems (boot, 
/, swap). OS is up-to-date CentOS 5.

So I boot from CentOS 5.3 dvd in rescue mode, do not mount the file 
systems, and try to run
fsck -y /dev/md0
fsck -y /dev/md1
fsck -y /dev/md2

For each try I get an error message: "Superblock could not be found..." 
"The device does not seem to contain a valid ext2 filesystem..."

Well, of course not, the filesystem is ext3, not ext2.

I also tried fsck.ext3, but the error messages stay the same.

So, how could I fsck these arrays?

- Jussi

-- 
Jussi Hirvi * Green Spot
Topeliuksenkatu 15 C * 00250 Helsinki * Finland
Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms)
jussi.hi...@greenspot.fi * http://www.greenspot.fi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-23 Thread Todd Denniston
m.r...@5-cent.us wrote, On 03/23/2010 09:49 AM:
>> sync wrote:
>>> Thanks for all replies .
>>>
>>> Today, I did the following things,and also met the other errror message:
> 
>>> Then,  reboot the server and then boot it from the hard disk.
>>>
>>> This time, the screen came up with these:
>>>
>>> Checking root filesystem:
>>> --
>>> EXT3-fs error (device dm-0) :
>>> ext3_get_inode_loc: unable to read  inode block -inode=7473432,
>>> block=14942282
> 
>>> It is obvious that the fsck command maybe not to use .
>>>
>>> What could i do now ?
>>>
>>>  Maybe it is the only method to reinstall the CentOS operating system.
>>> isn't it?
>> That looks like you either have a physically bad hard disk, or
>> directory/inode corruption in the entry needed to load fsck.  Try running
> 
> Looks to me as though you definitely have a hard drive going bad. The
> thing that says that to me is "unable to read", not "error reading". I'd
> reboot from a DVD with linux rescue, do *not* mount the filesystems, and
> do an fsck -c (and any other options) on all the partitions that are
> formatted. This will check for bad blocks. If there's only a few, say, 1,
> or 10, note how many of them there are, and let it take its default to
> mark, and then fix everything else. If there's a *bunch* of them (100+),
> you need a new hard disk, now.
> 
> mark "done this too much recently"

Side question: is there encryption in use on the volumes?

And assuming you fsck ... considering  "Checking root filesystem" is where the 
error shows up, I
would be

a) reading `man rpm`
and
b) running some variation of
for i in `all the packages installed`; \
do \
  echo "looking at $i"; \
  rpm -V $i;\
done > howbadismysystem.txt 2>&1

or

rpm -Va > confusinghowbadismysystem.txt 2>&1


and look for things that are not config files that have changed.
of course on CentOS 5.x prelinking makes a mess of things.

And then there is the implicit assumption that the rpm db was not one of the 
things that got
hammered. :)

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-23 Thread m . roth
> sync wrote:
>> Thanks for all replies .
>>
>> Today, I did the following things,and also met the other errror message:

>> Then,  reboot the server and then boot it from the hard disk.
>>
>> This time, the screen came up with these:
>>
>> Checking root filesystem:
>> --
>> EXT3-fs error (device dm-0) :
>> ext3_get_inode_loc: unable to read  inode block -inode=7473432,
>> block=14942282

>> It is obvious that the fsck command maybe not to use .
>>
>> What could i do now ?
>>
>>  Maybe it is the only method to reinstall the CentOS operating system.
>> isn't it?
>
> That looks like you either have a physically bad hard disk, or
> directory/inode corruption in the entry needed to load fsck.  Try running

Looks to me as though you definitely have a hard drive going bad. The
thing that says that to me is "unable to read", not "error reading". I'd
reboot from a DVD with linux rescue, do *not* mount the filesystems, and
do an fsck -c (and any other options) on all the partitions that are
formatted. This will check for bad blocks. If there's only a few, say, 1,
or 10, note how many of them there are, and let it take its default to
mark, and then fix everything else. If there's a *bunch* of them (100+),
you need a new hard disk, now.

mark "done this too much recently"

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-23 Thread Les Mikesell
sync wrote:
> Thanks for all replies .
> 
> Today, I did the following things,and also met the other errror message:
> 
> First, I used the CentOS 4.6 DVD  to boot for the linux rescue and then 
> i copy  all data to the another server
> 
> Then,  reboot the server and then boot it from the hard disk.
> 
> This time, the screen came up with these:
> 
> Checking root filesystem:
> --
> EXT3-fs error (device dm-0) :
> ext3_get_inode_loc: unable to read  inode block -inode=7473432, 
> block=14942282
> 
> fsck: error while loading shard libraries: libuuid.so.1:cannot open 
> shared object file:
> Input/Output error:
> 
> *** An error occured during the file system check.
> *** Droping you to a shell; the system will reboot
> *** when you leave the shell.
> Give root password for maintenance
> (or type Control-D to continue)
> 
> --
> 
> It is obvious that the fsck command maybe not to use .
> 
> What could i do now ?
> 
>  Maybe it is the only method to reinstall the CentOS operating system. 
> isn't it?

That looks like you either have a physically bad hard disk, or directory/inode 
corruption in the entry needed to load fsck.  Try running 'dmesg' and look for 
error messages about accessing the disk device.  If the disk is physically OK, 
you might be able to run fsck from the rescue dvd boot.  In any case, if you 
were able to copy off any important data, you might be better off to re-install 
(and perhaps move to 5.x).

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-23 Thread sync
Thanks for all replies .

Today, I did the following things,and also met the other errror message:

First, I used the CentOS 4.6 DVD  to boot for the linux rescue and then i
copy  all data to the another server

Then,  reboot the server and then boot it from the hard disk.

This time, the screen came up with these:

Checking root filesystem:
--
EXT3-fs error (device dm-0) :
ext3_get_inode_loc: unable to read  inode block -inode=7473432,
block=14942282

fsck: error while loading shard libraries: libuuid.so.1:cannot open shared
object file:
Input/Output error:

*** An error occured during the file system check.
*** Droping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue)

--

It is obvious that the fsck command maybe not to use .

What could i do now ?

 Maybe it is the only method to reinstall the CentOS operating system. isn't
it?





On Tue, Mar 23, 2010 at 10:24 AM, Les Mikesell wrote:

> sync wrote:
> > Well , Thanks for your suggestions.
> >
> > 1.Which kind of file system is being used on the volume having trouble?
> >  A:  it uses the ext2fs filesystem on CentOS  4.6 x86_64
> >
> > 2.Do you have backups?
> > A: that server is used to backup other servers data , so itself  has not
> > any backups
> >
> > 3.Is the volume small enough and do you trust yourself enough with dd to
> > duplicate it off to a
> > USB|firewire|esata disk? (now THIS _is_ risky. :)
> >
> >
> > 4.have you read `man fsck` to see why it was being suggested to run it
> > WITHOUT the a or p options?
> > A: Yeah ~ I have read that .  In particular ,  "-p" options ,. This
> > option is mainly provided for those sysadmins
> > who don't want to repartition the root system to be small and compact(
> > which is really the right solution)
>
> You are either going to have to run fsck and answer 'y' to whatever it
> suggests
> or learn more than it knows about fixing filesystems.
>
> --
>   Les Mikesell
>lesmikes...@gmail.com
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-22 Thread Robert Nichols
On 03/22/2010 08:33 PM, sync wrote:
> Well , Thanks for your suggestions.
>
> 1.Which kind of file system is being used on the volume having trouble?
>   A:  it uses the ext2fs filesystem on CentOS  4.6 x86_64
>
> 2.Do you have backups?
> A: that server is used to backup other servers data , so itself  has not
> any backups
>
> 3.Is the volume small enough and do you trust yourself enough with dd to
> duplicate it off to a
> USB|firewire|esata disk? (now THIS _is_ risky. :)
>
>
> 4.have you read `man fsck` to see why it was being suggested to run it
> WITHOUT the a or p options?
> A: Yeah ~ I have read that .  In particular , "-p" options ,. This
> option is mainly provided for those sysadmins
> who don't want to repartition the root system to be small and compact(
> which is really the right solution)

You need to look more closely at the manpage.  That comment is for the
"-P" (capital P) option, not the "-p" (lower case) option.  The latter
is not an option to 'fsck' itself but is passed down to 'fsck.ext2',
where it has an entirely different meaning.

-- 
Bob Nichols "NOSPAM" is really part of my email address.
 Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-22 Thread Les Mikesell
sync wrote:
> Well , Thanks for your suggestions.
> 
> 1.Which kind of file system is being used on the volume having trouble?
>  A:  it uses the ext2fs filesystem on CentOS  4.6 x86_64
> 
> 2.Do you have backups?
> A: that server is used to backup other servers data , so itself  has not 
> any backups
> 
> 3.Is the volume small enough and do you trust yourself enough with dd to 
> duplicate it off to a
> USB|firewire|esata disk? (now THIS _is_ risky. :)
> 
> 
> 4.have you read `man fsck` to see why it was being suggested to run it 
> WITHOUT the a or p options?
> A: Yeah ~ I have read that .  In particular ,  "-p" options ,. This 
> option is mainly provided for those sysadmins
> who don't want to repartition the root system to be small and compact( 
> which is really the right solution)

You are either going to have to run fsck and answer 'y' to whatever it suggests 
or learn more than it knows about fixing filesystems.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-22 Thread sync
Well , Thanks for your suggestions.

1.Which kind of file system is being used on the volume having trouble?
 A:  it uses the ext2fs filesystem on CentOS  4.6 x86_64

2.Do you have backups?
A: that server is used to backup other servers data , so itself  has not any
backups

3.Is the volume small enough and do you trust yourself enough with dd to
duplicate it off to a
USB|firewire|esata disk? (now THIS _is_ risky. :)


4.have you read `man fsck` to see why it was being suggested to run it
WITHOUT the a or p options?
A: Yeah ~ I have read that .  In particular ,  "-p" options ,. This option
is mainly provided for those sysadmins
who don't want to repartition the root system to be small and compact( which
is really the right solution)






On Mon, Mar 22, 2010 at 11:50 PM, Todd Denniston <
todd.dennis...@tsb.cranrdte.navy.mil> wrote:

> sync wrote, On 03/22/2010 05:11 AM:
> > Thanks  for all reply...
> >
> >
>
> A) as Nicolas HINTED please read the _text_ that follows "Guidelines for
> CentOS Mailing List posts" at
> http://www.centos.org/modules/tinycontent/index.php?id=16
>
> B) as time permits read the links in that section, I think the ones some of
> us want you to read are:
> http://www.caliburn.nl/topposting.html
> and a couple of supplementals:
> http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> or
> http://en.wikipedia.org/wiki/Posting_style#Bottom-posting
>
>
> > Because the boss don't let me do that .
> > He said that would be dangerous and it would destroy all data in  the
>  hard
> > disk
> >
>
> What did the boss say would "be dangerous and ... would destroy all data"
> i.e. what command and options would the boss not let you run?
>
> It is a bit hard to comment on that which is not here.
>
> Is the boss more qualified to be administrating the machine in critical
> times like this than you**?
> If so, then it is most likely time to hand him the keyboard and tell him he
> gets to keep the bits
> that are left intact (both before he starts typing and after).
> Will there be someone who you both trust to work on the machine in this
> state coming into the office
> soon?
>
>
> I would expect that anyone who is willing to help you over email would want
> at least the following
> questions answered:
> Which kind of file system is being used on the volume having trouble?
> Do you have backups?
> Is the volume small enough and do you trust yourself enough with dd to
> duplicate it off to a
> USB|firewire|esata disk? (now THIS _is_ risky. :)
> have you read `man fsck` to see why it was being suggested to run it
> WITHOUT the a or p options?
>
>
>
> ** The boss "...said that would be dangerous and it would destroy all
> data..." comment, indicates to
> me that either you or he or both think that.
>
>
> >
> > On Mon, Mar 22, 2010 at 4:03 PM, Nicolas Thierry-Mieg <
> > nicolas.thierry-m...@imag.fr> wrote:
> >
> >> sync wrote:
> >>> run fsck manually without a or p options?
> >>>
> >>> Not yet ~
> >> why not?
> >>
>
> >> try reading the bottom of this page:
> >> http://www.centos.org/modules/tinycontent/index.php?id=16
> >>
> >> it's publicly readable, unlike your link.
> >>
>
>
> --
> Todd Denniston
> Crane Division, Naval Surface Warfare Center (NSWC Crane)
> Harnessing the Power of Technology for the Warfighter
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-22 Thread Eero Volotinen
2010/3/22 sync :
> Thanks  for all reply...
>
>
> Because the boss don't let me do that .
> He said that would be dangerous and it would destroy all data in  the  hard
> disk

Well, then restore files from backups.


--
Eero
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-22 Thread Todd Denniston
sync wrote, On 03/22/2010 05:11 AM:
> Thanks  for all reply...
> 
> 

A) as Nicolas HINTED please read the _text_ that follows "Guidelines for CentOS 
Mailing List posts" at
http://www.centos.org/modules/tinycontent/index.php?id=16

B) as time permits read the links in that section, I think the ones some of us 
want you to read are:
http://www.caliburn.nl/topposting.html
and a couple of supplementals:
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
or
http://en.wikipedia.org/wiki/Posting_style#Bottom-posting


> Because the boss don't let me do that .
> He said that would be dangerous and it would destroy all data in  the  hard
> disk
> 

What did the boss say would "be dangerous and ... would destroy all data"
i.e. what command and options would the boss not let you run?

It is a bit hard to comment on that which is not here.

Is the boss more qualified to be administrating the machine in critical times 
like this than you**?
If so, then it is most likely time to hand him the keyboard and tell him he 
gets to keep the bits
that are left intact (both before he starts typing and after).
Will there be someone who you both trust to work on the machine in this state 
coming into the office
soon?


I would expect that anyone who is willing to help you over email would want at 
least the following
questions answered:
Which kind of file system is being used on the volume having trouble?
Do you have backups?
Is the volume small enough and do you trust yourself enough with dd to 
duplicate it off to a
USB|firewire|esata disk? (now THIS _is_ risky. :)
have you read `man fsck` to see why it was being suggested to run it WITHOUT 
the a or p options?



** The boss "...said that would be dangerous and it would destroy all data..." 
comment, indicates to
me that either you or he or both think that.


> 
> On Mon, Mar 22, 2010 at 4:03 PM, Nicolas Thierry-Mieg <
> nicolas.thierry-m...@imag.fr> wrote:
> 
>> sync wrote:
>>> run fsck manually without a or p options?
>>>
>>> Not yet ~
>> why not?
>>

>> try reading the bottom of this page:
>> http://www.centos.org/modules/tinycontent/index.php?id=16
>>
>> it's publicly readable, unlike your link.
>>


-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-22 Thread sync
Thanks  for all reply...


Because the boss don't let me do that .
He said that would be dangerous and it would destroy all data in  the  hard
disk


On Mon, Mar 22, 2010 at 4:03 PM, Nicolas Thierry-Mieg <
nicolas.thierry-m...@imag.fr> wrote:

> sync wrote:
> > run fsck manually without a or p options?
> >
> > Not yet ~
>
> why not?
>
> > i searched  it via Google and found this website :
> >
> http://www.experts-exchange.com/OS/Linux/Distributions/Red_Hat/Q_25043629.html
> >
> > i do that said but this time screen displayed  this :
>
> try reading the bottom of this page:
> http://www.centos.org/modules/tinycontent/index.php?id=16
>
> it's publicly readable, unlike your link.
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-22 Thread Nicolas Thierry-Mieg
sync wrote:
> run fsck manually without a or p options?
>
> Not yet ~

why not?

> i searched  it via Google and found this website :
> http://www.experts-exchange.com/OS/Linux/Distributions/Red_Hat/Q_25043629.html
>
> i do that said but this time screen displayed  this :

try reading the bottom of this page:
http://www.centos.org/modules/tinycontent/index.php?id=16

it's publicly readable, unlike your link.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-22 Thread sync
Not yet ~

i searched  it via Google and found this website :
http://www.experts-exchange.com/OS/Linux/Distributions/Red_Hat/Q_25043629.html

i do that said but this time screen displayed  this :

/dev/VolGroup00/LogVol00  : faild
 Inodes that were part of  a corrupted or phan linked list found .
...


What should i do ? Maybe it should to run the "fsck" to repair that
filesystem .

On Mon, Mar 22, 2010 at 2:41 PM, Eero Volotinen wrote:

> 2010/3/22 sync :
> > hi , guys:
> >
> >
> >  when i reboot the server today ,the screen displays this ;
> >
> >
> ---
> > Setting hostname xxx  [OK]
> >
> > Your system appears to have shut down uncleanly
> > Press Y within 1 seconds to force file system integrity check...
> > Checking root filesystem
> >
> > /dev/VolGroup00/LogVol 00: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
> > (i.e., without -a or -p options)
> > [FAILED]
> >
> > *** An error occured during the file system check.
> > *** Droping you to a shell; the system will reboot
> > *** when you leave the shell.
> > Give root password for maintenance
> > (or type Control-D to continue)
> >
> 
> >
> > is it the disk error ? What should i do to repair the disk ?
>
> run fsck manually without a or p options?
>
> --
> Eero
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck problems

2010-03-21 Thread Eero Volotinen
2010/3/22 sync :
> hi , guys:
>
>
>  when i reboot the server today ,the screen displays this ;
>
> ---
> Setting hostname xxx  [OK]
>
> Your system appears to have shut down uncleanly
> Press Y within 1 seconds to force file system integrity check...
> Checking root filesystem
>
> /dev/VolGroup00/LogVol 00: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
> (i.e., without -a or -p options)
> [FAILED]
>
> *** An error occured during the file system check.
> *** Droping you to a shell; the system will reboot
> *** when you leave the shell.
> Give root password for maintenance
> (or type Control-D to continue)
> 
>
> is it the disk error ? What should i do to repair the disk ?

run fsck manually without a or p options?

--
Eero
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fsck problems

2010-03-21 Thread sync
hi , guys:


 when i reboot the server today ,the screen displays this ;

---
Setting hostname xxx  [OK]

Your system appears to have shut down uncleanly
Press Y within 1 seconds to force file system integrity check...
Checking root filesystem

/dev/VolGroup00/LogVol 00: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY.
(i.e., without -a or -p options)
[FAILED]

*** An error occured during the file system check.
*** Droping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue)


is it the disk error ? What should i do to repair the disk ?

Thanks in advance ..
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck file system is mounted

2009-05-16 Thread Lanny Marcus
On 5/16/09, cen...@911networks.com  wrote:
> Is there a way to run fsck or any other program to check if there is
> drive problem. I don't want it repaired, now, but maybe later on.
>
> I can't shutdown the system and reboot in single user-mode.
>
> All suggestions are welcomed.

In the 7 1/2 years I have been hosting with OLM, several times, I have
seen things like this, which was posted on April 8th. Fortunately, the
servers I use have been trouble free, so far I hope you have
a_current_backup of everything on that server!

"The server (deleted) is currently off-line and undergoing
maintenance. The server experienced multiple drive failures in the
disk array. We are in the process of rebuilding the array. This
process will take several hours to complete. We appreciate your
patience during this time."
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck while file system is mounted

2009-05-16 Thread Lanny Marcus
On Sat, May 16, 2009 at 2:39 PM, Les Mikesell  wrote:
> cen...@911networks.com wrote:
>> On Sat, 16 May 2009 21:18:17 +0200
>> Equinox86  wrote:
>>
>>> mmm why you not reboot?
>>
>> Because to reboot, I will need the authorization of 3 different
>> people. Don't ask, they are having major "political" fights between
>> 2 divisions.
>
> You really need to arrange a scheduled maintenance window and a
> procedure to announce when emergency maintenance will happen.
> Pretending things never break or need maintenance operations is just
> unrealistic - but if the authorization you need is part of a working
> scheduling process it is not necessarily a bad thing.

Les is correct. You need to be able to take the server offline and
check the hard drive and/or replace it. Hardware does break and you
should have spares available, on site, ready to use. Or, a backup
server.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck file system is mounted

2009-05-16 Thread Ross Walker
On Sat, May 16, 2009 at 2:51 PM,   wrote:
> Hi,
>
> Is there a way to run fsck or any other program to check if there is
> drive problem. I don't want it repaired, now, but maybe later on.
>
> I can't shutdown the system and reboot in single user-mode.
>
> All suggestions are welcomed.

This URL has been passed around a while now, but you can give this a
shot (if you use LVM):

https://www.redhat.com/archives/ext3-users/2008-January/msg00032.html

-Ross
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck file system is mounted

2009-05-16 Thread William L. Maltby

On Sat, 2009-05-16 at 11:51 -0700, cen...@911networks.com wrote:
> Hi,
> 
> Is there a way to run fsck or any other program to check if there is
> drive problem. I don't want it repaired, now, but maybe later on.
> 
> I can't shutdown the system and reboot in single user-mode.
> 
> All suggestions are welcomed.

Along with the -n another suggested, consider two more possibilities.
Probably smartdrive capable disks, you can use the smartd and smartctl
(man pages in section 8) to have non-intrusive monitoring and
diagnostics active. Then reports can be generated.

Another possibility, if allowed by you situation, is to remount the
drive ro (IIRC, mount -o remount,ro . No one
will be able to write to the drive at that time, but you should be able
to run the fsck and (IIRC) do repairs if desired.

HTH
-- 
Bill

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck while file system is mounted

2009-05-16 Thread Les Mikesell
cen...@911networks.com wrote:
> On Sat, 16 May 2009 21:18:17 +0200
> Equinox86  wrote:
> 
>> mmm why you not reboot?
> 
> Because to reboot, I will need the authorization of 3 different
> people. Don't ask, they are having major "political" fights between
> 2 divisions.

You really need to arrange a scheduled maintenance window and a 
procedure to announce when emergency maintenance will happen. 
Pretending things never break or need maintenance operations is just 
unrealistic - but if the authorization you need is part of a working 
scheduling process it is not necessarily a bad thing.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck file system is mounted

2009-05-16 Thread Robert Nichols
cen...@911networks.com wrote:
> Hi,
> 
> Is there a way to run fsck or any other program to check if there is
> drive problem. I don't want it repaired, now, but maybe later on.
> 
> I can't shutdown the system and reboot in single user-mode.
> 
> All suggestions are welcomed.

You can run fsck with the "-n" option (assumes a "no" response to all
prompts) on a mounted file system, but some inconsistencies are
to be expected in the on-disk metadata for an active file system, so
the result is likely to be more confusing than useful unless you
really know what you are doing (and thus probably wouldn't have asked
this question).

If you just want to check for physical drive problems, running

 dd if=/dev/hda of=/dev/null bs=32k

will attempt to read the entire device and abort if it encounters
and unreadable sectors.  Replace "hda" with the appropriate device
or partition, of course.

-- 
Bob Nichols "NOSPAM" is really part of my email address.
 Do NOT delete it.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck while file system is mounted

2009-05-16 Thread centos
On Sat, 16 May 2009 21:18:17 +0200
Equinox86  wrote:

> mmm why you not reboot?

Because to reboot, I will need the authorization of 3 different
people. Don't ask, they are having major "political" fights between
2 divisions.

-- 
Thanks
http://www.911networks.com
When the network has to work
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fsck file system is mounted

2009-05-16 Thread Equinox86
mmm why you not reboot?

you can set the service you wan in init 1 and go it

2009/5/16 

> Hi,
>
> Is there a way to run fsck or any other program to check if there is
> drive problem. I don't want it repaired, now, but maybe later on.
>
> I can't shutdown the system and reboot in single user-mode.
>
> All suggestions are welcomed.
>
> --
> Thanks
> http://www.911networks.com
> When the network has to work
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fsck file system is mounted

2009-05-16 Thread centos
Hi,

Is there a way to run fsck or any other program to check if there is
drive problem. I don't want it repaired, now, but maybe later on.

I can't shutdown the system and reboot in single user-mode.

All suggestions are welcomed.

-- 
Thanks
http://www.911networks.com
When the network has to work
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] fsck

2008-02-13 Thread Ross S. W. Walker
Centos wrote:
> 
> Hello
> 
> our server is crashed and now some files are missing.
> when I do ls, I can see the file but when I do ls -la, file does not 
> show up.
> 
> I am going to do fsck, but was wondering if there is any 
> other quick fix 
> rather
> than umount and do fsck.

Fsck is a necessary evil here, but after fsck you will still
need to do a restore to recover any missing or damaged files.

-Ross

__
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] fsck

2008-02-13 Thread Centos

Hello

our server is crashed and now some files are missing.
when I do ls, I can see the file but when I do ls -la, file does not 
show up.


I am going to do fsck, but was wondering if there is any other quick fix 
rather

than umount and do fsck.

Thanks
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK

2007-08-10 Thread Steve Rigler
On Fri, 2007-08-10 at 06:33 -0300, centos wrote:
> I thought we have 2 Tera Byte limitation on RAID 5.
> were you be able to make RAID more than 2 Tera Byte ?
> 

AFAIK, the limit is on the size of the LUN, not RAID 5 in general.

-Steve
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK

2007-08-10 Thread Peter Kjellstrom
On Friday 10 August 2007, centos wrote:
> I thought we have 2 Tera Byte limitation on RAID 5.
> were you be able to make RAID more than 2 Tera Byte ?

Hardware raid5 is limited by the driver you use and the controller. Software 
raid5 is not limited to 2 TiB.

On top of that you have to sort out the limits introduced by filesystems and 
partitioning.

/Peter


signature.asc
Description: This is a digitally signed message part.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK

2007-08-10 Thread centos

I thought we have 2 Tera Byte limitation on RAID 5.
were you be able to make RAID more than 2 Tera Byte ?


Dan Halbert wrote:

Dan Dansereau wrote:

Hello
I have a newbie question, given a centos 5 installation,
An 5 very large disk arrays ( 2.5Tbytes each ) -
Is there a way to suspend or stop the fsck during the boot up?
  

To stop it in the future:
# tune2fs -c 0 -i 0 /dev/sda1 # or whatever device

See the manpage for tune2fs. This disables the max mount count and the 
time interval checking.


Dan H
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK

2007-08-09 Thread Dan Halbert

Dan Dansereau wrote:

Hello
I have a newbie question, given a centos 5 installation,
An 5 very large disk arrays ( 2.5Tbytes each ) - 


Is there a way to suspend or stop the fsck during the boot up?
  

To stop it in the future:
# tune2fs -c 0 -i 0 /dev/sda1 # or whatever device

See the manpage for tune2fs. This disables the max mount count and the 
time interval checking.


Dan H
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] FSCK

2007-08-09 Thread Johnny Hughes
Dan Dansereau wrote:
> Hello
> I have a newbie question, given a centos 5 installation,
> An 5 very large disk arrays ( 2.5Tbytes each ) - 
> 
> Is there a way to suspend or stop the fsck during the boot up?
> 
> The system seems to pick the most inopportune time to decide to reach
> the check count limit... and with this many disks, a reboot takes
> several hours... which is an eternity when your boss is looking over
> your shoulders for data right now! 
> 
> A ^c worked under version 4 - but has no affect on version 5

You should setup your partitions to not run fsck on a regular basis ...
and only when there is a problem.  At least that is my recommendation.

If the partitions are ext2 or ext3 you can do it like this:

tune2fs -i0 -c0 

Thanks,
Johnny Hughes



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] FSCK

2007-08-09 Thread Dan Dansereau
Hello
I have a newbie question, given a centos 5 installation,
An 5 very large disk arrays ( 2.5Tbytes each ) - 

Is there a way to suspend or stop the fsck during the boot up?

The system seems to pick the most inopportune time to decide to reach
the check count limit... and with this many disks, a reboot takes
several hours... which is an eternity when your boss is looking over
your shoulders for data right now! 

A ^c worked under version 4 - but has no affect on version 5
Thanks in Advance
Dan

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos