All of lore.kernel.org
 help / color / mirror / Atom feed
* "btrfs replace" ERROR: checking status of targetdev
@ 2021-05-01 21:39 Yan Li
  2021-05-01 22:16 ` Yan Li
  2021-05-02  0:44 ` Qu Wenruo
  0 siblings, 2 replies; 5+ messages in thread
From: Yan Li @ 2021-05-01 21:39 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Yan Li

Hi!

I have a raid1 btrfs with one device missing:
$ sudo mount -o compress-force=zstd:9,relatime,space_cache=v2,degraded
/dev/mapper/open_offsite_bak1 /mnt/offsite_bak
$ sudo btrfs fi show /mnt/offsite_bak
Label: none  uuid: 99acc0da-127f-4034-8d53-07851cbbccba
Total devices 4 FS bytes used 8.75TiB
devid    1 size 4.55TiB used 3.53TiB path dm-11
devid    2 size 12.73TiB used 8.76TiB path dm-12
devid    4 size 3.64TiB used 2.62TiB path dm-14
*** Some devices missing

Now I'm trying to replace it with another drive according to the
instructions on the wiki
(https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices#Using_btrfs_replace):

$ sudo btrfs replace start -r 3 /dev/mapper/open_offsite_bak5 /mnt/offsite_bak/
ERROR: checking status of dm-13: No such file or directory

/dev/mapper/open_offsite_bak5 indeed is a link to /dev/dm-13.
$ sudo btrfs replace start -r 3 /dev/dm-13 /mnt/offsite_bak/
shows exactly the same error.

The device is fine if I try:
sudo dd if=/dev/dm-13 of=/dev/null count=1

There's no error message in dmesg.

What could be the problem? I feel like it should be a stupid error on
my part but I just can't figure out. "btrfs replace" doesn't support
using a devicemapper device?

Kernel: 5.11.0-16-generic
btrfs-progs: 5.10.1-1build1
Both from Ubuntu 21.04 with latest updates.

Thanks!

--
Yan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-02  2:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-01 21:39 "btrfs replace" ERROR: checking status of targetdev Yan Li
2021-05-01 22:16 ` Yan Li
2021-05-02  0:44 ` Qu Wenruo
2021-05-02  2:08   ` Yan Li
2021-05-02  2:28     ` Qu Wenruo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.