RAID array missing after reboot

Etienne etienne.misc at magickarpet.org
Mon May 1 08:02:03 PDT 2017


Hello list,

I'm new to DragonflyBSD (and to FreeBSD either), and I tried to apply 
the recipe on:
https://www.dragonflybsd.org/docs/docs/howtos/howtosoftwareraid/

```
# natacontrol list
ATA channel 0:
     Master:      no device present
     Slave:       no device present
ATA channel 1:
     Master:      no device present
     Slave:       no device present
ATA channel 2:
     Master:  ad4 <WDC WD10EURX-73FH1Y0/01.01A01> Serial ATA II
     Slave:   ad5 <WDC WD10EURX-73FH1Y0/01.01A01> Serial ATA II
ATA channel 3:
     Master:  ad6 <WDC WD10EURX-73FH1Y0/01.01A01> Serial ATA II
     Slave:   ad7 <WDC WD10EURX-73FH1Y0/01.01A01> Serial ATA II
```

I created a RAID0+1 array, fdisked it, disklabeled it, created three 
partitions, formatted them with HAMMER, added the entries in /etc/fstab, 
and later, rebooted. But after startup, the array is not there anymore. 
If I re-create it, I can immediately mount my partitions again (the ones 
under /mnt):

```
# natacontrol create RAID0+1 128 ad4 ad5 ad6 ad7
ar0 created
mosquito# mount -a
mosquito# df -h
Filesystem                            Size   Used  Avail Capacity  
Mounted on
[...]
tmpfs                                 478M     0B   478M     0%    /tmp
procfs                               4096B  4096B     0B   100%    /proc
HOME                                  499G   228M   499G     0%    
/mnt/home
DATA                                  499G   228M   499G     0%    
/mnt/data
MEDIA                                 862G   228M   862G     0%    
/mnt/media
```

And in my dmesg, the following lines have appeared:

```
ar0: 1907739MB <VIA Tech V-RAID RAID0+1 (stripe 64 KB)> status: READY
ar0: disk0 READY (master) using ad4 at ata2-master
ar0: disk1 READY (master) using ad5 at ata2-slave
ar0: disk2 READY (mirror) using ad6 at ata3-master
ar0: disk3 READY (mirror) using ad7 at ata3-slave
HAMMER(HOME) recovery check seqno=000fffff
HAMMER(HOME) recovery range 3000000000000000-3000000000000000
HAMMER(HOME) recovery nexto 3000000000000000 endseqno=00100000
HAMMER(HOME) mounted clean, no recovery needed
HAMMER(DATA) recovery check seqno=000fffff
HAMMER(DATA) recovery range 3000000000000000-3000000000000000
HAMMER(DATA) recovery nexto 3000000000000000 endseqno=00100000
HAMMER(DATA) mounted clean, no recovery needed
HAMMER(MEDIA) recovery check seqno=001bbfff
HAMMER(MEDIA) recovery range 3000000000000000-3000000000000000
HAMMER(MEDIA) recovery nexto 3000000000000000 endseqno=001bc000
HAMMER(MEDIA) mounted clean, no recovery needed
```

I thought maybe the creation of the array is depending on the nataraid 
module, so I added `nataraid_load="YES"` to /boot/loader.conf, but that 
doesn't seem to change anything. Any other idea on what I could be doing 
wrong? Does the array need to be re-created at every reboot, and if so, 
how? I have attached my dmesg output if that's any useful.

Cheers,

-- 
Etienne
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmesg
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20170501/b0c47ba5/attachment-0004.ksh>


More information about the Users mailing list