雖然最後發現目前的 ext4 還不支援大於 16TB 的 file system
還是先筆記一下,未來也許可以用到!
[root@localhost ~]# parted /dev/sdb # 使用parted来对GPT磁盘操作,进入交互式模式
GNU Parted 1.8.1 Using /dev/sdb Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) mklabel gpt # 将MBR磁盘格式化为GPT
(parted) print #打印当前分区
(parted) mkpart primary 0 4.5TB # 分一个4.5T的主分区
(parted) mkpart primary 4.5TB 12TB # 分一个7.5T的主分区
(parted) print #打印当前分区
(parted) quit 退出
Information: Don’t forget to update /etc/fstab, if necessary.
代碼: |
[root@eblaze00 home]# parted /dev/md1 GNU Parted 2.1 Using /dev/md1 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel New disk label type? y parted: invalid token: y New disk label type? gpt (parted) mkpart primary File system type? [ext2]? ext4 Start? 0 End? -1 Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? i (parted) print Model: Unknown (unknown) Disk /dev/md1: 22.0TB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 22.0TB 22.0TB primary (parted) quit Information: You may need to update /etc/fstab. |
參考資料:
Ext4 Howto
伺服器安裝第一首選 CentOS 6帶來寧靜革命
Ext4系統格式介紹
沒有留言:
張貼留言