* How do I correctly mount a multidevice volume via fstab?
@ 2009-02-06 17:58 Thomas Kuther
2009-02-06 18:19 ` Yan Zheng
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Kuther @ 2009-02-06 17:58 UTC (permalink / raw)
To: linux-btrfs
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?
Thanks,
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do I correctly mount a multidevice volume via fstab?
2009-02-06 17:58 How do I correctly mount a multidevice volume via fstab? Thomas Kuther
@ 2009-02-06 18:19 ` Yan Zheng
2009-02-06 19:17 ` Thomas Kuther
0 siblings, 1 reply; 3+ messages in thread
From: Yan Zheng @ 2009-02-06 18:19 UTC (permalink / raw)
To: Thomas Kuther; +Cc: linux-btrfs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How do I correctly mount a multidevice volume via fstab?
2009-02-06 18:19 ` Yan Zheng
@ 2009-02-06 19:17 ` Thomas Kuther
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Kuther @ 2009-02-06 19:17 UTC (permalink / raw)
To: linux-btrfs
Yan Zheng <yanzheng <at> 21cn.com> writes:
> > 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
Ah nice, that easy.
Thank you!
Best,
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-06 19:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 17:58 How do I correctly mount a multidevice volume via fstab? Thomas Kuther
2009-02-06 18:19 ` Yan Zheng
2009-02-06 19:17 ` Thomas Kuther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox