Hi,
i get an Error on omv-mkconf. This is my Raid on omv 4.1.27-1.
Code
#mdadm --detail /dev/md/raid
/dev/md/raid:
Version : 1.2
Creation Time : Thu Sep 12 20:34:42 2019
Raid Level : raid5
Array Size : 5860150272 (5588.67 GiB 6000.79 GB)
Used Dev Size : 1953383424 (1862.89 GiB 2000.26 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Nov 10 06:00:55 2019
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Name : nas:raid (local to host nas)
UUID : 264e1924:4cba2353:1a44a0f8:6fd1dda6
Events : 3765
Number Major Minor RaidDevice State
0 8 48 0 active sync /dev/sdd
1 8 64 1 active sync /dev/sde
2 8 80 2 active sync /dev/sdf
3 8 96 3 active sync /dev/sdg
Alles anzeigen
I use
to update the config as described in details on https://wiki.archlinux.org/ind…Update_configuration_file and others
(on debian the path is /etc/mdadm/mdadm.conf, not /etc/mdadm.conf)
on the next Step i use this and get
Code
# omv-mkconf mdadm
/usr/share/openmediavault/mkconf/mdadm: 99: [: ARRAY: unexpected operator
update-initramfs: Generating /boot/initrd.img-4.15.18-21-pve
But the file /etc/mdadm/mdadm.conf contains:
Code
# grep -o '^[^#]*' /etc/mdadm/mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
ARRAY /dev/md/raid metadata=1.2 name=nas:raid UUID=264e1924:4cba2353:1a44a0f8:6fd1dda6
MAILADDR mailaddy@host
MAILFROM root
So why is "omv-mkconf mdadm" complaining about a operator error at the Array definition? And at which operator? Why is something wrong with this?