public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Yan Zheng <yanzheng@21cn.com>
To: Thomas Kuther <gimpel@sonnenkinder.org>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: How do I correctly mount a multidevice volume via fstab?
Date: Sat, 7 Feb 2009 02:19:02 +0800	[thread overview]
Message-ID: <3d0408630902061019h423d2b06vb444d9d2b54138ef@mail.gmail.com> (raw)
In-Reply-To: <loom.20090206T174848-929@post.gmane.org>

2009/2/7 Thomas Kuther <gimpel@sonnenkinder.org>:
> Hi all,
>
> I am using a single volume across two devices sdb7 and sda1, initially
> created on sdb7, and added sda1 using btrfs-vol later. The fstab entry:
>
> /dev/disk/by-id/scsi-SATA_ST31000333AS_9TE12DSC-part7
>  /mnt/btrfs btrfs defaults 1 2
>
> Now after boot I get:
> ----
> device fsid c4822885057410c-d2d65a83c2f15fb4 devid 1
>  transid 73034 /dev/sdb7
> btrfs: failed to read chunk tree on sdb7
> ----
>
> So I have to run btrfsctl -a first, then mounting works. Can this be done
> via fstab?

you can add 'device=/dev/xxx' to the mount options field.

for example:
/dev/disk/by-id/scsi-SATA_ST31000333AS_9TE12DSC-part7 /mnt/btrfs btrfs
device=/dev/disk/by-id/scsi-SATA_ST31000333AS_9TE12DSC-part1 1 2

Regards
Yan Zheng

  reply	other threads:[~2009-02-06 18:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 17:58 How do I correctly mount a multidevice volume via fstab? Thomas Kuther
2009-02-06 18:19 ` Yan Zheng [this message]
2009-02-06 19:17   ` Thomas Kuther

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=3d0408630902061019h423d2b06vb444d9d2b54138ef@mail.gmail.com \
    --to=yanzheng@21cn.com \
    --cc=gimpel@sonnenkinder.org \
    --cc=linux-btrfs@vger.kernel.org \
    /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