计算机技术与发展
計算機技術與髮展
계산궤기술여발전
COMPUTER TECHNOLOGY AND DEVELOPMENT
2015年
5期
99-103
,共5页
软件RAID5%LVM%存储%算法
軟件RAID5%LVM%存儲%算法
연건RAID5%LVM%존저%산법
software RAID5%LVM%storage%algorithm
存储虚拟化技术在方便服务器存储管理的同时存在一些弊端,将所有文件存于单个逻辑卷中可能会造成磁盘空间浪费或影响大文件的读写性能,将文件分类存储于多个逻辑卷会涉及存储空间的划分,由于逻辑卷不支持在线缩小文件系统,为某个逻辑卷分配过多空间亦会造成磁盘的浪费。针对上述情况,提出了一种基于LVM和软件RAID5的服务器文件存储改进方案,并设计了相应的算法。算法可对文件进行分类存储于多个逻辑卷,加入一个共享逻辑卷,若文件写入的逻辑卷满足约定使用率条件则将文件迁移至共享逻辑卷中创建或写入,避免过度预分配造成的浪费。对方案的实现进行了仿真实验,结果表明:分类存储可以提高大文件的读性能和存储利用率,方案在文件迁移情况下对小文件写操作的响应时间影响较小。
存儲虛擬化技術在方便服務器存儲管理的同時存在一些弊耑,將所有文件存于單箇邏輯捲中可能會造成磁盤空間浪費或影響大文件的讀寫性能,將文件分類存儲于多箇邏輯捲會涉及存儲空間的劃分,由于邏輯捲不支持在線縮小文件繫統,為某箇邏輯捲分配過多空間亦會造成磁盤的浪費。針對上述情況,提齣瞭一種基于LVM和軟件RAID5的服務器文件存儲改進方案,併設計瞭相應的算法。算法可對文件進行分類存儲于多箇邏輯捲,加入一箇共享邏輯捲,若文件寫入的邏輯捲滿足約定使用率條件則將文件遷移至共享邏輯捲中創建或寫入,避免過度預分配造成的浪費。對方案的實現進行瞭倣真實驗,結果錶明:分類存儲可以提高大文件的讀性能和存儲利用率,方案在文件遷移情況下對小文件寫操作的響應時間影響較小。
존저허의화기술재방편복무기존저관리적동시존재일사폐단,장소유문건존우단개라집권중가능회조성자반공간낭비혹영향대문건적독사성능,장문건분류존저우다개라집권회섭급존저공간적화분,유우라집권불지지재선축소문건계통,위모개라집권분배과다공간역회조성자반적낭비。침대상술정황,제출료일충기우LVM화연건RAID5적복무기문건존저개진방안,병설계료상응적산법。산법가대문건진행분류존저우다개라집권,가입일개공향라집권,약문건사입적라집권만족약정사용솔조건칙장문건천이지공향라집권중창건혹사입,피면과도예분배조성적낭비。대방안적실현진행료방진실험,결과표명:분류존저가이제고대문건적독성능화존저이용솔,방안재문건천이정황하대소문건사조작적향응시간영향교소。
Storage virtualization technology offers a convenient management for server storage,but there are also some drawbacks at the same time. When all files are stored in a single logical volume,it may cause the waste of disk space or affect the read and write perform-ance of large files. When the files are stored on multiple logical volume according to their types,a new problem can be the division of storage space,allocating too much space for a logical volume will result in a waste of disk space because logical volume doesn't support shrinking file system online. For the above reasons,design an improved scheme for server storage and a corresponding algorithm for the scheme based on software RAID5 and LVM technology. The algorithm can classify files and make them stored in multiple logical vol-umes,a shared logical volume is added for the rest of the logical volumes,if the logical volume which a file is written to meets the ap-pointed usage rate threshold condition,the file will be moved to the shared logical volume to create or be written,avoiding the waste caused by excessive pre-allocation for a single logical volume. The experimental results show that classified storage for files can improve the reading performance of large files and utilization of storage,this program has a less effect to the response time of small file's writing when the file is in migration situation.