RAID not working after Update LEDE 17.01.0 final GoFlexNet

I update my GoflexNet to LEDE 17 from OpenWRT 15 (self compiled) and now I could not build my RAID arrays.

Has anybody similar problem?

root@LEDE:~# mdadm -v --assemble --scan
mdadm: looking for devices for further assembly
mdadm: cannot open device /dev/sdb5: Invalid argument
mdadm: cannot open device /dev/sdb4: Invalid argument
mdadm: cannot open device /dev/sdb3: Invalid argument
mdadm: cannot open device /dev/sdb2: Invalid argument
mdadm: cannot open device /dev/sdb1: Invalid argument
mdadm: cannot open device /dev/sdb: Invalid argument
mdadm: cannot open device /dev/sda5: Invalid argument
mdadm: cannot open device /dev/sda4: Invalid argument
mdadm: cannot open device /dev/sda3: Invalid argument
mdadm: cannot open device /dev/sda2: Invalid argument
mdadm: cannot open device /dev/sda1: Invalid argument
mdadm: cannot open device /dev/sda: Invalid argument

Have you installed all required modules? Is there any relevant message at the logs?

1 Like

Hi Perez,

yes required modules are installed, but not load automatically by using mdadm.
I assume in the kernel the RAID support is not enabled, I found this bug report from openwrt, seams to be the same problem description.
https://dev.openwrt.org/ticket/12714

root@LEDE:~# opkg install kmod-md-mod kmod-md-raid0 kmod-md-raid1 mdadm
Package kmod-md-mod (4.4.50-1) installed in root is up to date.
Package kmod-md-raid0 (4.4.50-1) installed in root is up to date.
Package kmod-md-raid1 (4.4.50-1) installed in root is up to date.
Package mdadm (3.2.5-1) installed in root is up to date.

root@LEDE:~# lsmod | grep md
md_mod 100136 2 raid1,raid0

In the logs I see nothing strange,

Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] Booting Linux on physical CPU 0x0
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000] Linux version 4.4.50 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3103-1b51a49) ) #0 Mon Feb 20 15:02:54 2017
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] CPU: VIVT data cache, VIVT instruction cache
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] Machine model: Seagate GoFlex Net
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] Memory policy: Data cache writeback
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.000000] On node 0 totalpages: 32768
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.000000] free_area_init_node: node 0, pgdat c04d973c, node_mem_map c7efa000
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.000000]   Normal zone: 256 pages used for memmap
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0 
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs) root=/dev/mtdblock2 rootfstype=squashfs ro
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] Memory: 124556K/131072K available (4074K kernel code, 142K rwdata, 652K rodata, 176K init, 201K bss, 6516K reserved, 0K cma-reserved)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000] Virtual kernel memory layout:
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]       .text : 0xc0008000 - 0xc04a5db4   (4728 kB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]       .init : 0xc04a6000 - 0xc04d2000   ( 176 kB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]       .data : 0xc04d2000 - 0xc04f5ac8   ( 143 kB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.000000]        .bss : 0xc04f5ac8 - 0xc05281bc   ( 202 kB)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] NR_IRQS:16 nr_irqs:16 16
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.000087] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.090086] pid_max: default: 32768 minimum: 301
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.090203] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.090222] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.090783] CPU: Testing write buffer coherency: ok
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.091136] Setting up static identity map for 0x81e0 - 0x821c
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.091389] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.096347] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.096418] pinctrl core: initialized pinctrl subsystem
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.097475] NET: Registered protocol family 16
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.097891] DMA: preallocated 256 KiB pool for atomic coherent allocations
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.098609] cpuidle: using governor ladder
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.098975] Feroceon L2: Enabling L2
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.099020] Feroceon L2: Cache support initialised.
Mon Feb 20 17:13:46 2017 kern.err kernel: [    0.099310] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.117104] SCSI subsystem initialized
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.117523] libata version 3.00 loaded.
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.117840] usbcore: registered new interface driver usbfs
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.117922] usbcore: registered new interface driver hub
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.117983] usbcore: registered new device driver usb
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.118824] clocksource: Switched to clocksource orion_clocksource
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.119718] NET: Registered protocol family 2
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.120365] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.120390] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.120409] TCP: Hash tables configured (established 1024 bind 1024)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.120465] UDP hash table entries: 256 (order: 0, 4096 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.120486] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.120630] NET: Registered protocol family 1
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.120668] PCI: CLS 0 bytes, default 32
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.122404] futex hash table entries: 256 (order: -1, 3072 bytes)
Mon Feb 20 17:13:46 2017 kern.warn kernel: [    0.122455] Crashlog allocated RAM at address 0x3f00000
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.136228] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.136243] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.138940] io scheduler noop registered
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.138953] io scheduler deadline registered (default)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.140085] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.140664] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.141016] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.172409] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.175361] console [ttyS0] disabled
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.175434] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.626593] console [ttyS0] enabled
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    0.630966] sata_mv f1080000.sata: version 1.28
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.631241] sata_mv f1080000.sata: slots 32 ports 2
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.639473] scsi host0: sata_mv
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.643425] scsi host1: sata_mv
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.646803] ata1: SATA max UDMA/133 irq 32
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.650951] ata2: SATA max UDMA/133 irq 32
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.655755] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.662167] nand: Micron MT29F2G08AAD
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.665841] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.673467] Scanning device for bad blocks
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.895166] 3 cmdlinepart partitions found on MTD device orion_nand
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.901478] Creating 3 MTD partitions on "orion_nand":
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.906638] 0x000000000000-0x000000100000 : "u-boot"
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.913188] 0x000000100000-0x000000500000 : "uImage"
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.919326] 0x000000500000-0x000010000000 : "rootfs"
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.925886] mtd: device 2 (rootfs) set to be root filesystem
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.931714] 1 squashfs-split partitions found on MTD device rootfs
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.937925] 0x000000680000-0x000010000000 : "rootfs_data"
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.945508] libphy: orion_mdio_bus: probed
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.950545] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    0.958936] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:6d:17
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.967719] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.974295] ehci-pci: EHCI PCI platform driver
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.978840] ehci-platform: EHCI generic platform driver
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.984225] ehci-orion: EHCI orion driver
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.988411] orion-ehci f1050000.ehci: EHCI Host Controller
Mon Feb 20 17:13:46 2017 kern.info kernel: [    0.993974] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.001809] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.018842] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.025585] hub 1-0:1.0: USB hub found
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.029568] hub 1-0:1.0: 1 port detected
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.033961] usbcore: registered new interface driver usb-storage
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.428847] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.488877] ata1.00: ATA-8: ST500LT012-1DG142, 0003SDM1, max UDMA/133
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.495350] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.638882] ata1.00: configured for UDMA/133
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    1.643555] scsi 0:0:0:0: Direct-Access     ATA      ST500LT012-1DG14 SDM1 PQ: 0 ANSI: 5
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    1.652701] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    1.660249] sd 0:0:0:0: [sda] 4096-byte physical blocks
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    1.665974] sd 0:0:0:0: [sda] Write Protect is off
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    1.670819] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    1.670935] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Mon Feb 20 17:13:46 2017 kern.info kernel: [    1.742460]  sda: sda1 sda2 sda3 sda4 sda5
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    1.748187] sd 0:0:0:0: [sda] Attached SCSI disk
Mon Feb 20 17:13:46 2017 kern.err kernel: [    2.048835] rtc-mv f1010300.rtc: internal RTC not ticking
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.054369] i2c /dev entries driver
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.058613] orion_wdt: Initial timeout 21 sec
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.067823] marvell-cesa f1030000.crypto: CESA device successfully registered
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.076022] NET: Registered protocol family 10
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.082040] NET: Registered protocol family 17
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.086545] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.099242] 8021q: 802.1Q VLAN Support v1.8
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.105703] hctosys: unable to open rtc device (rtc0)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.158856] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.218878] ata2.00: ATA-8: ST500LT012-1DG142, 0003SDM1, max UDMA/133
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.225346] ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.368882] ata2.00: configured for UDMA/133
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    2.373557] scsi 1:0:0:0: Direct-Access     ATA      ST500LT012-1DG14 SDM1 PQ: 0 ANSI: 5
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    2.382674] sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    2.390226] sd 1:0:0:0: [sdb] 4096-byte physical blocks
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    2.395948] sd 1:0:0:0: [sdb] Write Protect is off
Mon Feb 20 17:13:46 2017 kern.debug kernel: [    2.400792] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    2.400899] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.478146]  sdb: sdb1 sdb2 sdb3 sdb4 sdb5
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    2.483935] sd 1:0:0:0: [sdb] Attached SCSI disk
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.493013] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Mon Feb 20 17:13:46 2017 kern.info kernel: [    2.500645] Freeing unused kernel memory: 176K (c04a6000 - c04d2000)
Mon Feb 20 17:13:46 2017 user.info kernel: [    3.031568] init: Console is alive
Mon Feb 20 17:13:46 2017 user.info kernel: [    3.035139] init: - watchdog -
Mon Feb 20 17:13:46 2017 user.info kernel: [    3.109478] init: - preinit -
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    3.498769] random: jshn: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    3.569226] random: jshn: uninitialized urandom read (4 bytes read, 21 bits of entropy available)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    3.600985] random: jshn: uninitialized urandom read (4 bytes read, 22 bits of entropy available)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    3.632945] random: jshn: uninitialized urandom read (4 bytes read, 22 bits of entropy available)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    3.662598] random: jshn: uninitialized urandom read (4 bytes read, 22 bits of entropy available)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    3.693376] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    3.714306] random: procd: uninitialized urandom read (4 bytes read, 22 bits of entropy available)
Mon Feb 20 17:13:46 2017 user.warn kernel: [    6.891119] mount_root: no usable overlay filesystem found, using tmpfs overlay
Mon Feb 20 17:13:46 2017 user.warn kernel: [    6.901230] urandom-seed: Seed file not found (/etc/urandom.seed)
Mon Feb 20 17:13:46 2017 user.info kernel: [    6.963263] procd: - early -
Mon Feb 20 17:13:46 2017 user.info kernel: [    6.966220] procd: - watchdog -
Mon Feb 20 17:13:46 2017 user.info kernel: [    7.788246] procd: - ubus -
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    7.821782] random: ubusd: uninitialized urandom read (4 bytes read, 29 bits of entropy available)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    7.840824] random: ubusd: uninitialized urandom read (4 bytes read, 29 bits of entropy available)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    7.850154] random: ubusd: uninitialized urandom read (4 bytes read, 29 bits of entropy available)
Mon Feb 20 17:13:46 2017 kern.notice kernel: [    7.859214] random: ubusd: uninitialized urandom read (4 bytes read, 29 bits of entropy available)
Mon Feb 20 17:13:46 2017 user.info kernel: [    7.869258] procd: - init -
Mon Feb 20 17:13:46 2017 kern.info kernel: [    8.008001] ip6_tables: (C) 2000-2006 Netfilter Core Team
Mon Feb 20 17:13:46 2017 kern.info kernel: [    8.019886] ip_tables: (C) 2000-2006 Netfilter Core Team
Mon Feb 20 17:13:46 2017 kern.info kernel: [    8.029417] nf_conntrack version 0.5.0 (1948 buckets, 7792 max)
Mon Feb 20 17:13:46 2017 kern.info kernel: [    8.053356] xt_time: kernel timezone is -0000
Mon Feb 20 17:13:46 2017 kern.info kernel: [    8.064261] PPP generic driver version 2.4.2
Mon Feb 20 17:13:46 2017 kern.info kernel: [    8.070145] NET: Registered protocol family 24
Mon Feb 20 17:13:47 2017 user.notice : Added device handler type: tunnel
Mon Feb 20 17:13:47 2017 user.notice : Added device handler type: Network device
Mon Feb 20 17:13:47 2017 user.notice : Added device handler type: bridge
Mon Feb 20 17:13:47 2017 user.notice : Added device handler type: macvlan
Mon Feb 20 17:13:47 2017 user.notice : Added device handler type: 8021ad
Mon Feb 20 17:13:47 2017 user.notice : Added device handler type: 8021q
Mon Feb 20 17:13:48 2017 daemon.err mount_root: no jffs2 marker found
Mon Feb 20 17:13:48 2017 daemon.warn netifd: You have delegated IPv6-prefixes but haven't assigned them to any interface. Did you forget to set option ip6assign on your lan-interfaces?
Mon Feb 20 17:13:48 2017 kern.info kernel: [   12.452224] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
Mon Feb 20 17:13:48 2017 kern.info kernel: [   12.499357] device eth0 entered promiscuous mode
Mon Feb 20 17:13:48 2017 daemon.notice netifd: Interface 'lan' is enabled
Mon Feb 20 17:13:48 2017 kern.info kernel: [   12.521465] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Mon Feb 20 17:13:48 2017 daemon.notice netifd: Interface 'lan6' is enabled
Mon Feb 20 17:13:48 2017 daemon.notice netifd: Interface 'loopback' is enabled
Mon Feb 20 17:13:48 2017 daemon.notice netifd: Interface 'loopback' is setting up now
Mon Feb 20 17:13:48 2017 daemon.notice netifd: Interface 'loopback' is now up
Mon Feb 20 17:13:48 2017 daemon.notice netifd: Network device 'eth0' link is up
Mon Feb 20 17:13:48 2017 daemon.notice netifd: Network device 'lo' link is up
Mon Feb 20 17:13:48 2017 daemon.notice netifd: Interface 'loopback' has link connectivity 
Mon Feb 20 17:13:49 2017 kern.info kernel: [   13.419637] br-lan: port 1(eth0) entered forwarding state
Mon Feb 20 17:13:49 2017 kern.info kernel: [   13.425106] br-lan: port 1(eth0) entered forwarding state
Mon Feb 20 17:13:49 2017 daemon.notice netifd: bridge 'br-lan' link is up
Mon Feb 20 17:13:49 2017 daemon.notice netifd: Interface 'lan' has link connectivity 
Mon Feb 20 17:13:49 2017 daemon.notice netifd: Interface 'lan' is setting up now
Mon Feb 20 17:13:49 2017 daemon.notice netifd: Interface 'lan6' has link connectivity 
Mon Feb 20 17:13:49 2017 daemon.notice netifd: Interface 'lan6' is setting up now
Mon Feb 20 17:13:49 2017 kern.info kernel: [   13.459499] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Mon Feb 20 17:13:49 2017 daemon.notice netifd: lan (2003): udhcpc: started, v1.25.1
Mon Feb 20 17:13:49 2017 daemon.notice netifd: lan (2003): udhcpc: sending discover
Mon Feb 20 17:13:50 2017 daemon.err odhcp6c[2002]: Failed to send DHCPV6 message to ff02::1:2 (Address not available)
Mon Feb 20 17:13:51 2017 kern.info kernel: [   15.418854] br-lan: port 1(eth0) entered forwarding state
Mon Feb 20 17:13:51 2017 daemon.info dnsmasq[2050]: started, version 2.76 cachesize 150
Mon Feb 20 17:13:51 2017 daemon.info dnsmasq[2050]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify
Mon Feb 20 17:13:51 2017 daemon.info dnsmasq[2050]: DNS service limited to local subnets
Mon Feb 20 17:13:51 2017 daemon.info dnsmasq[2050]: using local addresses only for domain lan
Mon Feb 20 17:13:51 2017 daemon.warn dnsmasq[2050]: no servers found in /tmp/resolv.conf.auto, will retry
Mon Feb 20 17:13:51 2017 daemon.info dnsmasq[2050]: read /etc/hosts - 4 addresses
Mon Feb 20 17:13:51 2017 daemon.info dnsmasq[2050]: read /tmp/hosts/dhcp.cfg02411c - 0 addresses
Mon Feb 20 17:13:52 2017 daemon.notice netifd: lan (2003): udhcpc: sending discover
Mon Feb 20 17:13:52 2017 kern.notice kernel: [   16.470552] jffs2: notice: (1935) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Mon Feb 20 17:13:52 2017 daemon.notice netifd: lan (2003): udhcpc: sending select for 192.168.1.111
Mon Feb 20 17:13:52 2017 daemon.notice netifd: lan (2003): udhcpc: lease of 192.168.1.111 obtained, lease time 43200
Mon Feb 20 17:13:52 2017 daemon.notice netifd: Interface 'lan' is now up
Mon Feb 20 17:13:52 2017 daemon.info dnsmasq[2050]: reading /tmp/resolv.conf.auto
Mon Feb 20 17:13:52 2017 daemon.info dnsmasq[2050]: using local addresses only for domain lan
Mon Feb 20 17:13:52 2017 daemon.info dnsmasq[2050]: using nameserver 192.168.1.1#53
Mon Feb 20 17:13:52 2017 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Mon Feb 20 17:13:53 2017 daemon.info mount_root: performing overlay whiteout
Mon Feb 20 17:13:53 2017 daemon.info odhcpd[1883]: Initial RA router lifetime 0, 0 address(es) available on br-lan
Mon Feb 20 17:13:53 2017 daemon.info odhcpd[1883]: Initial RA router lifetime 0, 0 address(es) available on br-lan
Mon Feb 20 17:13:54 2017 daemon.warn netifd: You have delegated IPv6-prefixes but haven't assigned them to any interface. Did you forget to set option ip6assign on your lan-interfaces?
Mon Feb 20 17:13:54 2017 daemon.notice netifd: Interface 'lan6' is now up
Mon Feb 20 17:13:54 2017 daemon.info dnsmasq[2050]: reading /tmp/resolv.conf.auto
Mon Feb 20 17:13:54 2017 daemon.info dnsmasq[2050]: using local addresses only for domain lan
Mon Feb 20 17:13:54 2017 daemon.info dnsmasq[2050]: using nameserver 192.168.1.1#53
Mon Feb 20 17:13:54 2017 daemon.info odhcpd[1883]: Raising SIGUSR1 due to address change on br-lan
Mon Feb 20 17:13:54 2017 daemon.info dnsmasq[2050]: read /etc/hosts - 4 addresses
Mon Feb 20 17:13:54 2017 daemon.info dnsmasq[2050]: read /tmp/hosts/odhcpd - 0 addresses
Mon Feb 20 17:13:54 2017 daemon.info dnsmasq[2050]: read /tmp/hosts/dhcp.cfg02411c - 0 addresses
Mon Feb 20 17:13:55 2017 daemon.info odhcpd[1883]: Initial RA router lifetime 0, 2 address(es) available on br-lan
4294967295) not suitable as RA prefix on br-lan
Mon Feb 20 17:13:56 2017 user.notice : setting up led health
Mon Feb 20 17:13:56 2017 user.notice : setting up led fault
Mon Feb 20 17:13:57 2017 daemon.info procd: - init complete -
Tue Mar 21 20:28:18 2017 daemon.info dnsmasq[2050]: read /etc/hosts - 4 addresses
Tue Mar 21 20:28:18 2017 daemon.info dnsmasq[2050]: read /tmp/hosts/odhcpd - 0 addresses
Tue Mar 21 20:28:18 2017 daemon.info dnsmasq[2050]: read /tmp/hosts/dhcp.cfg02411c - 1 addresses
Tue Mar 21 20:28:59 2017 kern.notice kernel: [   64.708956] random: nonblocking pool is initialized
Tue Mar 21 20:30:23 2017 kern.info kernel: [  148.921381] md: raid0 personality registered for level 0
Tue Mar 21 20:30:28 2017 kern.info kernel: [  154.176639] md: raid1 personality registered for level 1

Hi kisgezenguz,
can you please help me how to do the upgrade from OpenWRT to LEDE?
I am not able to find rootfs image in ubifs format, which I can easily flash with openwrt tutorial.
Thank you for any help.

https://bugs.lede-project.org/index.php?do=details&task_id=653
https://bugs.lede-project.org/index.php?do=details&task_id=648
Please also test the new version of mdadm if possible.

Just in case somebody stumbles into this. The mdadm uses O_DIRECT when opening the devices in /dev. O_DIRECT requires the CONFIG_KERNEL_DIRECT_IO option to be set in OpenWRT/LEDE's configuration. Sadly CONFIG_KERNEL_DIRECT_IO is not enabled by default, so this will require you to compile a custom kernel/image with the option enabled.

Edit: Felix has removed the "out of tree direct-io disable hack"


Therefore, this should no longer be a issue.

Hi blackdot

sorry for the late answer I was on holyday.

So, I assume you are using OpenWRT 15.05.1 and used the update steps from the OpenWRT Wiki https://wiki.openwrt.org/toh/seagate/goflexnet

Because LEDE provide no more ubifs rootfs I switch back the good old squashfs image. I used the sysupgrade which is contain the kernel and rootfs in squashfs image format.

  1. Download images
    https://downloads.lede-project.org/releases/17.01.1/targets/kirkwood/generic/lede-17.01.1-kirkwood-goflexnet-squashfs-sysupgrade.tar
  2. Extract somewhere and setup and start your favorite TFTP server, from widows tftpd working fine http://tftpd32.jounin.net/
  3. Connect your GoflexNet to your local network
  4. Connect your GoflexNet serial (we need interrupt boot process) https://varkey.in/seagate-goflex-net-serial-connection/
  5. If you have working network and serial connection start your GoflexNet and interrupt boot, default you have 3 second.
  6. Set ipaddr and serverip parameter
    setenv ipaddr '192.168.1.100'
    setenv serverip '192.168.1.10'
  7. Flash images using following commands.
    the {tftpsize} part you need to edit and write there the right size of the image,
    which you can see the output of the tftpboot command.

flash kernel

tftpboot 0x6400000 kernel
nand erase.part uImage
nand write.e 0x6400000 0x100000 0x{tftpsize}

flash rootfs

tftp 0x6400000 root
nand erase.part rootfs
nand write.e 0x6400000 rootfs 0x${tftpsize}

  1. if the image write was good, you need to set some boot parameters
    setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)'
    setenv bootargs_root 'root=/dev/mtdblock2 rootfstype=squashfs ro'
    setenv bootcmd 'setenv bootargs ${console} ${mtdparts} $(bootargs_root); nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
    saveenv

  2. type reset to reboot

If something not clear please let me know.

Thank you for this guide!
I have LEDE now up and running! It is pity, that ubifs rootfs are not available, because sysupgrade rely on it. In future all the updates will have to be done again over serial line? Or "nandwrite" could be used?
I have also few other problems, like btrfs modules are not loaded during startup, all configurations at /etc/config/system are lost after restart. Additional services (zabbix, samba) are also not starting even if they are enabled.
Do you see similar issues?

Hi! @blackdot, @kisgezenguz, @chunkeey, @diizzy, @eduperez

I had a Lenovo Iomega EZ Media & Backup Center with 1 bay, and I think it have similar hardware, and I want to know how I could try to install LEDE on it. Since this is a different device I created another thread about:

Hi,
there is now the third service release but RAID still not working "out of the box".
It is a big issue to enable direct IO?

no? The "master" branch had it for some time.

If you wanted it, why didn't you ask on the mailing-list/chat/github to include it into the releases?

Apologies if this is a naive question, but I'm' still seeing this problem on the latest release of LEDE. Is there any build that contains direct IO support, or is it still necessary to build a kernel myself? I thought the above patch meant that future LEDE kernels would have direct IO support.

# cat /etc/openwrt_release 
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='17.01.4'
DISTRIB_REVISION='r3560-79f57e422d'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='x86/generic'
DISTRIB_ARCH='i386_pentium4'
DISTRIB_DESCRIPTION='LEDE Reboot 17.01.4 r3560-79f57e422d'
DISTRIB_TAINTS='no-all'

# uname -a
Linux LEDE 4.4.92 #0 SMP Tue Oct 17 17:46:20 2017 i686 GNU/Linux

For anyone who come by this in the future, it seems the above patch removed the switch that allows you to enable O_DIRECT in the kernel. However, I found this post which indicates that you can get O_DIRECT if you build the mdadm package into the firmware image. I tried with git dda5d9b78643ca2a943759278c2ef50d595cb509 today and it does indeed work. I'm able to build a RAID now with my custom built 4.14.32. It would be amazing if there were a way to enable this without re-building the firmware image.

@mhirsch
keep in mind, that the post you referenced stated the situation before the patch :smiley: . If your repository and config is up to date/refreshed, it shouldn't matter anymore if you added mdadm to your list or not. O_DIRECT is available as long as CONFIG_BLOCK=y (And this is the default, see target/linux/generic/config-4.14 .)

Ok, great to know! So is it safe to say in the next release with kernel 4.14 or > I should see O_DIRECT enabled?

Thanks!

Are you talking about the next stable release? If so then: "yes, but only if nothing changes..."

Note: In fact targets which are running older kernels (4.4 and 4.9) would be fine as well, as long as the target does not deactivate CONFIG_BLOCK for a reason.

It's definitely not included in 4.4.92 (with release details as noted above).

Ah, but 4.4.92/LEDE-17.01.4 is not the next stable release :wink: . yeah, different terminology.
I don't think any older 17.01 branches will be updated.

Hello,

I am experiencing the same problems trying to install LEDE/OpenWrt 17 and even 18 on my GoFlexNet device. It may depend on the fact that the overlay partition is not mounted (but I also have some other issue related to UBI error at startup - which is weird, since I am not using UBI but squashfs). Did you solve the issue in the meantime?

Thanks!