Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 04-11-2013, 01:45 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Cấu hình SSD Local Cache và SSD Write Journal cho trên Parallels Cloud Server
Cấu hình SSD Local Cache và SSD Write Journal cho trên Parallels Cloud Server


Để giúp tăng tốc độ hoạt động của PCS lên nhiều lần, bạn có thể cấu hình ssd cache cho PCS bằng cách sau:


Tham khảo:

http://download.parallels.com/doc/pc...rage/35438.htm


Write Journaling http://download.parallels.com/doc/pcs/html/Parallels_Cloud_Storage/35505.htm

Local Cache: http://download.parallels.com/doc/pc...rage/36285.htm


Lab làm thực tế:

Giả sử bạn đã cài đặt xong Server PCS có các tính năng: Meta, Chunk, Client sau đó bạn gắn ổ SSD vào và làm Cache thì bạn cấu hình như sau:



I. Write Journaling


1. Vào Fdisk chia partition cho ổ cứng ssd

#fdisk /dev/sdc

2. Định dạng ổ cứng ssd với ext4

#mkfs.ext4 /dev/sdc1

3. Mount o cung /dev/sdc1 vao /pstorage/ssd (them dong sau vao fstab)

#vi /etc/fstab

/dev/sdc1 /pstorage/ssd ext4 defaults 1 2

# mount -a


4. remove chunk trên server bằng lệnh:

#pstorage -c minicloud rm-cs 1025 -W

==1025 là id của chunk server, gõ lệnh để xem: pstorage -c minicloud top


5. remove Metadata

pstorage -c minicloud rm-mds 1


6. Xóa hết dữ liệu trong /pstorage/minicloud-cs

#cd /pstorage/minicloud-cs
# rm -rf *


7. Gõ lệnh sau để add lại chunk với phần cấu hình SSD Write journaling

#pstorage -c minicloud make-cs -r /pstorage/minicloud-cs -j /pstorage/ssd/minicloud-cs-ssd -s 32204


====> nếu thấy có thông báo lỗi tương tự:

7-11-13 15:28:26.392 Directory /pstorage/minicloud-cs/ exists and not empty.


Thì gõ thêm lệnh sau: umount /pstorage/minicloud-cs

và gõ lại lệnh tạo CS

#service pstorage-csd restart

8. Add lai Metadata

#remove /pstorage/mninicloud-mds

#pstorage -c minicloud auth-node

#pstorage -c minicloud make-mds -a 172.16.1.1 -r /pstorage/minicloud-mds


#service pstorage-mdsd start

9. Reboot lại server và kiểm tra tính năng write journaling bằng cách

- kiem tra thu muc /pstorage/ssd da su dung 32GB chua, va thu muc /pstorage/ssd/minicloud-cs-ssd co

chua check jum ko? neu co du lieu la ok.

- thay doi thong so replicas de kiem tra lai chunk:

#pstorage set-attr -R /pstorage/minicloud replicas=3:2



II> Local Cache


http://download.parallels.com/doc/pc...rage/36285.htm

===========>

#pstorage-mount -c minicloud /pstorage/minicloud -C /pstorage/ssd/pstorage-cache-for-cluster-minicloud -R 64000


Thêm lệnh sau nếu nhận được thông báo lỗi:

#mv /var/log/pstorage/minicloud/.pstorage-mount.lock /var/log/pstorage/minicloud/.pstorage-mount.lock_bak

gõ lại lệnh tạo local cache:

#pstorage-mount -c minicloud /pstorage/minicloud -C /pstorage/ssd/pstorage-cache-for-cluster-minicloud -R 64000


#thêm dòng sau vào fstab

#vi /etc/fstab

pstorage://minicloud /pstorage/minicloud fuse.pstorage cache=/pstorage/ssd/pstorage-cache-for-cluster-minicloud,cachesize=64000,cachechksum=n 0 0



Kiểm tra Local cache đã được cấu hình đúng chưa?

#cat /pstorage/minicloud/.pstorage.info/read_cache_info
#cat /pstorage/minicloud/.pstorage.info/read_cache_files

Đảm bảo có file: pstorage-cache-for-cluster-minicloud trong thư mục /pstorage/ssd/


Done

Chúc các bạn thành công!

  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 05:24 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.