enlarge ubuntu root partition in vmware

March 12, 2017

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

Ubuntu Open file limit

February 23, 2016

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

build hybla for ubuntu 14.04

October 27, 2015

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

© 2018 | Follow on Twitter | Hucore theme & Hugo