From 3823641641cd06498f702af51c7c88dafda81d6f Mon Sep 17 00:00:00 2001 From: Eric Chang Date: Wed, 27 Mar 2019 22:00:02 +0800 Subject: [PATCH] hugo daily push 2019-03-27 22:00:01 --- content/post/transfer-cent62-using-rsync.md | 55 +++ public/404.html | 10 +- public/author/eric-chang/index.html | 163 ++++--- public/author/eric-chang/index.xml | 14 +- public/author/eric-chang/page/2/index.html | 87 +++- public/author/index.html | 12 +- public/author/index.xml | 2 +- public/categories/index.html | 12 +- public/categories/index.xml | 2 +- public/categories/ps/index.html | 10 +- public/categories/碎念/index.html | 10 +- public/categories/筆記/index.html | 167 ++++--- public/categories/筆記/index.xml | 14 +- public/categories/筆記/page/2/index.html | 91 +++- public/categories/群暉/index.html | 10 +- public/en/sitemap.xml | 21 +- public/gallery/index.html | 10 +- public/gallery/sammy93/index.html | 10 +- public/index.html | 167 ++++--- public/index.json | 7 + public/index.xml | 14 +- public/page/2/index.html | 89 +++- .../index.html | 10 +- .../post/ansible-selectattr-filter/index.html | 10 +- public/post/ansible-selectattr/index.html | 10 +- public/post/bookstack-docker/index.html | 10 +- .../index.html | 10 +- .../post/command_to_test_main_ssl/index.html | 10 +- public/post/copy_role_in_pgsql/index.html | 10 +- .../index.html | 10 +- .../enable-synology-public-ssh/index.html | 10 +- .../incredibly-slow-mdadm-rebuild/index.html | 10 +- public/post/index.html | 163 ++++--- public/post/index.xml | 14 +- .../index.html | 10 +- .../index.html | 10 +- .../post/nice-du-report-tool-durep/index.html | 10 +- public/post/page/2/index.html | 87 +++- .../index.html | 10 +- .../synology-ds415-repair-cost/index.html | 10 +- .../transfer-cent62-using-rsync/index.html | 423 ++++++++++++++++++ .../index.html | 10 +- .../weird-client-server-connection/index.html | 10 +- public/sitemap.xml | 2 +- public/tags/10g/index.html | 10 +- public/tags/ansible/index.html | 10 +- public/tags/backup/index.html | 10 +- public/tags/bookstack/index.html | 10 +- public/tags/centos/index.html | 383 ++++++++++++++++ public/tags/centos/index.xml | 26 ++ public/tags/centos/page/1/index.html | 1 + public/tags/docker/index.html | 10 +- public/tags/du/index.html | 10 +- public/tags/firefox/index.html | 10 +- public/tags/freenas/index.html | 10 +- public/tags/index.html | 14 +- public/tags/index.xml | 11 +- public/tags/linux/index.html | 86 +++- public/tags/linux/index.xml | 14 +- public/tags/mdadm/index.html | 10 +- public/tags/mellanox/index.html | 10 +- public/tags/metabase/index.html | 10 +- public/tags/nas/index.html | 10 +- public/tags/ps/index.html | 10 +- public/tags/psql/index.html | 10 +- public/tags/raid/index.html | 10 +- public/tags/ssh/index.html | 10 +- public/tags/synology/index.html | 10 +- public/tags/ubuntu/index.html | 10 +- public/tags/vim/index.html | 10 +- public/tags/短今/index.html | 10 +- public/tags/筆記/index.html | 10 +- public/tags/群暉/index.html | 10 +- 73 files changed, 1975 insertions(+), 616 deletions(-) create mode 100644 content/post/transfer-cent62-using-rsync.md create mode 100644 public/post/transfer-cent62-using-rsync/index.html create mode 100644 public/tags/centos/index.html create mode 100644 public/tags/centos/index.xml create mode 100644 public/tags/centos/page/1/index.html diff --git a/content/post/transfer-cent62-using-rsync.md b/content/post/transfer-cent62-using-rsync.md new file mode 100644 index 00000000..f23ccbe4 --- /dev/null +++ b/content/post/transfer-cent62-using-rsync.md @@ -0,0 +1,55 @@ +--- +title: "[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync" +date: 2019-03-27T17:44:49+08:00 + +noSummary: false +featuredImage: "https://h.cowbay.org/images/post-default-09.jpg" +categories: ['筆記'] +tags: ['centos','linux'] +author: "Eric Chang" +--- + +公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。 + +看起來不難搞,事實上..... + + +因為前人的功績,所以這台當初的磁碟分割有點「特別」! + +實體硬碟是兩顆500G SATA + +然後各切三個 partition (sda1/sda2/sda3 and sdb1/sdb2/sdb3) + +sda2/sdb2 用250M 來組 raid1 (/dev/md0) 給 /boot 用 + +sda1/sdb1 各用40G 組raid1 (/dev/md1) 做成LVM 的VG ,然後再切出四個大小不同的分割 +``` +* / (sysvg-root) +* /usr (sysvg-usr) +* /var (sysvg-var) +* /tmp (sysvg-tmp) + +``` + +What the Fuck !?!? 然後最好笑的是,40G的空間,還留了2G,可以讓後面的倒楣鬼(對,就是我) + +在碰到空間不足的問題時,還可以「擴充」 + + +然後剩下的sda3/sdb3 大概有四百多G空間,一樣是組raid1 然後分割給這些目錄用 + +``` +* /data (datavg-datatest) (對的,沒有錯 真的叫 datavg-datatest,媽的你test個鬼啊!還在test的東西直接上線使用?) +* /web (datavg-web) +* /www (datavg-www) +* /home (datavg-home) +``` + +幹!誰可以告訴我 www/web 的差異在哪裡?為什麼要特別切兩個分割給這兩個目錄用? + +快下班了,明天再來寫... + + + + + diff --git a/public/404.html b/public/404.html index 20ecbd4d..50ff5a6f 100644 --- a/public/404.html +++ b/public/404.html @@ -115,6 +115,10 @@ Latest posts @@ -153,7 +153,7 @@