@purpleraven/server-lvm
v0.0.1
Published
MCP server for LVM (Logical Volume Manager) management
Readme
@purpleraven/server-lvm
MCP server for managing LVM (Logical Volume Manager) on Linux systems.
Installation
NPM (Recommended)
npx -y @purpleraven/server-lvmLocal Development
git clone https://github.com/lhjnano/lvm-mcp.git
cd lvm-mcp
npm install
npm run build
npm startUsage
MCP Client Configuration
Add to your MCP client config:
{
"mcpServers": {
"lvm": {
"type": "local",
"command": ["npx", "-y", "@lhjnano/server-lvm"]
}
}
}Available Tools
Physical Volume (PV)
lvm_pvcreate- Create Physical Volumelvm_pvdisplay- Display PV informationlvm_pvs- List all Physical Volumeslvm_pvremove- Remove Physical Volume
Volume Group (VG)
lvm_vgcreate- Create Volume Grouplvm_vgextend- Extend Volume Grouplvm_vgdisplay- Display VG informationlvm_vgs- List all Volume Groupslvm_vgremove- Remove Volume Group
Logical Volume (LV)
lvm_lvcreate- Create Logical Volume (linear, striped, mirror, RAID, thin)lvm_lvextend- Extend LV with optional filesystem resizelvm_lvreduce- Reduce LV with optional filesystem resizelvm_lvremove- Remove Logical Volumelvm_lvchange- Change LV attributeslvm_lvdisplay- Display LV informationlvm_lvs- List all Logical Volumes
Advanced Features
lvm_cache_create- Attach cache (dm-cache/writecache)lvm_splitcache- Split cache from LVlvm_raidscrub- RAID consistency check/scrublvm_setraidrecoveryrate- Set RAID recovery ratelvm_snapshot_create- Create snapshotlvm_listsnapshots- List all snapshotslvm_removesnapshot- Remove snapshotlvm_thinpool_create- Create thin pool
Configuration
lvm_conf_read- Read LVM configurationlvm_conf_write- Write LVM configuration
Requirements
- Linux with LVM 2.x
- Root or sudo privileges
- Node.js 18+
Development
npm install
npm run build
npm testLicense
MIT
