knowledge
Web site for check hardware warranty -

รวบรวม link สำหรับใช้ในการ check hardware warranty ครับ Web site. 

8 years ago | 0
Install uTorrent on CentOS 6 -

uTorrent เป็น bit torrent client ที่ได้รับความนิยมอย่างแพร่หลาย. 

10 years ago | 0
How to update dell server firmware with Dell Unified Server Configurator -

คนที่ใช้งาน Dell Server และต้องการ update firmware ของ Bios, network. 

11 years ago | 0

How to stress test the memory on linux

By Tum. | On Friday, August 3rd, 2018 - No Comments »
How to stress test the memory on linux

คำสั่ง stress ช่วยให้เราสามารถทำการทดสอบ workload บน cpu, memory, io, HDD บน POSIX system ซึ่งในบทความนี้จะมาแชร์คำสั่งที่ใช้ในการทดสอบ workload ให้ใช้ memory 95% เพื่อทดสอบ memory ว่าจะมีปัญหาหรือไม่ สำหรับ Linux kernel < 3.14 stress --vm-bytes $(awk '/MemFree/{printf "%d\n", $2 * 0.95;}' < /proc/meminfo)k --vm-keep -m 1 123  stress --vm-bytes $(awk '/MemFree/{printf. 

Ansible Tutorial – Directory layout and Example

By Tum. | On Tuesday, July 26th, 2016 - No Comments »
Ansible Tutorial – Directory layout and Example

Ansible เป็น configuration management ที่เป็น agentless ซึ่งไม่ต้อง require agent เหมือนพวก puppet, Chef, Salt การทำงานของ ansible จะทำงานผ่าน SSH ดังนั้นแค่เครื่องสามารถ remote ด้วย SSH ได้ก็ทำงานได้ Ansible เขียนเป็นไฟล์ YAML เดียวก็สามารถทำงานได้แล้ว แต่ถ้าหากมีขั้นตอนการทำงานที่เยอะจะทำให้ยุ่งยากในการแก้ไข และนำกลับมาใช้ใหม่. 

PackStack gets “Failed to load plugin from file prescript_000.py” error

By Tum. | On Friday, February 19th, 2016 - No Comments »
PackStack gets “Failed to load plugin from file prescript_000.py” error

เมื่อทำการรัน packstack เพื่อ install openstack แล้วพบ error เหมือนด้านล่าง [root@openstack-liberty1 ~]# packstack --answer-file=answers.txt ERROR:root:Failed to load plugin from file prescript_000.py ERROR:root:Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 884, in loadPlugins moduleobj = __import__(moduleToLoad) File "/usr/lib/python2.7/site-packages/packstack/plugins/prescript_000.py", line 35, in <module> from packstack.modules.documentation import update_params_usage File "/usr/lib/python2.7/site-packages/packstack/modules/documentation.py",. 

How to fix memory leak from big nfs_inode_cache

By Tum. | On Thursday, December 3rd, 2015 - No Comments »
How to fix memory leak from big nfs_inode_cache

ได้รับแจ้งว่า Linux server เครื่องหนึ่งมีการใช้งาน memory เกินกว่า 90% ซึ่งทางผู้ดูแลตรวจสอบแล้วไม่พบว่ามี process ใดใช้งาน memory มาก ซึ่งผมได้เข้าไปตรวจสอบเบื้ยงต้นด้วยคำสั่ง free ก็ไม่พบอะไรผิดปรกติ [root@ezylinux ~]# free -m total used free shared buffers cached Mem: 7982 7885 97 0 . 

How to fix “loopback devices is strongly discouraged for production use” on Docker

By Tum. | On Monday, August 3rd, 2015 - No Comments »
How to fix “loopback devices is strongly discouraged for production use” on Docker

สำหรับคนที่ใช้ docker (1.6+) บน CentOS7 หรือ RHEL7 จะพบ warning เกิดขึ้นกังตัวอย่างด้านล่าง # docker run centos /bin/echo “ezylinux.com” Usage of loopback devices is strongly discouraged for production use. Either use --storage-opt dm.thinpooldev or use --storage-opt dm.no_warn_on_loop_devices=true to suppress this warning. warning นี้เกิดจาก docker ได้ตั้งค่าการใช้งาน storage เป็น devicemapper และสร้าง loopback device (ตัวอย่าง /dev/loop0) ขึ้นมา เนื่องจากไม่พบ. 

How to fix dead VLAN (4095) on neutron

By Tum. | On Saturday, July 4th, 2015 - No Comments »
How to fix dead VLAN (4095) on neutron

เมื่อทำการสร้าง network และ router บน OpenStack แล้ว แต่เครื่อง VM ใน network วงนี้ไม่สามารถ ping ไปยัง gateway หรือ router ได้ให้ตรวจสอบ VLAN ที่ได้ทำการ tag ใน openvswitch บนเครื่อง compute node และ network node ด้วยคำสั่ง ovs-vsctl show 123  ovs-vsctl show  และถ้าผลลัพธ์ แสดง tag: 4095 ดังตัวอย่าง Port. 

How to fix cloud-config not work with error “Failed loading yaml blob”

By Tum. | On Thursday, June 25th, 2015 - No Comments »
How to fix cloud-config not work with error “Failed loading yaml blob”

ถ้าหากมีการใช้งาน cloud-config บน EC2 instance บน AWS หรือ OpenStack แล้วพบว่าไม่ทำงานตามที่กำหนดไว้ และได้ตรวจสอบ error ก็พบข้อความ “Failed at merging in cloud config part from …” เหมือนตัวอย่างด้านล่าง 2014-05-10 12:14:12,458 - util.py[WARNING]: Failed loading yaml blob 2014-05-10 12:14:12,480 - util.py[WARNING]: Failed loading yaml blob 2014-05-10 12:14:12,481 - util.py[WARNING]: Failed at merging in cloud config part from part-001 12345  2014-05-10. 

MySQL ERROR 1206: The total number of locks exceeds the lock table size

By Tum. | On Thursday, June 25th, 2015 - No Comments »
MySQL ERROR 1206: The total number of locks exceeds the lock table size

ถ้าหากทำการรัน query บน table ที่มีจำนวน row มากมายมหาศาลบน InnoDB storage engine และได้ error ERROR 1206 (HY000): The total number of locks exceeds the lock table size 123  ERROR 1206 (HY000): The total number of locks exceeds the lock table size  สาเหตุ ERROR 1206 ช้างบน หมายถึง MySQL ไม่มีเนื้อที่เหลือพอที่จะสามารถเก็บทุก row lock ที่จะใช้ในการ.