我目前是三個磁盤。
固態硬盤2TB。
2個3.5寸機械硬盤,每個12TB。
格式化2個12TB的磁盤,一行一行執行。
mkfs -t ext4 /dev/sda
mkfs -t ext4 /dev/sdb
參考輸出
root@bobokaka:~# mkfs -t ext4 /dev/sda
mke2fs 1.46.5 (30-Dec-2021)
Found a gpt partition table in /dev/sda
Proceed anyway? (y,N) y
Creating filesystem with 2929721344 4k blocks and 366215168 inodes
Filesystem UUID: 361c82d6-49a6-4647-8d2f-79d759248ed2
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544, 1934917632,
2560000000
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information:
done
root@bobokaka:~#
使用掛載命令掛載
mkdir /mnt/sda
mkdir /mnt/sdb
mount /dev/sda /mnt/sda
mount /dev/sdb /mnt/sdb
開啓開機自動掛載
cp /etc/fstab /etc/fstab.bak
vim /etc/fstab
將下面命令放在最後
/dev/sda /mnt/sda ext4 defaults 0 0
/dev/sdb /mnt/sdb ext4 defaults 0 0
點擊數據中心-存儲-添加-目錄
ID隨意填寫,目錄爲掛載的目錄/mnt/sdc1,內容位置全選