Cannot access 5big network 2

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 1:23 pm

Jocko wrote:The binary is not mdadm but udevstart.

As you name Mijzelf script udevstart, the issue is: do you use the script or the binary available from plugout?

Sorry, my mistake...too many postings :mrgreen:
The downloaded udevstart (9-7-2013 417kb).
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 1:25 pm

Just to be sure!

1/unplug the failed disk (5th)
2/plug the new disk
3/start fvdw-sl console and load the kernel
4/upload udevstart and mdadm
5/run udevstart at this step please...
6/ build the raid with the command

mdadm --assemble /dev/md0 /dev/sd[abce]2 --run

report output of:

cat /proc/partitions

ls -l /dev/sd[abcde]

cat /proc/partitions|busybox grep -r /dev/sd[abcde]$
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby Jocko » Tue May 19, 2015 1:27 pm

So to be sure to get the right dev nodes in /dev, I'd rather that you use the Mijzelf script (patched)
Code: Select all
#!/bin/sh

while read line
do
   if [ "$line" != "" ]; then
       device=` echo $line | cut -d ' ' -f 4 `
       major=` echo $line | cut -d ' ' -f 1 `
       minor=` echo $line | cut -d ' ' -f 2 `
     
       [ -e /dev/$device ] && rm /dev/$device
       mknod -m 666 /dev/$device b $major $minor
   fi
done </proc/partitions | grep -v major
(so with -e instead of -f)

And it is Ok for me with your previous post
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cannot access 5big network 2

Postby Jocko » Tue May 19, 2015 1:38 pm

maybe you forgot to set run permissions on the mijzelf script as the dev node are not updated and permissions are not changed (should rw-rw-rw-)

Do you do ?
Code: Select all
chmod 755 yourscriptname
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 1:41 pm

Jocko wrote:maybe you forgot to set run permissions on the mijzelf script as the dev node are not updated and permissions are not changed (should rw-rw-rw-)

Do you do ?
Code: Select all
chmod 755 yourscriptname

Did that and saw an error in my sequence. Isn't abce but abcd.

Here is the output.

Code: Select all
root@fvdw-sta-kirkwood:/ # tftp -l /sbin/mdadm -r mdadm -g 192.168.10.10
mdadm                100% |*******************************|  1100k  0:00:00 ETA
root@fvdw-sta-kirkwood:/ # tftp -l /sbin/udevstart -r udevstart -g 192.168.10.10
udevstart            100% |*******************************|   348   0:00:00 ETA
root@fvdw-sta-kirkwood:/ # chmod 755 /sbin/mdadm
root@fvdw-sta-kirkwood:/ # chmod 755 /sbin/udevstart
root@fvdw-sta-kirkwood:/ # udevstart
mknod: invalid number 'major'
root@fvdw-sta-kirkwood:/ # mdadm --assemble /dev/md0 /dev/sd[abcd]2 --run
mdadm: /dev/md0 has been started with 4 drives (out of 5).
root@fvdw-sta-kirkwood:/ # cat /proc/partitions
major minor  #blocks  name

  31        0        500 mtdblock0
  31        1          4 mtdblock1
   8        0  976762584 sdc
   8        1          1 sdc1
   8        2  974751907 sdc2
   8        5     256977 sdc5
   8        6       8001 sdc6
   8        7       8001 sdc7
   8        8     851413 sdc8
   8        9     875511 sdc9
   8       10       8001 sdc10
   8       16  976762584 sdb
   8       17          1 sdb1
   8       18  974751907 sdb2
   8       21     256977 sdb5
   8       22       8001 sdb6
   8       23       8001 sdb7
   8       24     851413 sdb8
   8       25     875511 sdb9
   8       26       8001 sdb10
   8       32  976762584 sda
   8       33          1 sda1
   8       34  974751907 sda2
   8       37     256977 sda5
   8       38       8001 sda6
   8       39       8001 sda7
   8       40     851413 sda8
   8       41     875511 sda9
   8       42       8001 sda10
   8       48  976762584 sde
   8       64  976762584 sdd
   8       65          1 sdd1
   8       66  974751907 sdd2
   8       69     256977 sdd5
   8       70       8001 sdd6
   8       71       8001 sdd7
   8       72     851413 sdd8
   8       73     875511 sdd9
   8       74       8001 sdd10
   9        0 3899007232 md0
root@fvdw-sta-kirkwood:/ # ls -l /dev/sd[abcde]
brw-rw-rw-    1 root     root        8,  32 May 19 13:45 /dev/sda
brw-rw-rw-    1 root     root        8,  16 May 19 13:45 /dev/sdb
brw-rw-rw-    1 root     root        8,   0 May 19 13:45 /dev/sdc
brw-rw-rw-    1 root     root        8,  64 May 19 13:45 /dev/sdd
brw-rw-rw-    1 root     root        8,  48 May 19 13:45 /dev/sde
root@fvdw-sta-kirkwood:/ # cat /proc/partitions|busybox grep -r /dev/sd[abcde]$
root@fvdw-sta-kirkwood:/ #
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby Jocko » Tue May 19, 2015 1:48 pm

:applause It is ok now :thumbup

! so do it only if you have this output
Code: Select all
root@Acrab:/ # ls -l /dev/sde
brw-rw----  1 root root 8, 48 2015-05-18 17:13 /dev/sde

and fdisk -l /dev/sde should list no partition

Otherwise you lose your raid definitively...
note the values 8,48

Code: Select all
fdisk /dev/sde


enter: n -> 1 -> p -> 1 -> enter -> enter

then if you enter p you must see the new partition partition if it is ok enter w to save it.

enter again p you still must see the partition with type 83 and quit fdisk with q


- then format the partition
Code: Select all
mke2fs-ext3 -j -m 1 /dev/sde1
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 1:52 pm

Jocko wrote::applause It is ok now :thumbup

! so do it only if you have this output
Code: Select all
root@Acrab:/ # ls -l /dev/sde
brw-rw----  1 root root 8, 48 2015-05-18 17:13 /dev/sde

and fdisk -l /dev/sde should list no partition

Otherwise you lose your raid definitively...
note the values 8,48

Code: Select all
fdisk /dev/sde


enter: n -> 1 -> p -> 1 -> enter -> enter

then if you enter p you must see the new partition partition if it is ok enter w to save it.

enter again p you still must see the partition with type 83 and quit fdisk with q


- then format the partition
Code: Select all
mke2fs-ext3 -j -m 1 /dev/sde

Just to confirm!!

Code: Select all
root@fvdw-sta-kirkwood:/ # ls -l /dev/sde
brw-rw-rw-    1 root     root        8,  48 May 19 13:45 /dev/sde
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

Re: Cannot access 5big network 2

Postby Jocko » Tue May 19, 2015 1:54 pm

and fdisk -l /dev/sde should not list partitions

Please to note that I edited my format command (/dev/sde1 instead of /dev/sde)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cannot access 5big network 2

Postby Mijzelf » Tue May 19, 2015 1:55 pm

You'll have to run the script again after having created the partition. Else there will be no device node for /dev/sde1
Mijzelf
 
Posts: 255
Joined: Wed Nov 21, 2012 9:12 am

Re: Cannot access 5big network 2

Postby pacco » Tue May 19, 2015 1:56 pm

Jocko wrote:and fdisk -l /dev/sde should not list partitions

Please to note that I edited my format command (/dev/sde1 instead of /dev/sde)


Again to make sure:

Code: Select all
root@fvdw-sta-kirkwood:/ # fdisk -l /dev/sde

Disk /dev/sde: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sde doesn't contain a valid partition table
pacco
 
Posts: 76
Joined: Tue Apr 28, 2015 1:27 pm

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 9 guests