Part 2
Hello Everyone,
I want to thank everyone for your help. I did get the raid 5 to work with 5 usb thumb drives. However I can't seem to mount them into a simply folder or drive letter. below is all my info I can think of to give you.
1. I want to be able to simply see the 5 drives as one drive.
2. I want to be able to map the drives to various family members some in the house and others in another city.
3. I don't care about speed or anything just that is holds the data. This is my oh crap the house is on fire little mini computer that I can grab and all my data is saved machine.
__________________________________________________ __________________________________________________ ___________________
monty@NAS:~ $ lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
NAME SIZE FSTYPE TYPE MOUNTPOINT
sda 1.9T disk
└─sda1 1.9T linux_raid_member part
└─md127 7.6T raid5
sdb 1.9T disk
└─sdb1 1.9T linux_raid_member part
└─md127 7.6T raid5
sdc 1.9T disk
└─sdc1 1.9T linux_raid_member part
└─md127 7.6T raid5
sdd 1.9T disk
└─sdd1 1.9T linux_raid_member part
└─md127 7.6T raid5
sde 1.9T disk
└─sde1 1.9T linux_raid_member part
└─md127 7.6T raid5
mmcblk0 119.4G disk
├─mmcblk0p1 256M vfat part /boot
└─mmcblk0p2 119.1G ext4 part /
__________________________________________________ __________________________________________________ ___________________
monty@NAS:~ $ sudo mdadm --detail /dev/md/vol1
/dev/md/vol1:
Version : 1.2
Creation Time : Sat Sep 11 15:59:22 2021
Raid Level : raid5
Array Size : 8191465472 (7811.99 GiB 8388.06 GB)
Used Dev Size : 2047866368 (1953.00 GiB 2097.02 GB)
Raid Devices : 5
Total Devices : 5
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sat Sep 11 17:29:38 2021
State : clean, degraded
Active Devices : 4
Working Devices : 5
Failed Devices : 0
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 512K
Consistency Policy : bitmap
Name : NAS:vol1 (local to host NAS)
UUID : 8573b247:39eaf031:adf781e0:e99a7467
Events : 328
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 65 1 active sync /dev/sde1
2 8 17 2 active sync /dev/sdb1
3 8 33 3 active sync /dev/sdc1
- 0 0 4 removed
5 8 49 - spare /dev/sdd1
__________________________________________________ __________________________________________________ ___________________
monty@NAS:~ $ sudo mkfs.ext4 /dev/md127
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 2047866368 4k blocks and 255983616 inodes
Filesystem UUID: e74a0996-39f7-46e9-8a72-3bee6edb3923
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
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: mkfs.ext4: Input/output error while writing out and closing file system <==== Failed
__________________________________________________ __________________________________________________ ___________________
monty@NAS:~ $ sudo fdisk -l /dev/sda
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sda: 1.9 TiB, 2097152000000 bytes, 4096000000 sectors
Disk model: Flash Disk
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: gpt
Disk identifier: 92F614EE-33EC-6945-ABC8-3FB798FE06EC
Device Start End Sectors Size Type
/dev/sda1 2048 4095999966 4095997919 1.9T Linux filesystem
monty@NAS:~ $ sudo fdisk -l /dev/sdb
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sdb: 1.9 TiB, 2097152000000 bytes, 4096000000 sectors
Disk model: ProductCode
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: gpt
Disk identifier: 46216C9D-2202-8E40-8908-527B613911D0
Device Start End Sectors Size Type
/dev/sdb1 2048 4095999966 4095997919 1.9T Linux filesystem
monty@NAS:~ $ sudo fdisk -l /dev/sdc
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sdc: 1.9 TiB, 2097152000000 bytes, 4096000000 sectors
Disk model: ProductCode
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: gpt
Disk identifier: A6796A45-2BB9-2B4A-8050-B63AB0A44207
Device Start End Sectors Size Type
/dev/sdc1 2048 4095999966 4095997919 1.9T Linux filesystem
monty@NAS:~ $ sudo fdisk -l /dev/sdd
Disk /dev/sdd: 1.9 TiB, 2097152000000 bytes, 4096000000 sectors
Disk model: ProductCode
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: gpt
Disk identifier: 98B6478B-AF3A-AF48-8064-82C3357E58EE
Device Start End Sectors Size Type
/dev/sdd1 2048 4095999966 4095997919 1.9T Linux filesystem
monty@NAS:~ $ sudo fdisk -l /dev/sde
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sde: 1.9 TiB, 2097152000000 bytes, 4096000000 sectors
Disk model: ProductCode
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: gpt
Disk identifier: BEF3AFF5-E4BC-F348-9944-01F000EF0913
Device Start End Sectors Size Type
/dev/sde1 2048 4095999966 4095997919 1.9T Linux filesystem
__________________________________________________ __________________________________________________ ___________________
monty@NAS:~ $ cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md127 : active raid5 sde1[1] sdd1[5](S) sdc1[3] sda1[0] sdb1[2]
8191465472 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/4] [UUUU_]
bitmap: 16/16 pages [64KB], 65536KB chunk
unused devices: <none>
__________________________________________________ __________________________________________________ ___________________
monty@NAS:~ $ blkid
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="B05C-D0C4" TYPE="vfat" PARTUUID="ea3da200-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="075b0d0c-7b1e-4855-9547-125591698723" TYPE="ext4" PARTUUID="ea3da200-02"
/dev/sda1: UUID="8573b247-39ea-f031-adf7-81e0e99a7467" UUID_SUB="a437ffd6-2d1c-14a7-72bb-167f5ae5053c" LABEL="NAS:vol1" TYPE="linux_raid_member" PARTUUID="f6603124-01bc-484b-8a04-6c072782f320"
/dev/sdb1: UUID="8573b247-39ea-f031-adf7-81e0e99a7467" UUID_SUB="31aa01dd-8184-cfdc-4e17-9a5d51b2baef" LABEL="NAS:vol1" TYPE="linux_raid_member" PARTUUID="8d7064c5-f8bb-1c44-9e67-1278845c855b"
/dev/sdc1: UUID="8573b247-39ea-f031-adf7-81e0e99a7467" UUID_SUB="e66c2700-b587-141a-500e-260d83ca30f9" LABEL="NAS:vol1" TYPE="linux_raid_member" PARTUUID="f13efa61-7c1f-7941-8f8a-c62268e29616"
/dev/sdd1: UUID="8573b247-39ea-f031-adf7-81e0e99a7467" UUID_SUB="9ef608c4-466d-60cb-b624-9862f041757a" LABEL="NAS:vol1" TYPE="linux_raid_member" PARTUUID="4c4a6d8b-e000-e04b-8bb8-854554056e4c"
/dev/sde1: UUID="8573b247-39ea-f031-adf7-81e0e99a7467" UUID_SUB="bffb2a7f-b102-8400-f428-a1cab5d071c9" LABEL="NAS:vol1" TYPE="linux_raid_member" PARTUUID="becfb34b-540e-9545-91ac-3d559796bdaf"
__________________________________________________ __________________________________________________ ____________________________________
Part 1
Hello Everyone,
My name is Jonathan and I am new to using Ubuntu. I started off wanting to 3d print then got into Octopi and now I want to make a NAS. I have a RPI 4 8GB with a USB Hat. I have 6 available slots and each slot has a 2TB Thumb Drive. I am following this guide: https://www.ricmedia.com/build-raspb...id-nas-server/ and I am getting hung up on Section Setup Drives and Raid Volume. I type everything exactly. I have even formatted the USB drives multiple times and formatted my MicroSD card many times as well thinking the install messed up. I did notice my sudo blkid has extra in it the Label_Fatboot="boot". I don't know why this is. Please can someone help me. I want to put my 6 2TB USB drives into Raid 6 so I can network map this to one drive instead of 6 drives. If no one know how to do this I guess I will just map 6 different drives. Oh and I installed Samba and MDADM. I thank you in advance for any help you can give me.
pi@NAS:~ $ sudo blkid
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="B05C-D0C4" TYPE="vfat" PARTUUID="c70dc193-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="075b0d0c-7b1e-4855-9547-125591698723" TYPE="ext4" PARTUUID="c70dc193-02"
/dev/sda1: LABEL="USB02" UUID="AE9A-60DC" TYPE="exfat" PARTUUID="fa2cb833-01"
/dev/sdb1: LABEL="USB04" UUID="50D4-C2AC" TYPE="exfat" PARTUUID="fa2cb833-01"
/dev/sdc1: LABEL="USB01" UUID="3682-823D" TYPE="exfat" PARTUUID="a2b75359-01"
/dev/sdd1: LABEL="USB05" UUID="08EF-AA4D" TYPE="exfat" PARTUUID="fa2cb833-01"
/dev/sde1: LABEL="USB06" UUID="820A-61DE" TYPE="exfat" PARTUUID="fa2cb833-01"
/dev/sdf1: LABEL="USB03" UUID="ACBC-C8FC" TYPE="exfat" PARTUUID="fa2cb833-01"
/dev/mmcblk0: PTUUID="c70dc193" PTTYPE="dos"
pi@NAS:~ $ sudo mdadm --create --verbose /dev/md/vol1 --level=6 --raid-devices=6 /dev/sd[a1-f1]
mdadm: layout defaults to left-symmetric
mdadm: layout defaults to left-symmetric
mdadm: super1.x cannot open /dev/sda: Device or resource busy
mdadm: ddf: Cannot use /dev/sda: Device or resource busy
mdadm: Cannot use /dev/sda: It is busy
mdadm: cannot open /dev/sda: Device or resource busy
Bookmarks