Using only a partition instead of a whole device

1,015 views
Skip to first unread message

soltesz...@gmail.com

unread,
Apr 5, 2020, 1:26:11 PM4/5/20
to rook-dev
Hi Everyone,

I am a beginner to Rook and Ceph and struggling to create a small storage cluster on an RKE deployed Kubernetes 1.15.

I have managed to build a working 3-node storage cluster with directory storage ("directories" config option under storage) but that is not supported in production, so I am trying to. 

I have VMs that have access to a single device (sda) that I can partition freely. 

I have the sda1 partition with the VMs operating system (CentOS7) and I would like to use the second partition (sda2) as Rook/Ceph storage.

Is this supposed to work in the current stable version of Rook (1.2) ?

I haven't found anything about this in the samples but a design document says that it should work: https://github.com/rook/rook/blob/master/design/ceph/ceph-volume-provisioning.md  :

"
  devices:
     ...
     # OSD on a partition (partition support is new)
      - name: sdf1
"

Alexander Trost

unread,
Apr 8, 2020, 5:39:42 AM4/8/20
to soltesz...@gmail.com, rook-dev
Yes, partitions can be used. Partitions must be empty and your Ceph version at least v14.2.8 or higher (if available, not v15 though).

Kind regards
Alexander Trost

--
You received this message because you are subscribed to the Google Groups "rook-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rook-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rook-dev/440a3cca-f56a-4b04-8197-bae60fdeeaf6%40googlegroups.com.

Andras Soltesz

unread,
Apr 8, 2020, 5:42:28 AM4/8/20
to Alexander Trost, rook-dev
Thanks
--

Üdvözlettel,
Soltész András
+3670-518-7872
Reply all
Reply to author
Forward
0 new messages