aws linux partition resize

http://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/ebs-expand-volume.html#recognize-expanded-volume-linux 1、AWS console EC2 resizse 2、login EC2 2.1、 lsblk get info to disk size. Is resize ok? 2.2 resize2fs /dev/xvda1 If 2.2 finish, then resize faild. follow 2.3 2.3 parted /dev/xvda 2.3.1 parted> print all -> get disk real size 2.3.2 parted> resizepart 2.3.3 parted> 1 2.3.4 parted End?>put size is 2.3.1 2.3.5 parted>exit then 2.2 again. If ok then 2.1 check age. PS: 2.3.4 End?> -1 -1 最大磁碟空間

2017-08-01 · 1 min · 69 words · Me

[轉]谁吃了我的Linux内存?

http://colobu.com/2017/03/07/what-is-in-linux-cached/#more slabtop -s c ====================== pcstat https://github.com/tobert/pcstat #!/bin/bash #you have to install pcstat if \[ ! \-f /data0/brokerproxy/pcstat \] then echo "You haven't installed pcstat yet" echo "run \\"go get github.com/tobert/pcstat\\" to install" exit fi #find the top 10 processs' cache file ps \-e -o pid,rss|sort -nk2 -r|head -10 |awk '{print $1}'\>/tmp/cache.pids #find all the processs' cache file #ps -e -o pid>/tmp/cache.pids if \[ \-f /tmp/cache.files \] then echo "the cache.files is exist, removing now " rm \-f /tmp/cache.files fi while read line do lsof -p $line 2\>/dev/null|awk '{print $9}' >>/tmp/cache.files done</tmp/cache.pids if \[ \-f /tmp/cache.pcstat \] then echo "the cache.pcstat is exist, removing now" rm \-f /tmp/cache.pcstat fi for i in \`cat /tmp/cache.files\` do if \[ \-f $i \] then echo $i >>/tmp/cache.pcstat fi done /data0/brokerproxy/pcstat \`cat /tmp/cache.pcstat\` rm \-f /tmp/cache.{pids,files,pcstat}

2017-07-27 · 1 min · 132 words · Me

netdata io

https://my-netdata.io/

2017-04-24 · 1 min · word · Me

ubuntu lvm 新增硬碟

http://blog.xuite.net/m740138.m740138/blog/31793294-LVM%E5%AF%A6%E6%88%B0 要注意的地方是 硬碟分割完之後,partion id要設8e (linux lvm) https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/ ====== 說明 第一部份: 實體磁區先切 第二部份:加到LVM 第三部份:更新系統 第一部份: 兩種方式 A. fdisk B.gparted (圖形) 基本上建議用B. 去下載 http://gparted.org/ iso,掛到虛擬機上 vmware F2 進bios 改光碟開機,然後用圖形化介面,把磁碟擴展。 如果用A. 方法是 把多的空間建立partition,問題在於partition會越建越多,比較不推 通用部份: fdisk -l 請記得 要看兩個地方: DISK /dev/sda xxxxxG DISK /dev/mapper/xxxxxxxx xxxxxG 兩個部份是目前硬碟空間使用情況 第二部份: 先用pvscan 看有沒有free空間 再來加到LVM, lvextend -L +xxxxG /dev/ubuntu-vg/root //注意,這裡請用lvdisplay 第三部份: resize2fs /dev/ubuntu-vg/root

2016-08-10 · 1 min · 54 words · Me

linux mint 最新版中的gcin常常失效,換hime

gcin不知道什麼原故,常常一下能用,一下不能用,完全搞不懂!! 一下line(wine)不行,一下chrome不行,一下sheel下不行,重啟也沒用,看設定是完全正確的!本來想去官方問,看了一下,沒有人有這問題,發問要註冊,就懶了…再試用幾天,今天最扯,明明上一分鐘chrome能打嘸蝦米,下一分鐘就不能打,注音也是,按ctrl+space也不行,切來切去,又重啟gcin,進系統砍,反正試到最後…放棄了! 就在找其他輸入法時,切回chrome時,又能輸入嘸蝦米了……注音又能輸入了…到底gcin在搞什麼鬼,所以現在決定換成hime,希望不要再發生這種非常無理頭的事情… http://itechlogger.blogspot.com/2013/11/linux-mint.html http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=234&blogId=1 http://hime.luna.com.tw/

2014-07-04 · 1 min · 6 words · Me