Thứ Tư, 23 tháng 12, 2015

Simulate fail disk in Linux

If you want to simulate fail disk when test any storage software such as CEPH, ScaleIO ...
Block any IO send to device:
echo offline > /sys/block/sda/device/state
Re-enable:
echo running > /sys/block/sda/device/state

Link:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/removing_path-to-storage-device.html

Chủ Nhật, 13 tháng 12, 2015

Link hay về Flask

http://gouthamanbalaraman.com/blog/flask-app-directory-structure.html
https://realpython.com/blog/python/using-flask-login-for-user-management-with-flask/
http://blog.miguelgrinberg.com/post/using-celery-with-flask