[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to make btrfs forget a disk?



On Du, 14 mar 21, 17:34:40, Victor Sudakov wrote:
> Andrei POPESCU wrote:
> > 
> > I'm guessing it's in the GPT somewhere. Did you try removing the entire 
> > partition table before switching to ZFS?
> 
> There had been no partition table, I just ran "mkfs.btrfs /dev/nvme1n1"
> on the whole raw volume, and then mounted /dev/nvme1n1.
> 
> Later, when switching to ZFS, I ran "zpool create fastdrive /dev/nvme1n1" 
> again on the whole volume. But ZFS outsmarted me and created a GPT
> though I had not asked it to.
 
Your blkid output suggests the GPT was created by btrfs ;)

> The FreeBSD variety of ZFS does not do that, but Solaris AFAIR does
> like Linux.

In my understanding it does so to reserve 8MiB of space at the end of 
the drive, in case a later replacement for a RAID is slightly smaller.

It also allows to use GPT partition labels on create to get nicer names 
for your physical devices.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Attachment: signature.asc
Description: PGP signature


Reply to: