Note: I have not done anything with the superblock
Partition info commands:
- Code: Select all
root@HvyMtlNAS:/ # gdisk -l /dev/sdd
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdd: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): F3E49E81-3213-436B-BF9F-1302D44C4CD0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5803998 sectors (2.8 GiB)
Number Start (sector) End (sector) Size Code Name
8 5804032 3907029134 1.8 TiB FD00 Linux RAID
- Code: Select all
root@HvyMtlNAS:/ # gdisk -l /dev/sde
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sde: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): AC689F36-3A3A-4758-A70A-C3FF4D1428E9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 5803998 sectors (2.8 GiB)
Number Start (sector) End (sector) Size Code Name
8 5804032 3907029134 1.8 TiB FD00 Linux RAID
Edited the conf file again:
- Code: Select all
root@HvyMtlNAS:/ # vi /rw_fs/etc/mdadm.conf
root@HvyMtlNAS:/ # cat /rw_fs/etc/mdadm.conf
CREATE owner=root group=root mode=0666 auto=yes metadata=1.0
PROGRAM /usr/bin/mdadm-events
DEVICE /dev/sd[abcde]8 /dev/se*
ARRAY /dev/md0 metadata=0.9 level=raid5 num-devices=5 UUID=2640f25a:4ed24787:e0e498eb:d7731140
MAILADDR [REDACTED]@gmail.com
Assemble command completed with no output:
- Code: Select all
root@HvyMtlNAS:/ # mdadm --assemble /dev/md0
root@HvyMtlNAS:/ #
Ran commands given before for testing after assemble:
- Code: Select all
root@HvyMtlNAS:/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
unused devices: <none>
root@HvyMtlNAS:/ # mdadm --detail /dev/md0
mdadm: cannot open /dev/md0: No such file or directory
Tried other previously given assemble commands:
- Code: Select all
root@HvyMtlNAS:/ # mdadm --assemble /dev/md0 --run
root@HvyMtlNAS:/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
unused devices: <none>
root@HvyMtlNAS:/ # mdadm --detail /dev/md0
mdadm: cannot open /dev/md0: No such file or directory
The one with the UID appears to have worked
- Code: Select all
root@HvyMtlNAS:/ # mdadm --assemble /dev/md0 --uuid=2640f25a:4ed24787:e0e498eb:d7731140
mdadm: failed to get exclusive lock on mapfile - continue anyway...
mdadm: /dev/md0 has been started with 4 drives (out of 5).
root@HvyMtlNAS:/ # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md0 : active raid5 sda8[0] sde8[4] sdd8[3] sdb8[1]
7802449920 blocks level 5, 64k chunk, algorithm 2 [5/4] [UU_UU]
unused devices: <none>
root@HvyMtlNAS:/ # mdadm --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Thu Jun 18 23:12:56 2015
Raid Level : raid5
Array Size : 7802449920 (7441.00 GiB 7989.71 GB)
Used Dev Size : 1950612480 (1860.25 GiB 1997.43 GB)
Raid Devices : 5
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Sun Jun 11 09:23:01 2017
State : clean, degraded
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 64K
UUID : 2640f25a:4ed24787:e0e498eb:d7731140
Events : 0.17504
Number Major Minor RaidDevice State
0 8 24 0 active sync /dev/sda8
1 8 8 1 active sync /dev/sdb8
4 0 0 4 removed
3 8 56 3 active sync /dev/sdd8
4 8 40 4 active sync /dev/sde8
Checked for folders in /share and there are none:
- Code: Select all
root@HvyMtlNAS:/ # ls -lha /share/1100
ls: /share/1100: No such file or directory
root@HvyMtlNAS:/ # ls -lha
total 120K
drwxr-xr-x 23 root root 4.0K 2017-06-12 01:30 .
drwxr-xr-x 23 root root 4.0K 2017-06-12 01:30 ..
-rw------- 1 root root 1.2K 2017-06-12 11:45 .ash_history
drwxr-xr-x 2 root root 4.0K 2017-05-30 17:12 bin
drwxr-xr-x 2 root root 4.0K 2017-05-30 17:12 bin_cab
drwxr-xr-x 2 root root 4.0K 2013-09-25 16:49 boot
-rw-r--r-- 1 root root 6.7K 2017-06-11 20:35 boot.log
drwxrwxrwx 2 root root 4.0K 2017-05-30 17:12 clunc
drwxr-xr-x 6 root root 12K 2017-06-12 11:43 dev
lrwxrwxrwx 1 root root 7 2017-06-12 01:30 direct-usb -> /share/
drwxrwxrwx 18 root root 4.0K 2017-06-12 10:50 etc
drwxrwxrwx 2 root root 4.0K 2017-06-11 09:21 lacie-boot
drwxr-xr-x 4 root root 4.0K 2017-02-13 15:32 lib
lrwxrwxrwx 1 root root 11 2017-05-30 17:12 linuxrc -> bin/busybox
drwx------ 2 root root 16K 2008-01-03 16:21 lost+found
drwxr-xr-x 3 root root 4.0K 2017-05-30 17:12 mail
lrwxrwxrwx 1 root root 20 2017-05-30 17:12 .mldonkey -> /share/1000/mldonkey
lrwxrwxrwx 1 root root 14 2017-06-11 20:34 mnt -> /rw_fs/tmp/mnt
drwxr-xr-x 2 root root 4.0K 2008-08-27 17:46 nowhere
drwxr-xr-x 7 root root 4.0K 2017-05-30 17:12 opt
-rw-r--r-- 1 root root 368 2017-06-11 09:25 postupgrade.log
dr-xr-xr-x 120 root root 0 1969-12-31 19:00 proc
drwxr-xr-x 2 root root 4.0K 2008-01-03 15:06 root
drwxrwxrwx 8 nobody nobody 4.0K 2017-06-11 20:34 rw_fs
drwxr-xr-x 2 root root 4.0K 2017-06-11 20:34 sbin
drwxr-xr-x 2 root root 4.0K 2017-06-11 09:24 sda7-tmp
drwxrwxrwx 2 root root 4.0K 2011-03-05 08:38 share
lrwxrwxrwx 1 root root 16 2017-06-11 20:34 .ssh -> ../../rw_fs/.ssh
dr-xr-xr-x 14 root root 0 2017-06-11 20:34 sys
lrwxrwxrwx 1 root root 10 2017-06-11 20:34 tmp -> /rw_fs/tmp
drwxr-xr-x 21 root root 4.0K 2017-06-12 01:30 usr
drwxr-xr-x 2 root root 4.0K 2017-06-11 20:34 var
root@HvyMtlNAS:/ # cd share
root@HvyMtlNAS:/share # ls -lha
total 8.0K
drwxrwxrwx 2 root root 4.0K 2011-03-05 08:38 .
drwxr-xr-x 23 root root 4.0K 2017-06-12 01:30 ..
root@HvyMtlNAS:/share #
I looked in the GUI and it does not recognize the array. My guess is that it would need a reboot to see it, but I did not reboot since assembling it.