You are not logged in.

#1 2015-05-26 15:16:52

nbd
Member
Registered: 2014-08-04
Posts: 389

[SOLVED]How ZFS disk label "zfs_member" can be removed?

Greetings!

On a disk drive there was ZFS filesystem installed, and now it's been replaced with btrfs. But "zfs_member" label remains as the disk label:

$ lsblk -f

sda
|----sda1    ntfs   label1

sdb          zfs_member
|----sdb1    btrfs   label2

How can this label be removed?

Last edited by nbd (2015-05-27 22:04:02)


bing different

Offline

#2 2015-05-27 07:52:54

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED]How ZFS disk label "zfs_member" can be removed?

No ideas?

UPDATE: seems like 'wipefs' does the job.

Last edited by nbd (2015-05-27 09:35:12)


bing different

Offline

#3 2015-05-27 15:07:22

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 298

Re: [SOLVED]How ZFS disk label "zfs_member" can be removed?

You didn't post the full table with collumn headers and I also think you placed "zfs_member" incorrectly next to the disk instead of the partition (unless perhaps the entire disk was used by ZFS?). If I look at my ZFS volume zfs_member is FSTYPE:

NAME   FSTYPE     LABEL UUID                                 MOUNTPOINT
sda                                                          
├─sda1 ext4       BOOT  78084ff0-4d07-4f29-9ab9-06de42c8cb33 /boot
├─sda2 ext4       ROOT  66546aee-aef7-4bfb-a396-5e1330019e19 /
└─sda3 ext4       HOME  908df2cb-c3f4-4368-b2f4-09879781d2ca /home
sdb                                                          
├─sdb1 zfs_member Data  4444402127394475649                  
└─sdb9                                                       
sdc                                                          
├─sdc1 zfs_member Data  4444402127394475649                  
└─sdc9                                                       
sdd                                                          
├─sdd1 zfs_member Data  4444402127394475649                  
└─sdd9                                                       
sr0                                                          
zd0    swap             c9b47709-a106-499a-a0b8-8be8dd4d8b96 [SWAP]

A label can be set with mkfs -L label. The FSTYPE gets overwritten when you create a filesystem. So if it was a zfs_member and you create an ext4 filesystem, it will show ext4 in the FSTYPE collumn.

Last edited by mouseman (2015-05-27 15:17:53)

Offline

#4 2015-05-27 16:47:22

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED]How ZFS disk label "zfs_member" can be removed?

mouseman wrote:

I also think you placed "zfs_member" incorrectly next to the disk instead of the partition (unless perhaps the entire disk was used by ZFS?).

That was the case. And the label could not be removed even with gparted. For dealing with such cases there is a special program: wipefs.


bing different

Offline

#5 2015-05-27 17:43:28

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 298

Re: [SOLVED]How ZFS disk label "zfs_member" can be removed?

nbd wrote:

And the label could not be removed even with gparted.

Because zfs_member wasn't a label, it was the FSTYPE of the disk.

Either way, please mark it as solved by editing your first post.

Offline

#6 2015-05-27 22:03:04

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED]How ZFS disk label "zfs_member" can be removed?

mouseman wrote:

Because zfs_member wasn't a label, it was the FSTYPE of the disk.

Yes, in wipefs it's called a "signature".


bing different

Offline

#7 2020-12-04 12:11:44

ceremcem
Member
Registered: 2020-12-04
Posts: 1

Re: [SOLVED]How ZFS disk label "zfs_member" can be removed?

I had the same issue. I opened the disk with `fdisk /dev/sdc` and there was a red warning saying something like that: "The type of disk is set to zfs_member. It will be erased on (w)rite" and I pressed "w" to write the changes(?) (there were no changes) and whole disk is wiped out! That was not an issue at this particular case, as I was poking around. I'm placing this experiment as a warning for others.

I started to recreate the partitions. As I was creating my partitions with a script of mine, I created the exact same layout, so fdisk displayed "Ext2 signature exists" and "LUKS signature exists" warnings. I interrupted the partitioning process and realized that the exact same partition table is now back (probably as my new partition table is exactly the same table as the previous one, it's like it's restored), so I didn't loose any data.

Offline

#8 2020-12-04 12:31:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,351

Re: [SOLVED]How ZFS disk label "zfs_member" can be removed?

Thanks for the potentially relevant contribution, but the thread is old and the issue solved.

Closing.

Offline

Board footer

Powered by FluxBB