[SOLVED] CEPH config

Ma907xb

Well-Known Member
Dec 26, 2018
71
1
48
USA
Hello,

During my initial configuration of CEPH I'd like to format some drives on my server before the installation. I use this command to format the drives


ceph-volume lvm zap /dev/sdb --destroy


but i get a runtime error. How do i know the process completed?


root@vmhost3:~# ceph-volume lvm zap /dev/sdb --destroy
--> Zapping: /dev/sdb
Running command: /usr/sbin/wipefs --all /dev/sdb3
stdout: /dev/sdb3: 8 bytes were erased at offset 0x0003f000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x0003e000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x0003d000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x0003c000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x0003b000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x0003a000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x00039000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x00038000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x00037000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x00036000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at offset 0x00035000 (zfs_member): 0c b1 ba 00 00 00 00 00
/dev/sdb3: 8 bytes were erased at
x
x
x
Running command: /bin/dd if=/dev/zero of=/dev/sdb3 bs=1M count=10
stderr: 10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.0436239 s, 240 MB/s
--> Destroying partition since --destroy was used: /dev/sdb3
Running command: /usr/sbin/parted /dev/sdb --script -- rm 3
Running command: /usr/sbin/wipefs --all /dev/sdb2
stdout: /dev/sdb2: 8 bytes were erased at offset 0x00000052 (vfat): 46 41 54 33 32 20 20 20
/dev/sdb2: 1 byte was erased at offset 0x00000000 (vfat): eb
/dev/sdb2: 2 bytes were erased at offset 0x000001fe (vfat): 55 aa
Running command: /bin/dd if=/dev/zero of=/dev/sdb2 bs=1M count=10
stderr: 10+0 records in
10+0 records out
stderr: 10485760 bytes (10 MB, 10 MiB) copied, 0.081308 s, 129 MB/s
--> Destroying partition since --destroy was used: /dev/sdb2
Running command: /usr/sbin/parted /dev/sdb --script -- rm 2
Running command: /usr/sbin/wipefs --all /dev/sdb1
Running command: /bin/dd if=/dev/zero of=/dev/sdb1 bs=1M count=10
stderr: /bin/dd: error writing '/dev/sdb1'
stderr: : No space left on device
stderr: 1+0 records in
0+0 records out
1031168 bytes (1.0 MB, 1007 KiB) copied, 0.00577859 s, 178 MB/s
stderr:
--> RuntimeError: command returned non-zero exit status: 1
root@vmhost3:~#
 
Hi,
how large is partition 1? If it's less than 10MB it would explain why the command failed and it's probably a bug in Ceph you may want to report.
Since you want to destroy all partitions, you should be fine using a tool like parted (be careful to select the right device!) instead.
 
Yes - That partition was under 10mb. I was able to delete that partition with fdisk. I re ran the command and the output was successful. :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!