逆向分析了一下Unraid的Stop Array过程,但是Stop之后后台会报/mnt/disk1 read or write 错误,PHP后台显示Array依然运行中,但实际Array已经停止。

Step 1: Stop libVirt
/etc/rc.d/rc.libvirt status
/etc/rc.d/rc.libvirt stop
umount /etc/libvirt

Step 2: Stop Docker
/etc/rc.d/rc.docker status > /dev/null
/etc/rc.d/rc.docker stop
umount /var/lib/docker

Step 3: Stop SMB
/var/run/smbd.pid
/etc/rc.d/rc.samba stop
rm -f /etc/avahi/services/smb.service

Step 4: Stop NSFD
/etc/rc.d/rc.nfsd status
/etc/rc.d/rc.nfsd stop

Step 5: Stop APFS
/etc/rc.d/rc.atalk status
/etc/rc.d/rc.atalk stop
rm -f /etc/avahi/services/afp.service

Step 6: Check AvachiEnabled And Stop Ava
/etc/rc.d/rc.avahidaemon status > /dev/null
/etc/rc.d/rc.avahidaemon stop
/etc/rc.d/rc.avahidnsconfd stop

Step 7: Stop Mover
/usr/local/sbin/mover stop

Step 8: sync

Step 9: unmount disk & device
umount /mnt/user
rmdir /mnt/user
rm -f /boot/config/plugins/dynamix/mover.cron
/usr/local/sbin/update_cron

umount /mnt/disk1
rmdir /mnt/disk1

Step 10: Stop MDCMD
mdcmd stop

Step 11: Start Services
运行基本的SMB、这些服务