I need to update newer version of CentOS 7 kernel to allow my server to use Docker with OverlayFS. Identify the server kernel Navigate to the boot directory Download the kernel Regenerate grub2 Reboot the server
Tag Archives: linux
mount: unknown filesystem type overlay
You need Linux kernel 3.14++ to use overlayFS. I need to use overlayFS because Docker recommend to use it The devicemapper storage driver is deprecated in Docker Engine 18.09, and will be removed in a future release. It is recommended that users of the devicemapper storage driver migrate to overlay2. It doesn’t work So, I try to update the newest Continue reading “mount: unknown filesystem type overlay”
Install Tinyproxy on Centos 7
mongoexport and mongoimport with query from one host to one host
I would like to query the data that I need only from a server to another server, and I just use one line of command in linux shell mongoexport -h fromHost.com -d fromDB -c fromCollection -q ‘{ count: { $gte: 1 } }’ | mongoimport -h toHost.com -d toNewDB -c toNewCollection If your date is Continue reading “mongoexport and mongoimport with query from one host to one host”
Fast way to find duplicate data in MongoDB
I need to find out the duplicate data content in my 40 Millions records, then I can make the unique index to my name field. > db.collecton.aggregate([ … { $group : {_id : “$field_name”, total : { $sum : 1 } } }, … { $match : { total : { $gte : 2 } Continue reading “Fast way to find duplicate data in MongoDB”
ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5)
You may found this error from your php-fpm and the php-fpm crash tail /var/log/php-fpm/error.log [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5) [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 17777: Input/output error (5) [15-May-2016 12:24:13] ERROR: failed to ptrace(PEEKDATA) pid 18886: Input/output error (5) [15-May-2016 12:25:53] ERROR: failed to ptrace(PEEKDATA) pid 17232: Continue reading “ERROR: failed to ptrace(PEEKDATA) pid 17402: Input/output error (5)”
WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.
After I install MongoDB 3.2.3 in Centos 7, I received this error when I start mongo in shell. Solution Create the init.d script. Create the following file at /etc/init.d/disable-transparent-hugepages: Make it executable. Run the following command to ensure that the init script can be used:
WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied
[root@master ~]# mongo MongoDB shell version: 3.2.3 connecting to: test Server has startup warnings: 2016-02-29T23:11:36.666+0700 I CONTROL [initandlisten] 2016-02-29T23:11:36.667+0700 I CONTROL [initandlisten] ** WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied 2016-02-29T23:11:36.667+0700 W CONTROL [initandlisten] 2016-02-29T23:11:36.667+0700 W CONTROL [initandlisten] Failed to probe “/sys/kernel/mm/transparent_hugepage”: Permission denied 2016-02-29T23:11:36.667+0700 W CONTROL [initandlisten] Continue reading “WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe “/sys/devices/system/node/node1”: Permission denied”
Remove WordPress Malware using Linux Shell Console
Finding all files containing a text string on Linux or Mac
I need to find some string in all folders. grep -rnw ‘./folder/’ -e “search-text” Note: -r is recursive -n is line number -w stands match the whole word
