pveceph createosd /dev/sdb -fstype btrfs
gives me the following output:
How can i force the overwrite ?
I looked into
man pveceph
no word on forcing the overwrite tho.
gives me the following output:
pveceph createosd /dev/sdb -fstype btrfs
create OSD on /dev/sdb (btrfs)
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Creating new GPT entries.
The operation has completed successfully.
Setting name!
partNum is 1
REALLY setting name!
The operation has completed successfully.
Setting name!
partNum is 0
REALLY setting name!
The operation has completed successfully.
/dev/sdb1 appears to contain an existing filesystem (xfs).
Error: Use the -f option to force overwrite.
ceph-disk: Error: Command '['/sbin/mkfs', '-t', 'btrfs', '-m', 'single', '-l', '32768', '-n', '32768', '--', '/dev/sdb1']' returned non-zero exit status 1
command 'ceph-disk prepare --zap-disk --fs-type btrfs --cluster ceph --cluster-uuid 78f04b5c-c8af-4b55-bbbc-459f4f34c7e8 /dev/sdb' failed: exit code 1
How can i force the overwrite ?
I looked into
man pveceph
Code:
pveceph createosd <dev> [OPTIONS]
Create OSD
<dev> string
Block device name.
-fstype (btrfs | ext4 | xfs) (default=xfs)
File system type.
-journal_dev string
Block device name for journal.
no word on forcing the overwrite tho.