A python wrapper for linux device mapper command(dmsetup).
-
Execute dmsetup in your python script.
-
Easy to use, avoid fussy arguments of the command.
-
Supported multiple mapping methods.
- Linear
- Snapshot
- Multipath
git clone https://github.com/zylan29/pydm.git
python setup.py install
Build linear map from two hard disks:
from pydm.dmlinear import DmLinearTable
hdd_group = DmLinearTable.from_disks(group_name, [hdd_1, hdd_2], root_helper='sudo')
flashcachegroup: Making FB's flashcache to cache a group of disks with a single SSD
vritman: Booting 1000 VMs in a minute!