mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Multidevice f2fs mount after disk rearrangement
@ 2020-01-04 16:29 Oleksandr Natalenko
  2020-01-04 21:52 ` Oleksandr Natalenko
  0 siblings, 1 reply; 9+ messages in thread
From: Oleksandr Natalenko @ 2020-01-04 16:29 UTC (permalink / raw)
  To: linux-f2fs-devel; +Cc: linux-kernel, Jaegeuk Kim, Chao Yu

Hello.

I was brave enough to create f2fs filesystem spanning through 2 physical 
device using this command:

# mkfs.f2fs -t 0 /dev/sdc -c /dev/sdd

It worked fine until I removed /dev/sdb from my system, so f2fs devices 
became:

/dev/sdc -> /dev/sdb
/dev/sdd -> /dev/sdc

Now, when I try to mount it, I get the following:

# mount -t f2fs /dev/sdb /mnt/fs
mount: /mnt/fs: mount(2) system call failed: No such file or directory.

In dmesg:

[Jan 4 17:25] F2FS-fs (sdb): Mount Device [ 0]:             /dev/sdc,    
59063,        0 -  1cd6fff
[  +0,000024] F2FS-fs (sdb): Failed to find devices

fsck also fails with the following assertion:

[ASSERT] (init_sb_info: 908) !strcmp((char *)sb->devs[i].path, (char 
*)c.devices[i].path)

Am I doing something obviously stupid, and the device path can be 
(somehow) changed so that the mount succeeds, or this is unfixable, and 
f2fs relies on persistent device naming?

Please suggest.

Thank you.

-- 
   Oleksandr Natalenko (post-factum)

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

end of thread, other threads:[~2020-01-08 12:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-04 16:29 Multidevice f2fs mount after disk rearrangement Oleksandr Natalenko
2020-01-04 21:52 ` Oleksandr Natalenko
2020-01-06  3:41   ` [f2fs-dev] " Chao Yu
2020-01-06 18:40     ` Jaegeuk Kim
2020-01-08  8:37       ` Chao Yu
2020-01-06 18:34   ` Jaegeuk Kim
2020-01-06 18:40     ` Oleksandr Natalenko
2020-01-08  8:52       ` [f2fs-dev] " Chao Yu
2020-01-08 12:00         ` Jaegeuk Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome