参考
- Ceph Storage on Proxmox | JamesCoyle.net
- Manually Mount a Ceph Storage Pool in Proxmox | JamesCoyle.net
cephタブが見えるようになるまで
各proxmoxで実行
pveceph install
pveceph init --network 192.168.30.0/24
# /etc/pve/ceph.conf が作成される。
pveceph createmon
ここまで成功。
OSDの作成
以下コマンドラインでもできるし、WebUIのceph->Disks->Create: OSD
でも出来る。
WebUIのほうが推奨。
osdの作成
# pveceph createosd /dev/sdc
create OSD on /dev/sdc (xfs)
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
The operation has completed successfully.
Information: Moved requested sector from 34 to 2048 in
order to align on 2048-sector boundaries.
The operation has completed successfully.
Information: Moved requested sector from 10485761 to 10487808 in
order to align on 2048-sector boundaries.
The operation has completed successfully.
meta-data=/dev/sdc1 isize=2048 agcount=32, agsize=22851740 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=731255665, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=357058, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
The operation has completed successfully.
フォーマット
# ceph-disk zap /dev/sdc
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! One or more CRCs don't match. You should repair the disk!
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
OS再起動し、再度OSDタブを確認
見えていることを確認。
ここから先の使い方はわからなかった。