lustre – 設定 stripe

取得 lustre stripe 狀態

# lfs getstripe /home/xxxx

設定每 4MB 為1個 stripe 最多只用 1 個 stripe 然後每個檔案只分配到一個 OST

# lfs setstripe -S 4M -i -1 -c 1 /home/xxxx

設定每 1MB 為1個 stripe 最多只用 n 個 stripe. 從 ost0 開始 然後檔案會被分配到 n 個 OST

# lfs setstripe -S 1M -i 0 -c -1 /home/xxxx

用下列指令可以對/home/xxxx目錄 遞迴設定

# for i in $(find /home/xxxx -type d); do lfs setstripe -S 1M -i -1 -c 1 “$i” ;done

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.