我目前是三个磁盘。
固态硬盘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,内容位置全选