On Wed, Jun 20, 2012 at 1:57 PM, Tommi Virtanen <[email protected]> wrote:
> sudo apt-get install gdisk
> sudo sgdisk /dev/sdb --zap-all --clear --mbrtogpt --largest-new=1
> --change-name=1:'ceph data' --typecode=1:{fsid}
> # mkfs and allocate disk to cluster; any filesystem is ok, adjust for
> xfs/btrfs etc
> sudo mkfs -t ext4 /dev/sdb1
> sudo mount -o user_xattr /dev/sdb1 /mnt
> sudo ceph-disk-prepare --cluster-uuid={fsid} /mnt
> sudo umount /mnt

I just pushed commit ad97415ef72b55934adfa5024fd9af8fd1f0f82d to
master. With that, the above becomes just

sudo apt-get install gdisk
sudo ceph-disk-prepare /dev/sdb

Beware, it'll erase any and all disks you point it at. Do not stare
into laser with remaining eye.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to