解決centos下磁碟無法掛載超過2T大小磁碟解決方案

來源:互聯網
上載者:User

解決centos下磁碟無法掛載超過2T大小磁碟解決方案

磁碟分割格式MBR限制了單塊磁碟大小為2TB,如果想掛載超過2TB的磁碟,就要換成其他格式如GPT格式。

因為協助客戶使用OnApp搭建雲平台,儲存先用6TB在測試,所以需要通過其他格式來掛載這6TB的磁碟。分享下Linux上(我用的CentOS5.9 x86_64)掛載使用6TB的Dell MD3600f硬體儲存的方法:

[root@demo ~]# 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
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?
parted: invalid token: gpt
Yes/No? yes
New disk label type? [gpt]? 按下Enter鍵
(parted) print

Model: DELL MD36xxf (scsi)
Disk /dev/sdb: 6000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags

(parted) mkpart primary 0 -1 #將整個磁碟空間全部分為一個區
(parted) print

Model: DELL MD36xxf (scsi)
Disk /dev/sdb: 6000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 6000GB 6000GB primary

(parted) quit
Information: Don’t forget to update /etc/fstab, if necessary

硬體儲存已經映射到Hypervisor伺服器上了,所以不用再編輯/etc/fstab了。到這裡就完成了CentOS 上掛載6TB磁碟。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.