for drives that were part use with zfs, ceph-volume lvm zap /dev/sdX did not prepare drive for pve: ceph > osd create osd. no unused drives were found
this old script fixed the issue:
this old script fixed the issue:
Code:
DISK=$1
if [ "$1" = "" ]; then
echo "Need to supply a dev name like sdg . exitting"
exit 0
fi
echo " make sure this is the correct disk "
echo $DISK
echo " you will end up with NO partition table when this procedes . example:
Disk /dev/$1 doesn't contain a valid partition table
Press enter to procede , or ctl-c to exit "
read x
dd if=/dev/zero of=/dev/$DISK bs=512 count=50000
# 2014-08-08 need for 3ware end of disk has stuff
#-----------
LBAS=$(cat /sys/block/$DISK/size)
dd if=/dev/zero of=/dev/$DISK bs=512 count=1024
dd if=/dev/zero of=/dev/$DISK bs=512 seek=$(($LBAS-1024)) count=1024