You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hugo_backup/content/post/transfer-cent62-using-rsync.md

56 lines
1.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
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"
---
公司的一台老伺服器空間不足了,要執行指令都會中斷,所以想要擴充空間。
看起來不難搞,事實上.....
<!--more-->
因為前人的功績,所以這台當初的磁碟分割有點「特別」!
實體硬碟是兩顆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 的差異在哪裡?為什麼要特別切兩個分割給這兩個目錄用?
快下班了,明天再來寫...