Victor Sudakov wrote: > > On Fri, 12 Mar 2021 at 13:39, Victor Sudakov <v...@sibptus.ru> wrote: > > > > > btrfs thinks that /dev/nvme1n1 has a btrfs: > > > > > # btrfs filesystem show > > > Label: none uuid: 3414ae53-f3d4-43ea-bb88-ffefc9bc86f6 > > > Total devices 1 FS bytes used 1.05TiB > > > devid 1 size 2.00TiB used 1.33TiB path /dev/nvme0n1 > > > > > > Label: none uuid: 38f74bc8-465d-4866-8ec1-3a144741012c > > > Total devices 1 FS bytes used 831.16GiB > > > devid 1 size 3.00TiB used 1.48TiB path /dev/nvme1n1 > > > > > > The problem is that /dev/nvme1n1 is being used for ZFS now, and there is > > > currently no btrfs thereon. However, there is a btrfs label or something > > > stuck somewhere, how can I clear it? > > > > Hi, > > > > I do not know the answer because I have never done that, > > but try reading > > man 8 btrfs-device > > > > and then perhaps > > btrfs device remove ... > > > > "Remove device(s) from a filesystem identified by <path>" > > Hmm. /dev/nvme1n1 is not identified by any path because it's not mounted > as a btrfs filesystem.
"wipefs -t btrfs -f -a /dev/nvme1n1" did the job. Still wondering where those labels are stored on disk in Linux. In FreeBSD, GEOM(4) usually keeps such stuff in the last sector of a volume/device. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet
signature.asc
Description: PGP signature