Primeiro você precisa criar um sistema de arquivos no dispositivo de bloco antes de montá-lo.
Por exemplo:
mkfs.xfs /dev/sda
Eu adicionei um RAID de hardware ao meu servidor. Foi configurado com o LSI-MR9361-8i como um 87TiB RAID 10.
sudo fdisk -l
retorna:
Disk /dev/sda: 87.3 TiB, 96009698934784 bytes, 23439867904 sectors Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/sdb: 953.9 GiB, 1024209543168 bytes, 2000409264 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00005cd0
Device Boot Start End Sectors Size Id Type /dev/sdb1 * 2048 1050623 1048576 512M fd Linux raid autodetect /dev/sdb2 1050624 1052671 2048 1M 83 Linux /dev/sdb3 1052672 17829887 16777216 8G 82 Linux swap / Solaris /dev/sdb4 17829888 2000408575 1982578688 945.4G 5 Extended /dev/sdb5 17831936 2000408575 1982576640 945.4G fd Linux raid autodetect
Disk /dev/sdc: 953.9 GiB, 1024209543168 bytes, 2000409264 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x0001d3a4
Device Boot Start End Sectors Size Id Type /dev/sdc1 * 2048 1050623 1048576 512M fd Linux raid autodetect /dev/sdc2 1050624 1052671 2048 1M 83 Linux /dev/sdc3 1052672 17829887 16777216 8G 82 Linux swap / Solaris /dev/sdc4 17829888 2000408575 1982578688 945.4G 5 Extended /dev/sdc5 17831936 2000408575 1982576640 945.4G fd Linux raid autodetect
Disk /dev/md1: 945.2 GiB, 1014945021952 bytes, 1982314496 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x3ccf318f
Device Boot Start End Sectors Size Id Type /dev/md1p1 63 1445673284 1445673222 689.4G 83 Linux /dev/md1p2 1445673285 1982308544 536635260 255.9G 5 Extended /dev/md1p5 1445673348 1982308544 536635197 255.9G 82 Linux swap / Solaris
Disk /dev/md0: 512 MiB, 536805376 bytes, 1048448 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Quando eu vou montar / dev / sda com sudo mount /dev/sda /mnt/UB_RAID
eu recebo o seguinte erro.
mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
Obviamente, eu quero o 87TiB, mas o que está acontecendo aqui? Eu deveria ser capaz de montar isso facilmente.
Obrigado.