From: MarlboroMoo <mar...@gm...> - 2010-04-28 10:55:09
|
Hi there ! i have about 5,000,000 files , and take about 5 second to make snapshot (via mfsmakesnapshot). but if i want to remove these snapshot ( rm -rf ), it take a very long time ! i need to take snapshot every hour , and keep the last three day. a directory structure like below: ========================= Snapshot-Dir/ |-- 201004260100/ |-- 201004260200/ |-- . |-- . |-- 201004280100/ ========================= if i want to remove the snapshot "201004260100" and create new one "201004280200" my solution is: 1) rename the directory "201004260100" to "201004280200" (mv 201004260100 201004280200) 2) make a new snapshot to override it. (mfsmakesnapshot /path/to/source /path/to/201004280200 ) maybe we can have a command: mfsrmsnapshot to do this job cheer ! -- Marlboromoo |