Linux下存储管理工具-System Storage Manager
System Storage Manager(SSM)工具可检查关于可用硬盘和LVM卷的信息,显示关于现有磁盘存储设备、存储池、LVM卷和存储快照的信息。System Storage Manager provides an easy to use command line interface to manage your storage using various technologies like lvm, btrfs, encrypted volumes and more.
In more sophisticated enterprise storage environments, management with Device Mapper (dm), Logical Volume Manager (LVM), or Multiple Devices (md) is becoming increasingly more difficult. With file systems added to the mix, the number of tools needed to configure and manage storage has grown so large that it is simply not user friendly. With so many options for a system administrator to consider, the opportunity for errors and problems is large.
The btrfs administration tools have shown us that storage management can be simplified, and we are working to bring that ease of use to Linux file systems in general.
由红帽的工程师用Python开发,并在GPLv2协议下授权。
安装
yum -y install system-storage-manager
常用命令
列出设备信息
ssm list dev
列出存储池信息
ssm list pool
列出卷信息
ssm list vol
创建LVM
ssm create -s [lv大小] -n [lv名称] --fstype [lv文件系统类型] -p [卷组名] [设备] [挂载点]
自动把设备变成pv,创建pv、lv,格式化文件系统,自动挂载。
mkdir /freeoa-lv
ssm create -s 1G -n freeoa-lv --fstype xfs -p freeoa /dev/sdb[1-4] /freeoa-lv
Physical volume "/dev/sdb1" successfully created.
Physical volume "/dev/sdb2" successfully created.
Physical volume "/dev/sdb3" successfully created.
Physical volume "/dev/sdb4" successfully created.
Volume group "freeoa" successfully created
WARNING: ext4 signature detected on /dev/freeoa/freeoa-lv at offset 1080. Wipe it? [y/n]: y
Wiping ext4 signature on /dev/freeoa/freeoa-lv.
Logical volume "freeoa-lv" created.
meta-data=/dev/freeoa/freeoa-lv isize=512 agcount=4, agsize=65536 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=262144, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
df -h /freeoa-lv/
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/freeoa-freeoa--lv 1014M 33M 982M 4% /freeoa-lv
最新版本:0.4
自2013年后再无更新。
项目主页:http://storagemanager.sf.net