March 12, 2017

enlarge ubuntu root partition in vmware

I have a ubuntu vmware guest with 30Gb root partition, but it’s not enough after restore data from production environment, so I have to enlarge it. shutdown ubuntu enlarge partition on vmware guest setting start ubuntu, it’s better use text mode sudo fdisk /dev/sda (I have only one device in ubuntu, sda) delete swap partition and root partition with d command (yes, delete all partitions) create root partition (primary partition) with n command, be careful the start selector must be as same as old root partition (default is good), end selector is the size what you want the partition be, e. Read more

February 23, 2016

Ubuntu Open file limit

UPDATE:If you run supervisor as root, just set minfds to right value (32K or 64K), supervisor will increase hard limit value if current value is not enough and run as root, it’s the simplest way! Several days ago, my elasticsearch came across Too Many Open files error, the straight forward way is modify ulimit conf, but today I came across this error again, so I walk a wrong way before. Read more

October 27, 2015

build hybla for ubuntu 14.04

When I modify some ipv4 config for system I got an error like this: sysctl: setting key "net.ipv4.tcp_congestion_control": No such file or directory, so I followed this post to build a kernel module for ubuntu 14.04 The net/ipv4 hybla Makefile(bad script format in original post): # Makefile for tcp_hybla.ko obj-m := tcp_hybla.o KDIR := /home/dejavu/linux-4.1.5 PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules I also got a warning during build modules: No X. Read more

Powered by Hugo & Kiss.