xfs
[Top] [All Lists]

Re: disk is broken after mount , then fix the disk ,i still can not use

To: "zhao.mingyue@xxxxxxx" <zhao.mingyue@xxxxxxx>
Subject: Re: disk is broken after mount , then fix the disk ,i still can not use the mount path
From: Brian Foster <bfoster@xxxxxxxxxx>
Date: Wed, 26 Aug 2015 06:56:42 -0400
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1CB94550540AE44E9CAAE8CD5AF40BF846CE8508@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <1CB94550540AE44E9CAAE8CD5AF40BF846CE8508@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.23 (2014-03-12)
On Wed, Aug 26, 2015 at 09:58:26AM +0000, zhao.mingyue@xxxxxxx wrote:
> hiï
>    I have a problem about xfs ,can someone help me?
>    1 . mount  /dev/sdb  /home/test,
>    2. /dev/sdb is down(my disk has something wrong)
>    3.I pull out the disk, fix it and insert
>    then I find that I still can not operate in /home/test
> Is the mechanism of XFS like this? if I want to use /home/test again, I must 
> umount first and mount again?

Yes, once the filesystem has errors or a disk is physically removed, the
fs will shutdown and not allow further modification until it is
remounted correctly. This is most likely the behavior you'll see for any
local filesystem unless there's some kind of block device abstraction in
the stack that doesn't expose the errors to the fs (e.g., md raid).

Also note that the fs holds the underlying block device open. That means
the device node (sdb) won't disappear just because it's been unplugged.
If the device is reattached, it most likely has a new device node.
You'll have to inspect the logs or /sys/block/... to find it. The old
one will probably go away when the old mount is removed.

FWIW, it's probably best to umount and release any active references on
the block device beforehand if you know you're going to physically
disconnect it.

Brian

> -------------------------------------------------------------------------------------------------------------------------------------
> æéäååéäåææååäéäæææéååçäåäæïäéäåéçäéååäåå
> çääæççãçæääåäääääååäçïåæääéäåéæéååæéãååã
> ææåïæéääçäæãåææéæäæéäïèæçåçèæéäéçåääååéæ
> éäï
> This e-mail and its attachments contain confidential information from H3C, 
> which is
> intended only for the person or entity whose address is listed above. Any use 
> of the
> information contained herein in any way (including, but not limited to, total 
> or partial
> disclosure, reproduction, or dissemination) by persons other than the intended
> recipient(s) is prohibited. If you receive this e-mail in error, please 
> notify the sender
> by phone or email immediately and delete it!

> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

<Prev in Thread] Current Thread [Next in Thread>