Deploying in Internal Mode with Local Storage
This Internal Mode path creates a Ceph cluster in the current workload cluster and backs OSDs with Block PersistentVolumes from Local Storage. Configure cluster type, snapshots, monitoring, and advanced options in the Distributed Storage wizard, then switch to YAML and replace spec.storage so Rook consumes Local Storage volumes instead of host devices.
Do not mix host devices (spec.storage.nodes) and storageClassDeviceSets on the same CephCluster.
Prerequisites
- At least three nodes will run OSDs.
- Each of those nodes has at least one unused disk that is not mounted and has no partitions.
- Download and Upload the installation packages for Alauda Container Platform Storage Essentials, Alauda Storage, and Alauda Container Platform Local Disk Provisioner.
Procedure
1. Install Alauda Container Platform Local Disk Provisioner and provision Block volumes
Install the operator as described in Install Local Storage.
Confirm the operator is running:
Example output:
Provision one Block PersistentVolume per OSD with a LocalVolume so each disk path is explicit. Replace hostnames with kubectl get node values. Copy each /dev/disk/by-id/... path from Discover local disks (status.discoveredDevices[].deviceID). Do not use /dev/sdX or /dev/disk/by-path/.... Those names can change after a node reboot. Production clusters must use /dev/disk/by-id/....
Check the LocalVolume and StorageClass:
Example output:
Check that Block PersistentVolumes are Available. You need at least as many as the OSD count you will set later (three in this example):
Example output:
If a volume is missing, confirm the by-id path is on the selected node and the disk is unused. If discovery does not list a deviceID, the disk has no stable /dev/disk/by-id identity and is not suitable as a production LocalVolume path. For filter-based provisioning instead of explicit paths, see Provision with LocalVolumeSet.
2. Deploy the Alauda Storage operator in the wizard
-
Login, go to the Administrator page.
-
In the left sidebar, click Storage Management > Distributed Storage.
-
Click Configure Now.
-
If Alauda Container Platform Storage Essentials is not installed, the wizard installs it first. Use the same OperatorHub values as Deploying in Internal Mode: channel
stable, installation modeCluster, namespace acp-storage, upgrade strategyManual. -
On the Install Operator wizard page, click Start Deployment (or Deploy Operator) for Alauda Storage.
- When the page proceeds to Create Cluster, the Operator is installed.
- If deployment fails, follow the on-screen prompts, click Clean Up, and deploy the Operator again.
3. Create the cluster: fill the wizard, then edit YAML storage
-
On the Create Cluster wizard page, set Cluster Type to Standard (Internal Mode).
-
Configure everything except host storage devices:
- Snapshot and Monitoring Alarm, as required.
- Advanced Configuration: network, optimization parameters, and component placement. Place MON/MGR/MDS/RGW on at least three nodes when you use fixed-point deployment.
Do not add Device Class host devices (Selection Device or Input Device). Those fields write
spec.storage.nodesand conflict with PVC-backed OSDs. -
Switch the page from Form to YAML. The editor shows the
CephClusterthe wizard would create. LeavecephVersion,network,mon,monitoring, and other non-storage fields as generated. -
Replace the entire
spec.storagesection. Removespec.storage.nodesif it is present. Use the StorageClass from step 1 (localblockin the example). Setcountto the number ofAvailableBlock PersistentVolumes you will consume. SetcrushDeviceClassto the class name these OSDs must use. The name can bessd,hdd,nvme, or any custom name you will select when creating pools.- Number of OSDs. Each OSD binds one Block PersistentVolume. Do not set this higher than the number of
Availablevolumes. - Must be
falsefor Local Storage. Local volumes cannot move to another node. - Set from the physical media, not from the CRUSH class name. Set
truewhen the underlying disks are SSD, NVMe, or cloud disks. Setfalseonly when the underlying disks are HDD. - CPU and memory for OSD pods. Required.
- Ceph CRUSH device class for these OSDs. Required. Use any class name you will select when creating pools. The name is not limited to
hdd,ssd, ornvme. Pools select this class later. Changing the class after OSDs exist requiresspec.storage.allowDeviceClassUpdate: true. - StorageClass created by the
LocalVolume. Must be Block. - PVC request used only to bind an
AvailableBlock PersistentVolume. Kubernetes requires this field; do not omit it. The OSD uses the whole disk (for example1Ti), not this request. Set it less than or equal to the smallest matching PersistentVolume.
- Number of OSDs. Each OSD binds one Block PersistentVolume. Do not set this higher than the number of
-
Click Create Cluster and wait for the wizard to finish.
-
Verify OSDs and the PVCs Rook created:
Example PVC output after binding 1Ti local volumes with a
1Girequest:CAPACITYis the PersistentVolume size (the disk)..spec.resources.requests.storageon the PVC remains the request from the template (1Giin this example).Wait until three OSD pods are running and health is
HEALTH_OK, orHEALTH_WARNonly for expected start-up notes.
Scale OSDs in a device class
Use this procedure to add OSDs that keep the same CRUSH device class as an existing storageClassDeviceSets entry.
1. Provision additional Block volumes
Provision additional Block PersistentVolumes with the same StorageClass. See Guides. Use /dev/disk/by-id/... paths.
2. Confirm the volumes are Available
Confirm the new PersistentVolumes are Available.
3. Increase count on the existing device set
Edit the cluster and increase spec.storage.storageClassDeviceSets[].count on that device set to match the new total. Change only count. Do not replace the rest of the device set, and do not change crushDeviceClass.
Do not lower count to remove OSDs. That is not a supported scale-in path on this page.
Add a device class
Use this procedure to introduce a new CRUSH device class after the cluster exists. Do not only increase count on an existing device set. Do not use the Device Classes tab in the web console; that writes spec.storage.nodes and conflicts with PVC-backed OSDs.
1. Provision Block volumes for the new disks
Create another LocalVolume as in step 1 of the install procedure. Use /dev/disk/by-id/... paths. Give the LocalVolume a distinct StorageClass name when the disks are a different media type so the new OSDs cannot bind the wrong volumes.
2. Confirm the new volumes
Confirm the new Block PersistentVolumes are Available and use the new StorageClass:
3. Append a storageClassDeviceSets item
Edit the cluster and append a new item under spec.storage.storageClassDeviceSets. Leave every existing device set unchanged.
- New device set. The
namemust be unique amongstorageClassDeviceSets. - Number of OSDs in the new class. Do not set this higher than the number of
Availablevolumes on the new StorageClass. - Set from the physical media of the new disks, not from the CRUSH class name. Set
truewhen those disks are SSD, NVMe, or cloud disks. Setfalseonly when those disks are HDD. - New CRUSH device class. Required. Use any class name you will select when creating pools. The name is not limited to
hdd,ssd, ornvme. - StorageClass created by the new
LocalVolume. Must be Block.
4. Verify the new OSDs
Wait until the new OSD pods are running and cluster health is HEALTH_OK, or HEALTH_WARN only for expected start-up notes:
5. Select the new class on a pool
Create or update a pool so workloads can select the new class. See Managing Storage Pools.
Related information
- Deploying in Internal Mode uses host devices in the web console without replacing
spec.storage. - Adding Devices/Device Classes is the host-device console path. Do not use it when OSDs use Local Storage Block PersistentVolumes.
- Cleanup Distributed Storage if you need to remove the cluster.
Ceph is a trademark or registered trademark of Red Hat, Inc. or its subsidiaries in the United States and other countries. Rook® is a registered trademark of The Linux Foundation. Alauda is an independent vendor. This product is not affiliated with, endorsed by, or sponsored by LF Projects, LLC or The Linux Foundation. All trademarks are the property of their respective owners and are used here for identification purposes only.