1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ceph Storage on Proxmox

Last updated at Posted at 2014-06-20

参考

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タブを確認

スクリーンショット 2014-11-19 8.10.49.png

見えていることを確認。

ここから先の使い方はわからなかった。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?