Problems with raid5

Re: Problems with raid5

Postby samrise » Sun Aug 16, 2015 11:46 pm

Nop, not yet. Same error. Maybe some more modules missing?

Code: Select all
root@nas:/ # lsmod
dm_queue_length 2321 0 - Live 0xbf2be000
dm_snapshot 26351 0 - Live 0xbf2b2000
dm_service_time 2604 0 - Live 0xbf2ae000
dm_round_robin 2017 0 - Live 0xbf2aa000
dm_mirror 11644 0 - Live 0xbf2a3000
dm_region_hash 6118 1 dm_mirror, Live 0xbf29d000
dm_log_userspace 8926 0 - Live 0xbf297000
dm_log 8073 3 dm_mirror,dm_region_hash,dm_log_userspace, Live 0xbf292000
dm_crypt 13703 0 - Live 0xbf28a000
dm_raid 13857 0 - Live 0xbf283000
dm_multipath 13010 3 dm_queue_length,dm_service_time,dm_round_robin, Live 0xbf27b000
dm_mod 61288 7 dm_snapshot,dm_mirror,dm_log_userspace,dm_log,dm_crypt,dm_raid,dm_multipath, Live 0xbf263000
raid10 38932 1 dm_raid, Live 0xbf255000
raid456 57610 2 dm_raid, Live 0xbf241000
async_raid6_recov 4754 1 raid456, Live 0xbf23c000
async_memcpy 1168 2 raid456,async_raid6_recov, Live 0xbf238000
async_pq 3686 2 raid456,async_raid6_recov, Live 0xbf234000
async_xor 2557 3 raid456,async_raid6_recov,async_pq, Live 0xbf230000
xor 3821 1 async_xor, Live 0xbf22c000
async_tx 1948 5 raid456,async_raid6_recov,async_memcpy,async_pq,async_xor, Live 0xbf228000
raid6_pq 83250 2 async_raid6_recov,async_pq, Live 0xbf210000
raid1 25990 1 dm_raid, Live 0xbf205000
raid0 6859 0 - Live 0xbf200000
md_mod 97860 6 dm_raid,raid10,raid456,raid1,raid0, Live 0xbf1df000
uvcvideo 60902 0 - Live 0xbf1ca000
videobuf2_vmalloc 2469 1 uvcvideo, Live 0xbf1c6000
videobuf2_memops 1256 1 videobuf2_vmalloc, Live 0xbf1c2000
videobuf2_core 22544 1 uvcvideo, Live 0xbf1b8000
v4l2_common 8288 0 - Live 0xbf1b1000
v4l2_int_device 1906 0 - Live 0xbf1ad000
videodev 85579 3 uvcvideo,videobuf2_core,v4l2_common, Live 0xbf18f000
iscsi_tcp 7345 0 - Live 0xbf189000
libiscsi_tcp 11130 1 iscsi_tcp, Live 0xbf182000
libiscsi 29755 2 iscsi_tcp,libiscsi_tcp, Live 0xbf174000
scsi_transport_iscsi 32871 2 iscsi_tcp,libiscsi, Live 0xbf163000
iscsi_trgt 96019 0 - Live 0xbf143000 (O)
nfsd 81372 1 - Live 0xbf126000
exportfs 2825 1 nfsd, Live 0xbf122000
nfs 104468 0 - Live 0xbf0f9000
lockd 57065 2 nfsd,nfs, Live 0xbf0e3000
sunrpc 156449 3 nfsd,nfs,lockd, Live 0xbf0a9000
usblp 9297 0 - Live 0xbf0a2000
fuse 60769 0 - Live 0xbf08b000
ntfs 202409 0 - Live 0xbf050000
isofs 21978 0 - Live 0xbf046000
cifs 234559 0 - Live 0xbf000000
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby samrise » Mon Aug 17, 2015 12:10 am

Is CONFIG_EFI_PARTITION enable on kernel? How can i check?
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby fvdw » Mon Aug 17, 2015 8:08 am

yes that is enabled, attached the kernel config file (otherwsie gdisk would have failed)

From the modules list it seems that raid_class.ko is not yet loaded maybe that is still a possibility

long shot, maybe rebuilding the array after loading all the modules (I am guessing here)

question are there no error messages in dmesg output after loading the modules ?

and what is the content of this file /lib/modules/3.9.5/modules.dep.bb ?
Code: Select all
cat /lib/modules/3.9.5/modules.dep.bb

It contains info on the modules and specifies from which other modules a certain module is dependent from that we may be able to find the missing ones.

Because the content of the file might be big as the 5big1 has many modules it could be better to copy it over using winScp and put it in a zip file
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problems with raid5

Postby fvdw » Mon Aug 17, 2015 9:54 am

also the order (sequence) how the modules are loaded is important

it should be like this

Code: Select all
modprobe linear
modprobe raid0
modprobe raid1
modprobe raid10
modprobe raid456
modprobe md-mod
modprob dm-mod
modprobe dm-crypt
modprobe dm-multipath
modprobe dm-round-robin
modprobe dm-queue-length
modprobe dm-service-time
modprobe dm-snapshot
modprobe dm-mirror
modprobe dm-log
modprobe dm-region-hash
modprobe dm-log-userspace
modprobe dm-raid
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problems with raid5

Postby samrise » Mon Aug 17, 2015 10:34 am

Ok, so lets try again:

root@nas:/ # cat /etc/init.d/insert-modules
#!/bin/sh

# insert kernel modules for 5big1
# for use with fvdw-sl-14 or higher
#
/bin/depmod 2>> boot.log
modprobe cifs 2>> boot.log
modprobe isofs 2>> boot.log
modprobe ntfs 2>> boot.log
modprobe fuse 2>> boot.log
modprobe usblp 2>> boot.log
modprobe nfs 2>> boot.log
modprobe nfsd 2>> boot.log
modprobe iscsi_trgt 2>> boot.log
modprobe iscsi_tcp 2>> boot.log
modprobe videodev 2>> boot.log
modprobe v4l2-int-device 2>> boot.log
modprobe v4l2-common 2>> boot.log
modprobe uvcvideo 2>> boot.log
modprobe linear 2>> boot.log
modprobe raid0 2>> boot.log
modprobe raid1 2>> boot.log
modprobe raid10 2>> boot.log
modprobe raid456 2>> boot.log
modprobe dm-mod 2>> boot.log
modprobe dm-crypt 2>> boot.log
modprobe dm-multipath 2>> boot.log
modprobe dm-round-robin 2>> boot.log
modprobe dm-queue-length 2>> boot.log
modprobe dm-service-time 2>> boot.log
modprobe dm-snapshot 2>> boot.log
modprobe dm-mirror 2>> boot.log
modprobe dm-log 2>> boot.log
modprobe dm-region-hash 2>> boot.log
modprobe dm-log-userspace 2>> boot.log
modprobe dm-raid 2>> boot.log
modprobe raid_class 2>> boot.log
exit 0
root@nas:/ #


dmesg after reboot:

Booting Linux on physical CPU 0x0
Linux version 3.9.5 (root@fvdwsl-5big2.local) (gcc version 4.8.1 (GCC) ) #25 Thu Feb 27 22:22:32 GMT+1 2014
CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: LaCie 5Big1 Network
Clearing invalid memory bank 0KB@0x00000000
Clearing invalid memory bank 0KB@0x00000000
Clearing invalid memory bank 0KB@0x00000000
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x41000403
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c039aed8, node_mem_map c03cb000
Normal zone: 256 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 32768 pages, LIFO batch:7
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,115200 root=/dev/sda7 ro boardType=mv88F5281 productType=5Big reset=0
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
__ex_table already sorted, skipping sort
Memory: 128MB = 128MB total
Memory: 126024k/126024k available, 5048k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0355fdc (3384 kB)
.init : 0xc0356000 - 0xc0374ebc ( 124 kB)
.data : 0xc0376000 - 0xc039bee0 ( 152 kB)
.bss : 0xc039bee0 - 0xc03ca8dc ( 187 kB)
NR_IRQS:64
sched_clock: 32 bits at 166MHz, resolution 5ns, wraps every 25769ms
Console: colour dummy device 80x30
Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc028ffc8 - 0xc0290004
NET: Registered protocol family 16
DMA: preallocated 1024 KiB pool for atomic coherent allocations
Register Driver 'dummy'
5big1 init started
Orion ID: MV88F5281-D0. TCLK=166666667.
Orion: Applying 5281 D0 WFI workaround.
5big1 init 1
initial MPP regs: 00000003 00000000 00170000
final MPP regs: 00000003 00000000 00170000
5big1 init 2
net5big: powering up SATA drives
5big1 init 3
5big1 init 4
5big1 init 5
5big1 init 6
5big1 init 7
5big1 init 8
5big1 init 9
5big1 init 10
5big1 init 11
5big1 init 12
net5big: turning off power-off control GPIO
net5big: Flash writing is not yet supported.
5big1 init end
orion_gpio_is_valid: invalid GPIO 20
orion_gpio_is_valid: invalid GPIO 20
net5big_pci_preinit failed to gpio_request 20
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
pci 0000:00:00.0: [11ab:5281] type 00 class 0x058000
pci 0000:00:00.0: reg 10: [mem 0xf1000000-0xf10fffff 64bit pref]
pci 0000:00:00.0: reg 18: [mem 0x00000000-0x07ffffff]
PCI: bus0: Fast back to back transfers disabled
pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
PCI host bridge to bus 0000:01
pci_bus 0000:01: root bus resource [mem 0xe8000000-0xefffffff]
pci_bus 0000:01: root bus resource [io 0x10000-0x1ffff]
pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
pci 0000:01:00.0: [11ab:5281] type 00 class 0x058000
pci 0000:01:00.0: reg 10: [mem 0x00000000-0x07ffffff 64bit pref]
pci 0000:01:00.0: reg 18: [mem 0x10000000-0x1fffffff 64bit pref]
pci 0000:01:00.0: reg 20: [mem 0xf1000000-0xf10fffff 64bit]
pci 0000:01:00.0: reg 30: [mem 0xe0000000-0xe7ffffff pref]
pci 0000:01:00.0: supports D1 D2
pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot
pci 0000:01:07.0: [11ab:6081] type 00 class 0x010000
pci 0000:01:07.0: reg 10: [mem 0x40000000-0x400fffff 64bit]
pci 0000:01:07.0: reg 18: [io 0xf0100000-0xf01000ff]
PCI: bus1: Fast back to back transfers enabled
pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
pci 0000:01:07.0: BAR 0: assigned [mem 0xe8000000-0xe80fffff 64bit]
pci 0000:01:07.0: BAR 2: assigned [io 0x10000-0x100ff]
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
Register Driver 'Generic PHY'
Register Driver 'usbfs'
usbcore: registered new interface driver usbfs
Register Driver 'hub'
usbcore: registered new interface driver hub
Register Driver 'usb'
usbcore: registered new device driver usb
Register Driver 'i2c-gpio'
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
PCI: CLS 32 bytes, default 32
Register Driver 'alarmtimer'
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 246
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Register Driver 'mv_xor'
mv_xor mv_xor.0: Marvell shared XOR driver
mv_xor mv_xor.0: Self-test copy failed compare, disabling
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
Register Driver 'serial8250'
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A
console [ttyS0] enabled
Register Driver 'serial'
brd: module loaded
loop: module loaded
Register Driver 'at24'
Register Driver 'eeprom'
Register Driver 'sd'
Register Driver 'ahci'
Register Driver 'sata_mv'
sata_mv 0000:01:07.0: version 1.28
sata_mv 0000:01:07.0: Gen-II 32 slots 8 ports SCSI mode IRQ via INTx
scsi0 : sata_mv
scsi1 : sata_mv
scsi2 : sata_mv
scsi3 : sata_mv
scsi4 : sata_mv
scsi5 : sata_mv
scsi6 : sata_mv
scsi7 : sata_mv
ata1: SATA max UDMA/133 mmio m1048576@0xe8000000 port 0xe8022000 irq 52
ata2: SATA max UDMA/133 mmio m1048576@0xe8000000 port 0xe8024000 irq 52
ata3: SATA max UDMA/133 mmio m1048576@0xe8000000 port 0xe8026000 irq 52
ata4: SATA max UDMA/133 mmio m1048576@0xe8000000 port 0xe8028000 irq 52
ata5: SATA max UDMA/133 mmio m1048576@0xe8000000 port 0xe8032000 irq 52
ata6: SATA max UDMA/133 mmio m1048576@0xe8000000 port 0xe8034000 irq 52
ata7: SATA max UDMA/133 mmio m1048576@0xe8000000 port 0xe8036000 irq 52
ata8: SATA max UDMA/133 mmio m1048576@0xe8000000 port 0xe8038000 irq 52
Register Driver 'sata_mv'
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: cannot get optional clkdev
sata_mv sata_mv.0: slots 32 ports 5
scsi8 : sata_mv
scsi9 : sata_mv
scsi10 : sata_mv
scsi11 : sata_mv
scsi12 : sata_mv
ata9: SATA max UDMA/133 irq 29
ata10: SATA max UDMA/133 irq 29
ata11: SATA max UDMA/133 irq 29
ata12: SATA max UDMA/133 irq 29
ata13: SATA max UDMA/133 irq 29
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn.edu>
ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393@maroon.tc.umn.edu>
Register Driver 'mv643xx_eth'
mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
libphy: mv643xx_eth smi: probed
Register Driver 'mv643xx_eth_port'
mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:4b:88:fd:e0
mousedev: PS/2 mouse device common for all mice
Register Driver 'rtc-ds1307'
Register Driver 'rtc-ds1374'
Register Driver 'rtc-rs5c372'
i2c /dev entries driver
Register Driver 'mv64xxx_i2c'
rtc-rs5c372 0-0032: rs5c372b found, 24hr, driver version 0.6
rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
at24 0-0050: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
Register Driver 'g762'
g762 probe started
g762 probe 1
g762 probe 2
g762 probe 3
g762 probe 4
g762 probe 5
g762 probe 6
g762 probe 7
Register Driver 'gpio-fan'
Register Driver 'lm75'
Register Driver 'lm77'
Register Driver 'leds-gpio'
Register Driver 'mv_crypto'
Netfilter messages via NETLINK v0.30.
IPv4 over IPv4 tunneling driver
TCP: cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 0
console [netcon0] enabled
netconsole: network logging started
rtc-rs5c372 0-0032: setting system clock to 2015-08-17 11:16:29 UTC (1439810189)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: Hitachi HDT721010SLA360, ST6OA3AA, max UDMA/133
ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA Hitachi HDT72101 ST6O PQ: 0 ANSI: 5
fvdw1 disk index before get_sd_name = 0
device-name= sata_mv
fvdw2 disk index after get_sd_name = 4
fvdw3 prefix[0]=s prefix[1]=d
fvdw4 diskname = sde
sd 0:0:0:0: [sde] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: [sde] Write Protect is off
sd 0:0:0:0: [sde] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sde: sde4 < sde5 sde6 sde7 sde8 >
sd 0:0:0:0: [sde] Attached SCSI disk
ata9: failed to resume link (SControl 0)
ata9: SATA link down (SStatus 0 SControl 0)
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-8: Hitachi HDT721010SLA360, ST6OA3AA, max UDMA/133
ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access ATA Hitachi HDT72101 ST6O PQ: 0 ANSI: 5
fvdw1 disk index before get_sd_name = 1
device-name= sata_mv
fvdw2 disk index after get_sd_name = 3
fvdw3 prefix[0]=s prefix[1]=d
fvdw4 diskname = sdd
sd 1:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 1:0:0:0: [sdd] Write Protect is off
sd 1:0:0:0: [sdd] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdd: sdd4 < sdd5 sdd6 sdd7 sdd8 >
sd 1:0:0:0: [sdd] Attached SCSI disk
ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata3.00: ATA-8: Hitachi HDT721010SLA360, ST6OA3AA, max UDMA/133
ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata3.00: configured for UDMA/133
scsi 2:0:0:0: Direct-Access ATA Hitachi HDT72101 ST6O PQ: 0 ANSI: 5
fvdw1 disk index before get_sd_name = 2
device-name= sata_mv
fvdw2 disk index after get_sd_name = 2
fvdw3 prefix[0]=s prefix[1]=d
fvdw4 diskname = sdc
sd 2:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc: sdc4 < sdc5 sdc6 sdc7 sdc8 >
sd 2:0:0:0: [sdc] Attached SCSI disk
ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata4.00: ATA-8: Hitachi HDT721010SLA360, ST6OA3AA, max UDMA/133
ata4.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata4.00: configured for UDMA/133
scsi 3:0:0:0: Direct-Access ATA Hitachi HDT72101 ST6O PQ: 0 ANSI: 5
fvdw1 disk index before get_sd_name = 3
device-name= sata_mv
fvdw2 disk index after get_sd_name = 1
fvdw3 prefix[0]=s prefix[1]=d
fvdw4 diskname = sdb
sd 3:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb: sdb4 < sdb5 sdb6 sdb7 sdb8 >
sd 3:0:0:0: [sdb] Attached SCSI disk
ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata5.00: ATA-8: Hitachi HDT721010SLA360, ST6OA3AA, max UDMA/133
ata5.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata5.00: configured for UDMA/133
scsi 4:0:0:0: Direct-Access ATA Hitachi HDT72101 ST6O PQ: 0 ANSI: 5
fvdw1 disk index before get_sd_name = 4
device-name= sata_mv
fvdw2 disk index after get_sd_name = 0
fvdw3 prefix[0]=s prefix[1]=d
fvdw4 diskname = sda
sd 4:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 4:0:0:0: [sda] Write Protect is off
sd 4:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 4:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 >
sd 4:0:0:0: [sda] Attached SCSI disk
ata6: SATA link down (SStatus 0 SControl 300)
ata7: SATA link down (SStatus 0 SControl 300)
ata8: SATA link down (SStatus 0 SControl 300)
ata10: failed to resume link (SControl 0)
ata10: SATA link down (SStatus 0 SControl 0)
ata11: failed to resume link (SControl 0)
ata11: SATA link down (SStatus 0 SControl 0)
ata12: failed to resume link (SControl 0)
ata12: SATA link down (SStatus 0 SControl 0)
ata13: failed to resume link (SControl 0)
ata13: SATA link down (SStatus 0 SControl 0)
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda7): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) readonly on device 8:71.
Freeing init memory: 120K
EXT3-fs (sda7): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (sda7): using internal journal
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda1): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (sda1): using internal journal
EXT3-fs (sda1): recovery complete
EXT3-fs (sda1): mounted filesystem with ordered data mode
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda5): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (sda5): using internal journal
EXT3-fs (sda5): recovery complete
EXT3-fs (sda5): mounted filesystem with ordered data mode
Adding 514076k swap on /dev/sda3. Priority:-1 extents:1 across:514076k
NTFS driver 2.1.30 [Flags: R/W MODULE].
fuse init (API version 7.21)
Register Driver 'usblp'
usbcore: registered new interface driver usblp
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
iSCSI Enterprise Target Software - version trunk
iscsi_trgt: Registered io type fileio
iscsi_trgt: Registered io type blockio
iscsi_trgt: Registered io type nullio
Loading iSCSI transport class v2.0-870.
iscsi: registered transport (tcp)
Linux video capture interface: v2.00
uvcvideo: Unable to create debugfs directory
Register Driver 'uvcvideo'
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
raid6: int32x1 24 MB/s
raid6: int32x2 37 MB/s
raid6: int32x4 44 MB/s
raid6: int32x8 56 MB/s
raid6: using algorithm int32x8 (56 MB/s)
raid6: using intx1 recovery algorithm
async_tx: api initialized (async)
xor: measuring software checksum speed
arm4regs : 429.200 MB/sec
8regs : 336.800 MB/sec
32regs : 496.800 MB/sec
xor: using function: 32regs (496.800 MB/sec)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
device-mapper: multipath: version 1.5.1 loaded
device-mapper: multipath round-robin: version 1.0.0 loaded
device-mapper: multipath queue-length: version 0.1.0 loaded
device-mapper: multipath service-time: version 0.2.0 loaded
device-mapper: dm-log-userspace: version 1.1.0 loaded
device-mapper: raid: Loading target version 1.4.2
md: md0 still in use.
md: bind<sdb8>
md: bind<sdc8>
md: bind<sdd8>
md: bind<sde8>
md: bind<sda8>
md/raid:md0: device sda8 operational as raid disk 0
md/raid:md0: device sde8 operational as raid disk 4
md/raid:md0: device sdd8 operational as raid disk 3
md/raid:md0: device sdc8 operational as raid disk 2
md/raid:md0: device sdb8 operational as raid disk 1
md/raid:md0: allocated 5282kB
md/raid:md0: raid level 5 active with 5 out of 5 devices, algorithm 2
RAID conf printout:
--- level:5 rd:5 wd:5
disk 0, o:1, dev:sda8
disk 1, o:1, dev:sdb8
disk 2, o:1, dev:sdc8
disk 3, o:1, dev:sdd8
disk 4, o:1, dev:sde8
md0: detected capacity change from 0 to 3987352059904
md0: unknown partition table
EXT3-fs (md0): error: can't find ext3 filesystem on dev md0.
FAT-fs (md0): Unrecognized mount option "user_xattr" or missing value
FAT-fs (md0): Unrecognized mount option "user_xattr" or missing value
NTFS-fs error (device md0): parse_options(): Unrecognized mount option user_xattr.
NTFS-fs error (device md0): parse_options(): Unrecognized mount option acl.
udevd (1007): /proc/1007/oom_adj is deprecated, please use /proc/1007/oom_score_adj instead.
udev: starting version 130
mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled


Rebuild array:

Code: Select all
root@nas:/ # mdadm --stop /dev/md0
mdadm: stopped /dev/md0
root@nas:/ # mdadm --zero-superblock /dev/sda8
root@nas:/ # mdadm --zero-superblock /dev/sdb8
root@nas:/ # mdadm --zero-superblock /dev/sdc8
root@nas:/ # mdadm --zero-superblock /dev/sdd8
root@nas:/ # mdadm --zero-superblock /dev/sde8
root@nas:/ # cat /etc/mdadm.0 > /etc/mdadm.conf
root@nas:/ # cat /etc/mdadm.conf
CREATE owner=root group=root mode=0666 auto=yes
PROGRAM /usr/bin/mdadm-events
DEVICE /dev/sd[abcde]8
root@nas:/ # mdadm --detail --scan
root@nas:/ # mdadm --create --verbose --assume-clean --force /dev/md0 --level=raid5 --raid-devices=5 /dev/sda8 /dev/sdb8 /dev/sdc8 /dev/sdd8 /dev/sde8
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sdb8 appears to contain an ext2fs file system
    size=973474740K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdc8 appears to contain an ext2fs file system
    size=973474740K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sdd8 appears to contain an ext2fs file system
    size=973474740K  mtime=Thu Jan  1 01:00:00 1970
mdadm: /dev/sde8 appears to contain an ext2fs file system
    size=973474740K  mtime=Thu Jan  1 01:00:00 1970
mdadm: size set to 973474624K
Continue creating array? y
mdadm: array /dev/md0 started.
root@nas:/ # cat /etc/mdadm.0 > /etc/mdadm.conf
root@nas:/ # mdadm --detail --scan
ARRAY /dev/md0 level=raid5 num-devices=5 UUID=c47003a6:ebd9999a:03dac69b:de3b24e0
root@nas:/ # mdadm --detail --scan >> /etc/mdadm.conf
root@nas:/ # cat /etc/mdadm.conf
CREATE owner=root group=root mode=0666 auto=yes
PROGRAM /usr/bin/mdadm-events
DEVICE /dev/sd[abcde]8
ARRAY /dev/md0 level=raid5 num-devices=5 UUID=c47003a6:ebd9999a:03dac69b:de3b24e0
root@nas:/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md0 : active raid5 sde8[4] sdd8[3] sdc8[2] sdb8[1] sda8[0]
      3893898496 blocks level 5, 64k chunk, algorithm 2 [5/5] [UUUUU]

unused devices: <none>
root@nas:/ #


dmesg after array rebuild:

Code: Select all
md0: detected capacity change from 3987352059904 to 0
md: md0 stopped.
md: unbind<sda8>
md: export_rdev(sda8)
md: unbind<sde8>
md: export_rdev(sde8)
md: unbind<sdd8>
md: export_rdev(sdd8)
md: unbind<sdc8>
md: export_rdev(sdc8)
md: unbind<sdb8>
md: export_rdev(sdb8)
md: bind<sda8>
md: bind<sdb8>
md: bind<sdc8>
md: bind<sdd8>
md: bind<sde8>
md/raid:md0: device sde8 operational as raid disk 4
md/raid:md0: device sdd8 operational as raid disk 3
md/raid:md0: device sdc8 operational as raid disk 2
md/raid:md0: device sdb8 operational as raid disk 1
md/raid:md0: device sda8 operational as raid disk 0
md/raid:md0: allocated 5282kB
md/raid:md0: raid level 5 active with 5 out of 5 devices, algorithm 2
RAID conf printout:
 --- level:5 rd:5 wd:5
 disk 0, o:1, dev:sda8
 disk 1, o:1, dev:sdb8
 disk 2, o:1, dev:sdc8
 disk 3, o:1, dev:sdd8
 disk 4, o:1, dev:sde8
md0: detected capacity change from 0 to 3987352059904
 md0: unknown partition table
root@nas:/ #


Format:

Code: Select all
root@nas:/ # mke2fs -t ext3 -j -m 1 /dev/md0
mke2fs 1.42.11 (09-Jul-2014)
Creating filesystem with 973474624 4k blocks and 243376128 inodes
Filesystem UUID: eba4d0a6-7727-450e-953a-ea995b69b219
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

Allocating group tables: done
Writing inode tables:    34/29709


dmesg:

attempt to access beyond end of device
sdd8: rw=0, want=3254272780, limit=1946949480
attempt to access beyond end of device
sdd8: rw=4096, want=3254272780, limit=1946949480
attempt to access beyond end of device
sde8: rw=0, want=3254272780, limit=1946949480
attempt to access beyond end of device
sdc8: rw=0, want=3254272780, limit=1946949480
attempt to access beyond end of device
sdb8: rw=0, want=3254272780, limit=1946949480
attempt to access beyond end of device
sda8: rw=0, want=3254272780, limit=1946965545
attempt to access beyond end of device
sde8: rw=4096, want=3254272780, limit=1946949480
attempt to access beyond end of device
sdc8: rw=4096, want=3254272780, limit=1946949480
attempt to access beyond end of device
sdb8: rw=4096, want=3254272780, limit=1946949480
attempt to access beyond end of device
sda8: rw=4096, want=3254272780, limit=1946965545
md/raid:md0: Disk failure on sde8, disabling device.
md/raid:md0: Operation continuing on 4 devices.
md/raid:md0: Disk failure on sdd8, disabling device.
md/raid:md0: Operation continuing on 3 devices.
md/raid:md0: Disk failure on sdc8, disabling device.
md/raid:md0: Operation continuing on 2 devices.
md/raid:md0: Disk failure on sdb8, disabling device.
md/raid:md0: Operation continuing on 1 devices.
md/raid:md0: Disk failure on sda8, disabling device.
md/raid:md0: Operation continuing on 0 devices.
RAID conf printout:
--- level:5 rd:5 wd:0
disk 0, o:0, dev:sda8
disk 2, o:0, dev:sdc8
disk 3, o:0, dev:sdd8
disk 4, o:0, dev:sde8
RAID conf printout:
--- level:5 rd:5 wd:0
disk 0, o:0, dev:sda8
disk 2, o:0, dev:sdc8
disk 3, o:0, dev:sdd8
RAID conf printout:
--- level:5 rd:5 wd:0
disk 0, o:0, dev:sda8
disk 2, o:0, dev:sdc8
disk 3, o:0, dev:sdd8
RAID conf printout:
--- level:5 rd:5 wd:0
disk 0, o:0, dev:sda8
disk 2, o:0, dev:sdc8
RAID conf printout:
--- level:5 rd:5 wd:0
disk 0, o:0, dev:sda8
disk 2, o:0, dev:sdc8
RAID conf printout:
--- level:5 rd:5 wd:0
disk 0, o:0, dev:sda8
RAID conf printout:
--- level:5 rd:5 wd:0
disk 0, o:0, dev:sda8
RAID conf printout:
--- level:5 rd:5 wd:0
Buffer I/O error on device md0, logical block 23691293
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 23691309
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 23691325
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 23691277
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 23691294
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 23691310
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 23691326
lost page write due to I/O error on md0
(...)
You do not have the required permissions to view the files attached to this post.
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby fvdw » Mon Aug 17, 2015 11:09 am

mmm...you could still try to load the modules in the order I specified.

Further I read on the internet (http://pith.org/notes/2005/07/23/how-i- ... ize-error/) that this can be caused by a file system error on the disks
you could run on all partitions 8 this command
Code: Select all
e2fsck -f -v /dev/sda8

(and for sdb8, sdc8, sdd8 and sde8)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problems with raid5

Postby samrise » Mon Aug 17, 2015 11:20 am

I put them in the same order. That's why i posted content of /etc/init.d/insert-modules . Did i miss anything?

e2fsck was the first thing i tryed, but i will run it again.

I was reading again this tutorial and i have some questions. I formated partitions with fdisk since its 1gb hard disks. Should i have done it with gdisk since raid is going to be +2gb? Wasnt i suppose to be able to mount md0 just after array creation?
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby fvdw » Mon Aug 17, 2015 11:23 am

I will look at that tuturial

ps also this link points in that direction
http://www.hierax.org/2009/09/raid1-pro ... nd-of.html

It makes sense if the super block on the partition contains a wrong size you might encounter this issue, could be a leftover form earlier attempts ??

ps: you can also run e2fsck on /dev/md0
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problems with raid5

Postby fvdw » Mon Aug 17, 2015 11:31 am

I formated partitions with fdisk since its 1gb hard disks. Should i have done it with gdisk since raid is going to be +2gb? Wasnt i suppose to be able to mount md0 just after array creation?


AFAIK You do not need to format each partition, just create the array and then format md0

What you could do is delete partiton 8 on all disk and write the partition table to disk, then reload fdisk and create it again as raid type aand do not format it. After raid assembly format /dev/md0 (it should no not mention that sda8 etc.. seems to contain a file system)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problems with raid5

Postby samrise » Mon Aug 17, 2015 1:50 pm

fvdw wrote:What you could do is delete partiton 8 on all disk and write the partition table to disk, then reload fdisk and create it again as raid type aand do not format it. After raid assembly format /dev/md0 (it should no not mention that sda8 etc.. seems to contain a file system)


I was trying to test this option. I removed partition partition 8 of sda and then made a new one. Just after write (w) i did mount /dev/sda8 /test and it worked. I was even able to make a dir inside that mount, so it seems the filesystem is there anyway!

:hammerhead
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

PreviousNext

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 6 guests