public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: "Lukáš Czerner" <lczerner@redhat.com>
Cc: Ryan Wang <openspace.wang@gmail.com>,
	linux-ext4@vger.kernel.org, xfs@oss.sgi.com
Subject: Re: How to run xfstests against multipath disks on SuSE?
Date: Mon, 26 Nov 2012 09:55:59 -0500	[thread overview]
Message-ID: <20121126145559.GK31891@thunk.org> (raw)
In-Reply-To: <alpine.LFD.2.00.1211261442490.18234@localhost>

On Mon, Nov 26, 2012 at 02:43:40PM +0100, Lukáš Czerner wrote:
> > The I checked the script common.rc, and found that it uses
> > df to determine the filesystem type and it uses the realpath
> > "/dev/dm-0" instead of "/dev/mapper/mpatha", while df always
> > shows "devtmpfs" instead of "ext4" for /dev/dm-0.
> > 
> > I run "mount" and found that devtmpfs is mount on /dev/ on opensuse
> > ***by default***. Even though  I run "mount -t btrfs /dev/dm-0 /somedir",
> > df still showed devtmpfs.
> > 
> > Any ideas to kick off the xfstests?

At least with the df which ships with Debian Testing, df will display
the file system in use if it matches the device name which is
/etc/mtab.  It looks the issue is that mount is canonicalizing the
device name to be the human friendly version:

# ls -l /dev/mapper/closure-bigscratch 
0 lrwxrwxrwx 1 root root 7 Nov 16 15:15 /dev/mapper/closure-bigscratch -> ../dm-7
<tytso.root@closure> {/home/tytso/bin}, level 2  
# mount /dev/dm-7 /u2
# df /u2
Filesystem                     1K-blocks   Used Available Use% Mounted on
/dev/mapper/closure-bigscratch  52403200 224772  52178428   1% /u2
# grep /u2 /etc/mtab
/dev/mapper/closure-bigscratch /u2 xfs rw,relatime,attr2,inode64,noquota 0 0

So the simplest solution is to just use /dev/mapper/mpatha instead of
insisting on using /dev/dm-0.  That's what I do....

						- Ted

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

  reply	other threads:[~2012-11-26 14:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPxxNQmwX+TmJ=B-H0f+bzpx5JdijyyRrxCAAZRi9+c8HjQL9Q@mail.gmail.com>
2012-11-26 13:43 ` How to run xfstests against multipath disks on SuSE? Lukáš Czerner
2012-11-26 14:55   ` Theodore Ts'o [this message]
2012-11-27  1:20     ` Ryan Wang
2012-11-27  3:14       ` Dave Chinner
2012-11-27 17:08         ` Eric Sandeen
2012-11-27 20:35           ` Dave Chinner
2012-11-27 20:37             ` Eric Sandeen
2012-11-27 20:55               ` Rich Johnston
2012-11-28 14:10                 ` Ryan Wang
2012-11-28 15:17                   ` Rich Johnston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121126145559.GK31891@thunk.org \
    --to=tytso@mit.edu \
    --cc=lczerner@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=openspace.wang@gmail.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox