Skip to content
This repository was archived by the owner on Mar 26, 2020. It is now read-only.
This repository was archived by the owner on Mar 26, 2020. It is now read-only.

[RFE] Support for Loopback devices as bricks #1418

Closed
@aravindavk

Description

@aravindavk

Auto provisioning Volumes by default provisions the bricks using LVM. Alternatively Loop devices can be used to create Bricks.

Register device(LVM vs Loop):

LVM Loop
Create PV -
Create VG -
Collect Available size and save details in Store Collect Available size and save details in Store

Unregister device

LVM Loop
Remove VG -
Remove PV -
Remove details from Store if no bricks exists Remove details from Store if no bricks exists

Create Brick

LVM Loop
Create Thinpool Create directory
Create LV Create Loop device
Create FS Create FS
Mount LV Mount device
Create Brickdir Create Brickdir

Mount/Unmount Brick

LVM Loop
Mount/Unmount LV Mount/Unmount loop device

Remove Brick

LVM Loop
Unmount brick if mounted Unmount brick if mounted
Remove LV Remove loop file
Remove Thinpool if number of LVs is zero Remove directory if no files exists

Get Available Size

LVM Loop
Using LVM commands Using statvfs or df command

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions