Problems with raid5

Problems with raid5

Postby samrise » Sun Aug 09, 2015 12:06 pm

Hi guys!

I've been trying to create a raid5 using the tutorial available here. Everything goes good until format partition. If fails and dmesg shows a lot of Buffer I/O error on device md0, logical block 168722904 lost page write due to I/O error on md0. I've been reading other posts and this forum and it points to bad disks, but i've been doing some tests.

Ran badblocks on all disks with 0 errors.
Ran fsck on all disks with 0 errors.
Created ext3 partitions on all disks and then ran fsck and again, no errors.
Created a raid1 with all 5 disks and works fine (format partition, etc).
All disks seem to work good wihout raid.

It seems to only fail with raid5. Is there anything else i can test?
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby Jocko » Mon Aug 10, 2015 8:35 am

Hi samrise,

After booting again the NAS can you post your dmesg output

There is a bug with version 16.0 for this platform : we forgot to load some modules for the raid feature.

Did you make the sed command to fix it ?(viewtopic.php?f=30&t=2168#p18177).
and post the content of insert-modules
Code: Select all
cat /etc/init.d/insert-modules
.
To see if some raid modules for raid5 failed to be loaded, post the content of
Code: Select all
cat /boot.log

Same ask with mdstat
Code: Select all
cat /proc/mdstat
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby samrise » Mon Aug 10, 2015 9:18 am

Yes, i loaded the modules.

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 raid0 2>> boot.log
modprobe raid1 2>> boot.log
modprobe raid456 2>> boot.log
modprobe raid10 2>> boot.log
exit 0


boot.log doesnt report anything failing

Code: Select all
root@nas:/ # cat /boot.log
start boot log
detect and set platform
5big1
UIMAGE-395-5BIG1-25
5big1
 mount dev/pts
update dev nodes
booting using sda1 root file system...
make dev node for buttons...
make dev node for tun device...
enable IP forwarding...
start buttons control daemon
device = 5big1
source = buttons-nwsp2
buttons-nwsp2 daemon started
Sun Aug  9 20:14:43 WEST 2015
create temporary passwd file
run udevstart to update dev nodes when necessary
inserting kernel modules:
create temporary group file
configure loopback netwerk interface
setting reboot and standby
5big1
rebootd-isp1
5big1
standbyd-isp1
start fan
fan5big daemon started
starting php based setup routines step 1
 * Starting RAID monitor:                                [ OK ]
 * Starting restore RAID devices...
   - Assembling device /dev/md0:  [ OK ]
 * Finishing restore RAID devices...     [ OK ]
 * Found XML database configuration file...      [ OK ]
 * Updating Disks database...                    [ OK ]
 * Starting mount of volumes...
   - Mounting volume RD1-0:  [ OK ]
 * Finishing mount of volumes...                 [ OK ]
 * Starting udevd...                                     [ OK ]
 * Generating Hosts File...                      [ OK ]
 * Configuring System Hostname...                [ OK ]
 * Configuring LAN interface...                  [ OK ]
 * Initializing Timezone...                      [ OK ]
 * Starting web server...                                [ OK ]
 * Starting mount of internal USB ...
 * Finishing mount internal USB ...      [ OK ]
 * Configuring Disks...                                  [ OK ]
 * Configuring Samba...                                  [ OK ]
 * Configuring System Users...
        Root password: use default password
        Set users, linux and samba accounts      [ OK ]
 * Starting syncawayd...                                 [ OK ]
 * Starting Fvdw-sl Discovery Daemon...  [ OK ]
start rpcbind service
starting php based setup routines step 2
 * Starting dropbear...                                  [ OK ]
 * Kill temporary dropbear...                    [ OK ]
starting php based setup routines step 3
 * Starting daemon update Hosts File...  [ OK ]
 * Starting Disk Temperature Guard...    [ OK ]
 * Starting mount of remote shares...
 * Finishing mount shares...                     [ OK ]
starting php based setup routines step banner


*** fvdw-sl NAS firmware
    This is fvdw-sl version: fvdw-sl 16.0
    built on: Dec 28 2014

    LAN IP address: 192.168.1.91 (static)

    Port configuration:

    LAN   -> eth0
php based setup routines finished
web permission on resolv.conf
set device tuning for dms performance
else loop1 finished
rcS finished


I'm trying to convert my working raid1 to raid5 using this link, so my mdstat looks like this now:

Code: Select all
root@nas:/ # cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sde8[5] sdd8[3] sdc8[2] sdb8[1] sda8[0]
      3893898496 blocks level 5, 64k chunk, algorithm 2 [5/4] [UUUU_]
      [===============>.....]  recovery = 75.5% (735872228/973474624) finish=284.4min speed=13918K/sec

unused devices: <none>
root@nas:/ #
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby Jocko » Mon Aug 10, 2015 10:00 am

Ok,

So wait for the synchronization completes and hope that there is no issue when you will add the 5th disk as currently you don't have a real raid5

Indeed that seems a nice way to convert a raid1 to raid5 without losing data (but it is not your case)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby samrise » Mon Aug 10, 2015 10:35 am

About that, can you give me a hint about adding that 5th disk? sde8 is marked as spare.

Code: Select all
    Number   Major   Minor   RaidDevice State
       0       8       72        0      active sync   /dev/sda8
       1       8       56        1      active sync   /dev/sdb8
       2       8       40        2      active sync   /dev/sdc8
       3       8       24        3      active sync   /dev/sdd8
       5       8        8        4      spare rebuilding   /dev/sde8


Edit: I hope you understood my issue. I didnt have problems creating the raid. I just cant format/create filesystem. I tried converting raid1 to raid5 because i hope to resize the existing partition that i had working for raid1.
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby samrise » Mon Aug 10, 2015 11:42 am

I have some news...

I had a power failure and after that nas start rebuilding from 0% again. I decided to stop array and start from scratch. Created a new raid5 and added --assume-clean. Raid became active and i start formatting partition (mke2fs -t ext3 -j -m 1 /dev/md0). This time i was able to get the first errors.

Code: Select all
attempt to access beyond end of device
sdd8: rw=0, want=3251708684, limit=1946949480
attempt to access beyond end of device
sdd8: rw=4096, want=3251708684, limit=1946949480
attempt to access beyond end of device
sda8: rw=0, want=3251708684, limit=1946965545
attempt to access beyond end of device
sde8: rw=0, want=3251708684, limit=1946949480
attempt to access beyond end of device
sdc8: rw=0, want=3251708684, limit=1946949480
attempt to access beyond end of device
sdb8: rw=0, want=3251708684, limit=1946949480
attempt to access beyond end of device
sda8: rw=4096, want=3251708684, limit=1946965545
md/raid:md0: Disk failure on sdd8, disabling device.
md/raid:md0: Operation continuing on 4 devices.
md/raid:md0: Disk failure on sda8, disabling device.
md/raid:md0: Operation continuing on 3 devices.
Buffer I/O error on device md0, logical block 22446539
lost page write due to I/O error on md0
RAID conf printout:
 --- level:5 rd:5 wd:3
 disk 0, o:0, dev:sda8
 disk 1, o:1, dev:sdb8
 disk 2, o:1, dev:sdc8
 disk 3, o:0, dev:sdd8
 disk 4, o:1, dev:sde8
RAID conf printout:
 --- level:5 rd:5 wd:3
 disk 0, o:0, dev:sda8
 disk 1, o:1, dev:sdb8
 disk 2, o:1, dev:sdc8
 disk 4, o:1, dev:sde8
RAID conf printout:
 --- level:5 rd:5 wd:3
 disk 0, o:0, dev:sda8
 disk 1, o:1, dev:sdb8
 disk 2, o:1, dev:sdc8
 disk 4, o:1, dev:sde8
RAID conf printout:
 --- level:5 rd:5 wd:3
 disk 1, o:1, dev:sdb8
 disk 2, o:1, dev:sdc8
 disk 4, o:1, dev:sde8
Buffer I/O error on device md0, logical block 22413824
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 22413825
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 22446571
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 22446587
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 22446555
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 22446592
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 22446593
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 22479232
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 22479233
lost page write due to I/O error on md0
quiet_error: 42497 callbacks suppressed


Any ideas?

Edit:

Next i create an array with just 3 disks, sdb sdc and sde.

mdadm --create --verbose --assume-clean --force /dev/md0 --level=raid5 --raid-devices=3 /dev/sdb8 /dev/sdc8 /dev/sde8


As soon as i start formatting partition:

Code: Select all
sdb8: rw=0, want=2287038931664744, limit=1946949480
attempt to access beyond end of device
sdc8: rw=0, want=2287038931664744, limit=1946949480
attempt to access beyond end of device
sdb8: rw=4096, want=2287038931664744, limit=1946949480
attempt to access beyond end of device
sde8: rw=0, want=2287038931664744, limit=1946949480
attempt to access beyond end of device
sdc8: rw=4096, want=2287038931664744, limit=1946949480
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.
attempt to access beyond end of device
sde8: rw=4096, want=2287038931664744, limit=1946949480
md/raid:md0: read error not correctable (sector 2287038931664736 on sde8).
md/raid:md0: Disk failure on sde8, disabling device.
md/raid:md0: Operation continuing on 0 devices.
Buffer I/O error on device md0, logical block 17039765
lost page write due to I/O error on md0
RAID conf printout:
 --- level:5 rd:3 wd:0
 disk 0, o:0, dev:sdb8
 disk 1, o:0, dev:sdc8
 disk 2, o:0, dev:sde8
RAID conf printout:
 --- level:5 rd:3 wd:0
 disk 1, o:0, dev:sdc8
 disk 2, o:0, dev:sde8
Buffer I/O error on device md0, logical block 17039872
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 17039873
lost page write due to I/O error on md0
RAID conf printout:
 --- level:5 rd:3 wd:0
 disk 1, o:0, dev:sdc8
 disk 2, o:0, dev:sde8
RAID conf printout:
 --- level:5 rd:3 wd:0
 disk 1, o:0, dev:sdc8
RAID conf printout:
 --- level:5 rd:3 wd:0
 disk 1, o:0, dev:sdc8
RAID conf printout:
 --- level:5 rd:3 wd:0
Buffer I/O error on device md0, logical block 17072144
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 17072145
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 17072496


What am i missing?
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby Jocko » Mon Aug 10, 2015 1:37 pm

:thinking

That sounds as an issue with mke2fs command and big partition. Maybe an issue with this not kirkwood platform...

As fvdw is not here for a few days (who compiled the kernel), you can try to use the static command available in fvdw-sl console (mke2fs-ext3 in tftp folder)

So example copy it in the folder /tmp.

set run permissions
Code: Select all
chmod a+x /tmp/mke2fs-ext3


I assume that you have a clean raid5 and try to format with this static binary
Code: Select all
/tmp/mke2fs-ext3 -j -m 1 /dev/md0
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby samrise » Mon Aug 10, 2015 2:19 pm

Nop.

Code: Select all
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/sda8 appears to contain an ext2fs file system
    size=973482772K  mtime=Thu Jan  1 01:00:00 1970
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 /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
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:/ # cat /etc/mdadm.0 > /etc/mdadm.conf
root@nas:/ # mdadm --detail --scan
ARRAY /dev/md0 level=raid5 num-devices=5 UUID=06050229:85b0dc7e:c9fdf181:5c5189f7
root@nas:/ # mdadm --detail --scan >> /etc/mdadm.conf
root@nas:/ # cd temp
root@nas:/temp # ls
mke2fs-ext3
root@nas:/temp # chmod a+x /temp/mke2fs-ext3
root@nas:/temp # /temp/mke2fs-ext3 -j -m 1 /dev/md0
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
243376128 inodes, 973474624 blocks
9734746 blocks (1.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
29709 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
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

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:
Warning, had trouble writing out superblocks.done

This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@nas:/temp # cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sde8[4] sdd8[5](F) sdc8[6](F) sdb8[1] sda8[0]
      3893898496 blocks level 5, 64k chunk, algorithm 2 [5/3] [UU__U]

unused devices: <none>


dmesg, right after executing mke2fs-ext3:

Code: Select all
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
mke2fs-ext3: page allocation failure: order:1, mode:0x200020
Backtrace:
[<c0010d7c>] (dump_backtrace+0x0/0x108) from [<c028c28c>] (dump_stack+0x18/0x1c)
 r6:c35e8000 r5:00200020 r4:00000000 r3:c038424c
[<c028c274>] (dump_stack+0x0/0x1c) from [<c005b928>] (warn_alloc_failed+0xec/0x110)
[<c005b83c>] (warn_alloc_failed+0x0/0x110) from [<c005dba4>] (__alloc_pages_nodemask+0x368/0x608)
 r3:00000000 r2:00000000
 r8:00000000 r7:c039b3f0 r6:00000001 r5:c35e8000 r4:00200020
[<c005d83c>] (__alloc_pages_nodemask+0x0/0x608) from [<c00830d8>] (cache_alloc_refill+0x2a0/0x5f0)
[<c0082e38>] (cache_alloc_refill+0x0/0x5f0) from [<c0082de0>] (kmem_cache_alloc+0x80/0xd8)
[<c0082d60>] (kmem_cache_alloc+0x0/0xd8) from [<c01f8ed0>] (sk_prot_alloc.isra.43+0x2c/0xd0)
 r7:00000020 r6:c780d500 r5:c039890c r4:c316a660
[<c01f8ea4>] (sk_prot_alloc.isra.43+0x0/0xd0) from [<c01f9bc8>] (sk_clone_lock+0x18/0x208)
 r7:c7885680 r6:c70e92c0 r5:c70e92c0 r4:c316a660
[<c01f9bb0>] (sk_clone_lock+0x0/0x208) from [<c0238b50>] (inet_csk_clone_lock+0x18/0x80)
 r5:c316a660 r4:c316a660
[<c0238b38>] (inet_csk_clone_lock+0x0/0x80) from [<c024f1a4>] (tcp_create_openreq_child+0x20/0x428)
 r5:c316a660 r4:c316a660
[<c024f184>] (tcp_create_openreq_child+0x0/0x428) from [<c024ba80>] (tcp_v4_syn_recv_sock+0x38/0x220)
 r8:c7885680 r7:c70e92c0 r6:00000000 r5:c316a660 r4:c316a660
r3:00000014
[<c024ba48>] (tcp_v4_syn_recv_sock+0x0/0x220) from [<c024f9dc>] (tcp_check_req+0x32c/0x4cc)
 r8:00000000 r7:00000000 r6:c7885680 r5:c70e92c0 r4:c316a660
r3:00000000
[<c024f6b0>] (tcp_check_req+0x0/0x4cc) from [<c024bd88>] (tcp_v4_do_rcv+0x120/0x21c)
[<c024bc68>] (tcp_v4_do_rcv+0x0/0x21c) from [<c024eaf8>] (tcp_v4_rcv+0x7b8/0x92c)
 r8:c0396e80 r7:c310be10 r6:00000000 r5:c70e92c0 r4:c7885680
[<c024e340>] (tcp_v4_rcv+0x0/0x92c) from [<c022e250>] (ip_local_deliver_finish+0x130/0x20c)
[<c022e120>] (ip_local_deliver_finish+0x0/0x20c) from [<c022e750>] (ip_local_deliver+0x94/0xa4)
 r8:00000008 r7:c7058000 r6:c7885680 r5:00000000 r4:c7885680
r3:c7058000
[<c022e6bc>] (ip_local_deliver+0x0/0xa4) from [<c022e574>] (ip_rcv_finish+0x248/0x2a0)
 r4:c310be10
[<c022e32c>] (ip_rcv_finish+0x0/0x2a0) from [<c022e9f4>] (ip_rcv+0x294/0x2fc)
 r6:c7885680 r5:00000000 r4:000839cc
[<c022e760>] (ip_rcv+0x0/0x2fc) from [<c0206f1c>] (__netif_receive_skb_core+0x4d4/0x578)
 r7:00000000 r6:00000000 r5:c037e468 r4:c037fc5c
[<c0206a48>] (__netif_receive_skb_core+0x0/0x578) from [<c0207a20>] (__netif_receive_skb+0x2c/0x80)
[<c02079f4>] (__netif_receive_skb+0x0/0x80) from [<c0207ac8>] (netif_receive_skb+0x54/0x60)
 r5:c7058500 r4:c7885680
[<c0207a74>] (netif_receive_skb+0x0/0x60) from [<c01c8efc>] (mv643xx_eth_poll+0x504/0x634)
 r4:c7058494
[<c01c89f8>] (mv643xx_eth_poll+0x0/0x634) from [<c0207d48>] (net_rx_action+0xe8/0x1f0)
[<c0207c60>] (net_rx_action+0x0/0x1f0) from [<c00210dc>] (__do_softirq+0xc8/0x1a4)
[<c0021014>] (__do_softirq+0x0/0x1a4) from [<c00214b8>] (irq_exit+0x78/0xc4)
[<c0021440>] (irq_exit+0x0/0xc4) from [<c000e858>] (handle_IRQ+0x6c/0x88)
 r4:00000015 r3:00000040
[<c000e7ec>] (handle_IRQ+0x0/0x88) from [<c00081b0>] (asm_do_IRQ+0x10/0x14)
 r6:fe020200 r5:20000013 r4:c005f374 r3:c005f34c
[<c00081a0>] (asm_do_IRQ+0x0/0x14) from [<c000d574>] (__irq_svc+0x34/0x64)
Exception stack(0xc35e9b90 to 0xc35e9bd8)
9b80:                                     00006935 010200d0 c35e9bd8 c03c1c78
9ba0: c039aed8 c4c7e040 00000000 c039b3f0 00000000 00000000 00000001 c35e9bf4
9bc0: c35e9bd8 c35e9bd8 c005f34c c005f374 20000013 ffffffff
[<c005f334>] (zone_dirty_ok+0x0/0xc8) from [<c005cd24>] (get_page_from_freelist+0xa4/0x4a0)
 r6:00000000 r5:01ffffff r4:010200d0 r3:00000000
[<c005cc80>] (get_page_from_freelist+0x0/0x4a0) from [<c005d92c>] (__alloc_pages_nodemask+0xf0/0x608)
[<c005d83c>] (__alloc_pages_nodemask+0x0/0x608) from [<c0058518>] (grab_cache_page_write_begin+0x64/0xb4)
[<c00584b4>] (grab_cache_page_write_begin+0x0/0xb4) from [<c00acc00>] (block_write_begin+0x28/0x84)
 r9:00001000 r8:00004000 r7:00001000 r6:00000004 r5:7006c000
r4:00000000
[<c00acbd8>] (block_write_begin+0x0/0x84) from [<c00b0c04>] (blkdev_write_begin+0x38/0x44)
 r6:c35e8000 r5:c75d4334 r4:00000000
[<c00b0bcc>] (blkdev_write_begin+0x0/0x44) from [<c0057f94>] (generic_file_buffered_write+0xe0/0x230)
[<c0057eb4>] (generic_file_buffered_write+0x0/0x230) from [<c0059784>] (__generic_file_aio_write+0x318/0x360)
[<c005946c>] (__generic_file_aio_write+0x0/0x360) from [<c00b1198>] (blkdev_aio_write+0x54/0xb4)
[<c00b1144>] (blkdev_aio_write+0x0/0xb4) from [<c0086090>] (do_sync_write+0x90/0xcc)
[<c0086000>] (do_sync_write+0x0/0xcc) from [<c00866a8>] (vfs_write+0xb4/0x144)
 r8:00737908 r7:00000000 r6:c35e9f78 r5:00737908 r4:c7852080
[<c00865f4>] (vfs_write+0x0/0x144) from [<c0086928>] (sys_write+0x44/0x74)
 r8:00737908 r7:00000000 r6:c7852080 r5:00000004 r4:70068000
[<c00868e4>] (sys_write+0x0/0x74) from [<c000d940>] (ret_fast_syscall+0x0/0x2c)
 r9:c35e8000 r8:c000dac8 r7:00000004 r6:0072d1b0 r5:0072d218
r4:00008000
Mem-info:
Normal per-cpu:
CPU    0: hi:   42, btch:   7 usd:  16
active_anon:10616 inactive_anon:10708 isolated_anon:0
 active_file:196 inactive_file:5463 isolated_file:0
 unevictable:0 dirty:1384 writeback:981 unstable:0
 free:481 slab_reclaimable:355 slab_unreclaimable:786
 mapped:173 shmem:2 pagetables:193 bounce:0
 free_cma:0
Normal free:1924kB min:1416kB low:1768kB high:2124kB active_anon:42464kB inactive_anon:42832kB active_file:784kB inactive_file:21852kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:131072kB managed:126024kB mlocked:0kB dirty:5536kB writeback:3924kB mapped:692kB shmem:8kB slab_reclaimable:1420kB slab_unreclaimable:3144kB kernel_stack:560kB pagetables:772kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0
Normal: 457*4kB (UM) 12*8kB (M) 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1924kB
6121 total pagecache pages
453 pages in swap cache
Swap cache stats: add 77708, delete 77255, find 29826/33583
Free swap  = 442500kB
Total swap = 514076kB
32768 pages of RAM
630 free pages
1232 reserved pages
1141 slab pages
268413 pages shared
453 pages swap cached
SLAB: Unable to allocate memory on node 0 (gfp=0x20)
  cache: TCP, object size: 1184, order: 1
  node 0: slabs: 1/1, objs: 6/6, free: 0


and then, during formatting, lots and lots of:

Code: Select all
i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
quiet_error: 64394 callbacks suppressed
Buffer I/O error on device md0, logical block 82510336
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82510337
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82542642
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82542594
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82542610
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82542626
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82542643
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82542595
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82542611
lost page write due to I/O error on md0
Buffer I/O error on device md0, logical block 82542627
lost page write due to I/O error on md0
i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Problems with raid5

Postby Jocko » Mon Aug 10, 2015 2:41 pm

There was very small chance that it works.

But instead of using it in a standard environment, you can format your raid via fvdw-sl console where the static command runs nicely.

So start a standalone session to get a telnet access. (select this kernel version UIMAGE-26394-5BIG1-42-standalone)

load mdadm and mke2fs-ext3
Code: Select all
tftp -l /sbin/mdadm -r mdadm -g ip-pc
tftp -l /sbin/mke2fs-ext3 -r mke2fs-ext3 -g ip-pc
(ip-pc is the ip of your laptop)

set run permissions
Code: Select all
chmod a+x /sbin/mdadm  /sbin/mke2fs-ext3

assemble the raid
Code: Select all
 mdadm --assemble /dev/md0 /dev/sd[abcde]8

and try to format it
Code: Select all
mke2fs-ext3 -j -m 1 /dev/md0
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Problems with raid5

Postby samrise » Mon Aug 10, 2015 3:04 pm

Code: Select all
(none) login: root
Password:
root@(none):/ # tftp -l /sbin/mdadm -r mdadm -g 192.168.1.83
mdadm                100% |****************************************************************|  1100k  0:00:00 ETA
root@(none):/ # tftp -l /sbin/mke2fs-ext3 -r mke2fs-ext3 -g 192.168.1.83
mke2fs-ext3          100% |****************************************************************|   261k  0:00:00 ETA
root@(none):/ # chmod a+x /sbin/mdadm /sbin/mke2fs-ext3
root@(none):/ # mdadm --assemble /dev/md0 /dev/sd[abcde]8
mdadm: unexpected failure opening /dev/md0


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

Next

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 3 guests