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 --------------
Copyright (c) 2003-2017 The DragonFly Project.
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
DragonFly v4.8.0-RELEASE #4: Sun Mar 26 20:55:22 EDT 2017
    root at www.shiningsilence.com:/usr/obj/home/justin/release/4_8/sys/X86_64_GENERIC
i8254 clock: 1193239 Hz
TSC invariant clock: 1497515143 Hz
CPU: AMD Turion(tm) II Neo N40L Dual-Core Processor (1497.52-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x100f63  Stepping = 3
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802009<SSE3,MON,CX16,POPCNT>
  AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x837ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,NodeId>
  MONITOR/MWAIT Features=0x2<INTBRK>
real memory  = 2112027648 (2014 MB)
avail memory = 1940111360 (1850 MB)
lapic: divisor index 0, frequency 99834106 Hz
srat_probe: can't locate SRAT
SMI Frequency (worst case): 790 Hz (1265 us)
Initialize MI interrupts
cpu0: AMD C1E detected
cpu1: AMD C1E detected
module ataraid already present!
wdog: In-kernel automatic watchdog reset enabled
kbd1 at kbdmux0
md0: Malloc disk
interrupt uses mplock: swi_taskq
ACPI: RSDP 0x00000000000F8F50 000024 (v02 HP    )
ACPI: XSDT 0x000000007DFA0100 00007C (v01 HP     ProLiant 20110729 HP   00000097)
ACPI: FACP 0x000000007DFA0290 0000F4 (v03 HP     ProLiant 20110729 HP   00000097)
ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 64/32 (20170303/tbfadt-750)
ACPI: DSDT 0x000000007DFA0620 006947 (v01 HP     ProLiant 00000006 INTL 20051117)
ACPI: FACS 0x000000007DFAE000 000040
ACPI: FACS 0x000000007DFAE000 000040
ACPI: APIC 0x000000007DFA0390 000072 (v01 HP     ProLiant 20110729 HP   00000097)
ACPI: MCFG 0x000000007DFA0410 00003C (v01 HP     ProLiant 20110729 HP   00000097)
ACPI: SPMI 0x000000007DFA0450 000041 (v05 HP     ProLiant 20110729 HP   00000097)
ACPI: OEMB 0x000000007DFAE040 000072 (v01 HP     ProLiant 20110729 HP   00000097)
ACPI: HPET 0x000000007DFAB4E0 000038 (v01 HP     ProLiant 20110729 HP   00000097)
ACPI: EINJ 0x000000007DFAB520 000130 (v01 AMIER  AMI_EINJ 20110729 HP   00000097)
ACPI: BERT 0x000000007DFAB6B0 000030 (v01 AMIER  AMI_BERT 20110729 HP   00000097)
ACPI: ERST 0x000000007DFAB6E0 0001B0 (v01 AMIER  AMI_ERST 20110729 HP   00000097)
ACPI: HEST 0x000000007DFAB890 0000A8 (v01 AMIER  ABC_HEST 20110729 HP   00000097)
ACPI: SSDT 0x000000007DFAB940 000458 (v01 HP     ProLiant 00000001 AMD  00000001)
cryptosoft0: <software crypto> on motherboard
aesni0: No AESNI support.
padlock0: No ACE support.
rdrand0: No RdRand support.
acpi0: <HP ProLiant> on motherboard
ACPI: Executed 2 blocks of module-level executable AML code
ACPI: 2 ACPI AML tables successfully acquired and loaded
ACPI FADT: SCI testing interrupt mode ...
ACPI FADT: SCI select level/low
ACPI: Dynamic OEM Table Load:
ACPI: OEMN 0xFFFFFF80AC2EBD00 000624 (v01 AMD    NAHP     00000001 INTL 20051117)
acpi0: Power Button (fixed)
ACPI HPET table warning: Sequence is non-zero (2)
acpi_timer0 on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
acpi_hpet0: frequency 14318180
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xd000-0xd0ff mem 0xfe600000-0xfe6fffff,0xfe7f0000-0xfe7fffff,0xfc000000-0xfdffffff irq 18 at device 5.0 on pci1
vgapci0: Boot video device
pcib2: <ACPI PCI-PCI bridge> irq 18 at device 2.0 on pci0
pci2: <ACPI PCI bus> on pcib2
em0: <Intel(R) PRO/1000 Network Connection 82571EB_COPPER 7.4.2> port 0xe800-0xe81f mem 0xfe8c0000-0xfe8dffff,0xfe8e0000-0xfe8fffff irq 18 at device 0.0 on pci2
em0: MAC address: 00:26:55:d1:27:da
em1: <Intel(R) PRO/1000 Network Connection 82571EB_COPPER 7.4.2> port 0xe400-0xe41f mem 0xfe860000-0xfe87ffff,0xfe880000-0xfe89ffff irq 19 at device 0.1 on pci2
em1: MAC address: 00:26:55:d1:27:db
pcib3: <ACPI PCI-PCI bridge> irq 18 at device 6.0 on pci0
pci3: <ACPI PCI bus> on pcib3
bge0: <Broadcom BCM5723 Gigabit Ethernet> mem 0xfe9f0000-0xfe9fffff irq 18 at device 0.0 on pci3
bge0: CHIP ID 0x05784100; ASIC REV 0x5784; CHIP REV 0x57841; PCI-E
miibus0: <MII bus> on bge0
brgphy0: <BCM5784 10/100/1000baseT PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: MAC address: a0:b3:cc:e8:95:f8
atapci0: <ATI ATA controller> port 0x8000-0x800f,0x9000-0x9003,0xa000-0xa007,0xb000-0xb003,0xc000-0xc007 mem 0xfe5ffc00-0xfe5fffff irq 19 at device 17.0 on pci0
interrupt uses mplock: atapci0
ata2: <ATA channel 0> on atapci0
ad4: 953869MB <WDC WD10EURX-73FH1Y0 01.01A01> at ata2-master UDMA33
ad4: slice extends beyond end of disk: truncating from 3907040193 to 1953525105 sectors
ad5: 953869MB <WDC WD10EURX-73FH1Y0 01.01A01> at ata2-slave UDMA33
ata3: <ATA channel 1> on atapci0
ad6: 953869MB <WDC WD10EURX-73FH1Y0 01.01A01> at ata3-master UDMA33
ad6: slice extends beyond end of disk: truncating from 3907040193 to 1953525105 sectors
ad7: 953869MB <WDC WD10EURX-73FH1Y0 01.01A01> at ata3-slave UDMA33
ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfe5fe000-0xfe5fefff irq 18 at device 18.0 on pci0
usbus0 on ohci0
ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfe5ff800-0xfe5ff8ff irq 17 at device 18.2 on pci0
usbus0: 12Mbps Full Speed USB v1.0
usbus1: EHCI version 1.0
ugen0.1: <ATI> at usbus0
uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
usbus1 on ehci0
ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfe5fd000-0xfe5fdfff irq 18 at device 19.0 on pci0
usbus1: 480Mbps High Speed USB v2.0
ugen1.1: <ATI> at usbus1
uhub1: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
usbus2 on ohci1
ehci1: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfe5ff400-0xfe5ff4ff irq 17 at device 19.2 on pci0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: EHCI version 1.0
ugen2.1: <ATI> at usbus2
uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
usbus3 on ehci1
pci0: <serial bus, SMBus> (vendor 0x1002, dev 0x4385) at device 20.0
atapci1: <ATI ATA controller> port 0xff00-0xff0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 20.1 on pci0
ata0: <ATA channel 0> on atapci1
interrupt uses mplock: ata0
ata1: <ATA channel 1> on atapci1
usbus3: 480Mbps High Speed USB v2.0
interrupt uses mplock: ata1
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib4: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci4: <ACPI PCI bus> on pcib4
ohci2: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfe5fc000-0xfe5fcfff irq 18 at device 22.0 on pci0
ugen3.1: <ATI> at usbus3
uhub3: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub0: 5 ports with 5 removable, self powered
uhub2: 5 ports with 5 removable, self powered
usbus4 on ohci2
ehci2: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfe5ff000-0xfe5ff0ff irq 17 at device 22.2 on pci0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: EHCI version 1.0
ugen4.1: <ATI> at usbus4
uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
usbus5 on ehci2
usbus5: 480Mbps High Speed USB v2.0
acpi_button0: <Power Button> on acpi0
cpu0: <ACPI CPU> on acpi0
cpu_cst0: <ACPI CPU C-State> on cpu0
cpu_pst0: <ACPI CPU P-State> on cpu0
cpu1: <ACPI CPU> on acpi0
cpu_cst1: <ACPI CPU C-State> on cpu1
cpu_pst1: <ACPI CPU P-State> on cpu1
ACPI: Enabled 4 GPEs in block 00 to 1F
orm0: <ISA Option ROMs> at iomem 0xd2000-0xd2fff,0xd3000-0xd3fff on isa0
pmtimer0 on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x500 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: can't drain, serial port might not exist, disabling
sio1: can't drain, serial port might not exist, disabling
ugen5.1: <ATI> at usbus5
uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus5
hpt27xx: no controller detected.
CAM: Configuring 4 busses
CAM: finished configuring all busses
uhub4: 4 ports with 4 removable, self powered
uhub1: 5 ports with 5 removable, self powered
uhub3: 5 ports with 5 removable, self powered
uhub5: 4 ports with 4 removable, self powered
ugen3.2: <SanDisk> at usbus3
umass0: <SanDisk Cruzer Fit, class 0/0, rev 2.10/1.00, addr 2> on usbus3
da8 at umass-sim0 bus 0 target 0 lun 0
da8: <SanDisk Cruzer Fit 1.00> Removable Direct Access SCSI-6 device 
da8: Serial Number 4C530302001122115214
da8: 40.000MB/s transfers
da8: 7632MB (15630336 512 byte sectors: 255H 63S/T 972C)
no B_DEVMAGIC (bootdev=0)
Mounting root from ufs:serno/4C530302001122115214.s1d
DMA space used: 360k, remaining available: 126384k
Mounting devfs
hammer_vfs_mount: No root volume found!
hammer_vfs_mount: No root volume found!
hammer_vfs_mount: No root volume found!
swap low/high-water marks set to 4185/6278


More information about the Users mailing list