安装ceph文件格式化的问题

来源:互联网 发布:我想学电脑编程 编辑:程序博客网 时间:2024/04/27 23:23
  1. Prepare a GPT partition table (I have observed stability issues when using a dospartition)
    $ sudo parted /dev/sd<x>(parted) mklabel gpt(parted) mkpart primary xfs 0 ­100%(parted) quit

    if parted complains about alignment issues (“Warning: The resulting partition is not properly aligned for best performance”), check this two links to find a solution: 1 and2.

  2. Format the disk with xfs (you might need to install xfs tools with sudo apt-get install xfsprogs)
    $ sudo mkfs.xfs /dev/sd<x>1
  3. Create a Journal partition (raw/unformatted)
    $ sudo parted /dev/sd<y>(parted) mklabel gpt(parted) mkpart primary 0 100%






 fdisk /dev/vdb
n
p
1

w



-----------------------------------------------------------

mkfs.xfs -f /dev/vdb 
0 0