help! volume1 not mounted after reboot

Moderator: Lillian.W@AST

Post Reply
Omnisilence
Posts: 5
youtube meble na wymiar Warszawa
Joined: Thu Mar 23, 2023 7:51 pm

help! volume1 not mounted after reboot

Post by Omnisilence »

As I added the disk to the raid6 array, after the synchronization was completed, the system stopped mounting /dev/md1 volume1.

root@nas:~ # mdadm --detail /dev/md1
mdadm: cannot open /dev/md1: No such file or directory
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: help! volume1 not mounted after reboot

Post by Nazar78 »

Try assembling the array manually or using mdadm --assemble --scan. If that succeed check the md1 UUID that it matches /volume0/usr/etc/volume.conf. Also mount the /dev/md1 to /volume1 then check the UUID in /volume1/.@system/volume.conf.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Omnisilence
Posts: 5
Joined: Thu Mar 23, 2023 7:51 pm

Re: help! volume1 not mounted after reboot

Post by Omnisilence »

Nazar78 wrote:Try assembling the array manually or using mdadm --assemble --scan. If that succeed check the md1 UUID that it matches /volume0/usr/etc/volume.conf. Also mount the /dev/md1 to /volume1 then check the UUID in /volume1/.@system/volume.conf.
1)
root@nasl05:/dev # mdadm --assemble --scan
mdadm: /dev/md/AS6510T-D55B:1 has been started with 8 drives.


2)
root@nasl05:/dev # cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
md125 : active raid1 nvme1n1p4[0] nvme0n1p4[1]
972173312 blocks super 1.2 [2/2] [UU]
[>....................] resync = 4.6% (45595328/972173312) finish=78.9min speed=195600K/sec

md127 : active raid6 sdh4[0] sdb4[8] sdc4[6] sdg4[5] sde4[4] sdf4[3] sdd4[7] sda4[1]
93727746048 blocks super 1.2 level 6, 64k chunk, algorithm 2 [8/8] [UUUUUUUU]

md126 : active raid1 sdh3[0] sdc3[6](S) sdg3[5](S) sde3[4](S) sdb3[8](S) sdf3[3] sdd3[7] sda3[1]
2095104 blocks super 1.2 [4/4] [UUUU]

md0 : active raid1 sdh2[0] sdd2[13] sdc2[12] sdg2[11] sde2[10] sdf2[3] sdb2[14] sda2[1]
2095104 blocks super 1.2 [10/8] [UUUUUUUU__]

unused devices: <none>

As far as I understand, there is synchronization SSD Trim... i will wait


3)
root@nasl05:/dev # mdadm --detail /dev/md127
/dev/md127:
Version : 1.2
Creation Time : Wed Jun 23 14:11:12 2021
Raid Level : raid6
Array Size : 93727746048 (89385.74 GiB 95977.21 GB)
Used Dev Size : 15621291008 (14897.62 GiB 15996.20 GB)
Raid Devices : 8
Total Devices : 8
Persistence : Superblock is persistent

Update Time : Thu Mar 23 14:20:08 2023
State : clean
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 64K

Consistency Policy : resync

Name : AS6510T-D55B:1
UUID : 28aee527:123371a3:af3f9176:922f6c6e
Events : 234052

Number Major Minor RaidDevice State
0 8 116 0 active sync /dev/sdh4
1 8 4 1 active sync /dev/sda4
7 8 52 2 active sync /dev/sdd4
3 8 84 3 active sync /dev/sdf4
4 8 68 4 active sync /dev/sde4
5 8 100 5 active sync /dev/sdg4
6 8 36 6 active sync /dev/sdc4
8 8 20 7 active sync /dev/sdb4


tell me please what commands should I run next? Sorry I'm not good at this.
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: help! volume1 not mounted after reboot

Post by Nazar78 »

Is md127 supposed to be your original md1 (volume1)? Show us your `cat /volume0/usr/etc/volume.conf`and `blkid`.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Omnisilence
Posts: 5
Joined: Thu Mar 23, 2023 7:51 pm

Re: help! volume1 not mounted after reboot

Post by Omnisilence »

Nazar78 wrote:Is md127 supposed to be your original md1 (volume1)? Show us your `cat /volume0/usr/etc/volume.conf`and `blkid`.
yes, md127 supposed to be my original md1 (volume1)
but I'm not sure if the raid recovered correctly.
is it critical if the sequence of disks was different?
before the path was:
/dev/sdb4 /dev/sdh4 /dev/sdc4 /dev/sdg4 /dev/sde4 /dev/sdf4 /dev/sdd4 /dev/sda4

Code: Select all

root@nasl05:/dev # cat /volume0/usr/etc/volume.conf
[volume1]
Level = 6
Raid = 8
Total = 8
Option = 0
Ftype = ext4
UUID = 28aee527:123371a3:af3f9176:922f6c6e
Index = 0,1,3,4,5,6,9,2
Cachemode = 0
CLevel = 0
CState = -1
CDirty = 0
CUUID =
Cnumber = 0
CIndex =
Cseqcut = No
CsizeMB = 0
sorry, I don't understand what means blkid
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: help! volume1 not mounted after reboot

Post by Nazar78 »

yes, md127 supposed to be my original md1 (volume1)
Ok understood happened to me before but not sure what's the root cause.
sorry, I don't understand what means blkid
Run the command `blkid`.

Try below, important: take note it will change your UUID so you'll need to update both the volume.confs:

1. Umount (if not already, `umount /dev/md127`) then stop /dev/md127: `mdadm --stop /dev/md127`.

2. Assemble back: `mdadm --assemble --update=name --name=1 /dev/md1 /dev/sdh4 /dev/sda4 /dev/sdd4 /dev/sdf4 /dev/sde4 /dev/sdg4 /dev/sdc4 /dev/sdb4`.
You can test if it will work without rebooting, stop it `mdadm --stop /dev/md1`, then try auto assemble `mdadm --assemble --scan`.

3. Take note of the md1 UUID: `mdadm -D /dev/md1|grep UUID`.

4. Update the UUID you got from #3 in volume0 using vi, Google how to use vi: `vi /volume0/usr/etc/volume.conf`.

5. Mount the md1: `mkdir -p /volume1 && mount /dev/md1 /volume1`.

6. Update the UUID you got from #3 in volume1: `vi /volume1/.@system/volume.conf`.

Wait for your other resync to complete then reboot to test.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Omnisilence
Posts: 5
Joined: Thu Mar 23, 2023 7:51 pm

Re: help! volume1 not mounted after reboot

Post by Omnisilence »

Before there were lines like this:

md1 : active raid6 sdb4[8] sdh4[0] sdc4[6] sdg4[5] sde4[4] sdf4[3] sdd4[7] sda4[1]

Now

md1 : active raid6 sdh4[0] sdb4[8] sdc4[6] sdg4[5] sde4[4] sdf4[3] sdd4[7] sda4[1]

different order disks - sdh4[0] and sdb4[8]
Is this important or do I need to assemble so as not to lose data? It is very important for me
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: help! volume1 not mounted after reboot

Post by Nazar78 »

As far as I know the order doesn't matter as long mdadm recognize them correctly. Because the nodes i.e. /dev/sd[a-z] might change when you reboot. So your data is safe.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Omnisilence
Posts: 5
Joined: Thu Mar 23, 2023 7:51 pm

Re: help! volume1 not mounted after reboot

Post by Omnisilence »

WORKS!!! YOU SAVE US! :D
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: help! volume1 not mounted after reboot

Post by Nazar78 »

Glad it helps :)
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Post Reply

Return to “[Official] For AS65xx Series”