UFS Adding 4 new drives (software raid 5)

Hello, I have a bios raid 5 (software raid) that I am trying to make usable but I seem to be going in circles. The drives 4 brand new 10tb wd reds (they have no data)


graid status gives me
Code:
Name      Status
raid/r0   OPTIMAL    ada0 (ACTIVE(ACTIVE))
raid/r0   OPTIMAL    ada1 (ACTIVE(ACTIVE))

raid/r1 SUBOPTIMAL    ada2 (ACTIVE f(UNINITIALIZED))
                                 ada3 (ACTIVE (UNINITIALIZED))
                                 ada4 (ACTIVE (UNINITIALIZED))
                                 ada5 (ACTIVE (UNINITIALIZED))


Code:
fdisk /dev/raid/r1 gives me
fdisk: invalid fdisk partition table found

The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

sade gives me the error
Code:
Read-only file system.  geom 'raid/r1'

This guide tells me to use gpart
https://www.freebsd.org/doc/handbook/disks-adding.html

gpart create -s GTP /dev/raid/r1
Code:
gpart: geom 'raid/r1': Read-only file system

gpart create -s GTP /dev/ada2
Code:
gpart: geom 'ada2': Operation not permitted

Thanks to any help you can give
 
the example that this tutorial gives
https://www.freebsd.org/doc/handbook/geom-graid.html

I am suppose to have 'graid status' of active active.
I think the first thing to figure out is how to mount the drive as read/write. I tried to edit fstab (copying the os) but that was a mess

I also deleted the software raid in the bios and created the paritions on each drive, then remade the partition in the bios but I get the same errors.

I wish the documentation would say what to do in the event that the drives report ACTIVE UNINITIALIZED
 
I wish the documentation would say what to do in the event that the drives report ACTIVE UNINITIALIZED
This looks like it's specific to your RAID card/BIOS. You typically initialize the drive sets when you create the RAID configuration in the card's BIOS. So it looks like the RAID set wasn't completely set up in the BIOS.
 
Hello and thank you for the reply.

I did not see any options to initialize the drives in the bios or the 'ctl + I' screen. The drives are brand new.

Do you have any idea why I cannot mount the file system?

mount -o rw /dev/raid/r1 /mnt
Code:
mount: /dev/raid/r1: Read-only file system

I feel like if i can mount it then I can use gpart to initialize



Here is the fstab, raid1 is not mounted (raid0 is the os mirror)
cat /etc/fstab
Code:
#Device        Mountpoint     FStype    Options    Dump   Pass#
/dev/raid/r0s1a    /               ufs          rw          1            1
/dev/raid/r0s1b    none         swap       sw          0            0
 
Yes, the reason is probably because the RAID set is still uninitialized, in other words, it's not ready for use yet.

Note that you typically don't mount a disk directly, you'll need to create a partition table, a partition and a filesystem first.
 
So i went to a hardware raid card and now it works....

Code:
# gpart create -s GPT mfid1
# gpart add -t freebsd-ufs -a 1M mfid1
# newfs -U /dev/mfidp1
# mkdir /mydata
# mount -o rw /dev/mfid1p1 /mydata


Thanks for helping
 
Back
Top