伺服器操作參考PDF 連結:https://pan.baidu.com/s/1bYI3qJ_RntqNZ4ehP9AIiQ 密碼:31wn (注意加硬碟的時候,最好機器關機斷電之後再插盤)我這邊重構的時候把raid1改成了raid5,沒有問題。
重構100%之後,進linux系統裡操作(分區大于2T,用parted):
parted網上都有,我這邊也引用别人操作,會用fdisk,基本上都能看懂:
[[email protected] ~]# parted /dev/sdb #進入/dev/sdb進行分區 GNU Parted 2.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mktable New disk label type? New disk label type? gpt #選擇分區格式為gpt Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? #這是一個警告,說是如果對這個這邊進行分區,資料将會被覆寫而且資料會丢失,問你是否繼續? Yes/No? y #輸入“y”,表示确定,進行下一步 (parted) mkpart #在指令行輸出分區指令 Partition name? []? primary #分區類型為主分區,這是給分區起個名字,你可以自定義的,可以不用寫我這裡的參數,這裡沒有擴充分區一說,都是主分區。 File system type? [ext2]? ext4 #設定檔案系統為ext4 Start? 0 #設定起始配置設定位置 End? 2G #設定結束配置設定位置 Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? i #輸入i,忽略此提示即可 (parted) mkpart #繼續分區 Partition name? []? primary #自定義名稱 File system type? [ext2]? ext4 #指定檔案系統格式為ext4 Start? 2G #由于上塊磁盤分區的結束位置是2G,是以我們從最2G開始配置設定即可 End? 5G #定義結束位置為5G (parted) mkpart #繼續分區 Partition name? []? primary #自己自定義一個名字 File system type? [ext2]? ext4 #設定檔案系統為ext4 Start? 5G #設定卷标的起始位置 End? 100% #輸入100%,表示将剩下的所有容量都配置設定給該分區. (parted) p #列印分區結果 Model: VMware, VMware Virtual S (scsi) Disk /dev/sdb: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 2000MB 2000MB primary 2 2001MB 5000MB 2999MB primary 3 5000MB 21.5GB 16.5GB primary (parted) quit #退出分區模式,不需要輸入儲存的按鈕,退出來它會自動儲存分區表資訊。 Information: You may need to update /etc/fstab.
轉載于:https://www.cnblogs.com/lp19910807/p/9268367.html