SUMMARY
Unable to initialize disk following archive disk rotated
ISSUE
Unable to initialize disk following archive disk rotated
RESOLUTION
use putty to access ssh on the appliance (download http://putty.org)
run df -h
[root@DSMUnitrends02 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda4 14G 2.4G 11G 18% / tmpfs 127G 108K 127G 1% /dev/shm /dev/sda1 226M 35M 180M 17% /boot /dev/sda3 92G 3.9G 83G 5% /usr/bp /dev/sdb 66T 30T 36T 46% /backups /dev/mapper/database 820G 144G 676G 18% /var/opt/unitrends/database /dev/md99 22T 4.1T 18T 19% /mnt/archive/0
In this case /dev/md99 is still mounted to /mnt/archive/0 showing the previous archive's storage totals
This may in addition have higher number md### mounts that need to be cleared. Mounts lower then 99 are for internal system usage and not need to clear
cat /proc/mdstat Personalities : [raid0] md108 : active raid0 sdk[0] sdn[3] sdm[2] sdl[1] 11721064448 blocks super 1.2 1024k chunks md2 : active raid1 sdb3[1] sda3[0] 97438720 blocks super 1.1 [2/2] [UU] bitmap: 1/1 pages [4KB], 65536KB chunk md1 : active raid1 sda2[0] sdb2[1] 7693720576 blocks super 1.1 [2/2] [UU] bitmap: 1/58 pages [4KB], 65536KB chunk md0 : active raid1 sdb1[1] sda1[0] 242624 blocks super 1.0 [2/2] [UU] md3 : active raid1 sdb4[1] sda4[0] 14616576 blocks super 1.1 [2/2] [UU] bitmap: 1/1 pages [4KB], 65536KB chunk md4 : active raid1 sdb5[1] sda5[0] 7797760 blocks super 1.1 [2/2] [UU]
Need to run unmount command to disconnect mount point from storage device (in this example using /dev/md99)
[root@DSMUnitrends02 ~]# umount /dev/md108 [root@DSMUnitrends02 ~]#
Once that is unmounted run mdadm --stop to clear the storage device
[root@DSMUnitrends02 ~]# mdadm --stop /dev/md108 mdadm: stopped /dev/md108 [root@DSMUnitrends02 ~]#
Once complete re run df -h to confirm no longer mounted and then rescan for media under UI (Configure > Appliance, Backup Copy Target, Scan for Media)
[root@DSMUnitrends02 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda4 14G 2.4G 11G 18% / tmpfs 127G 108K 127G 1% /dev/shm /dev/sda1 226M 35M 180M 17% /boot /dev/sda3 92G 3.9G 83G 5% /usr/bp /dev/sdb 66T 30T 36T 46% /backups /dev/mapper/database 820G 144G 676G 18% /var/opt/unitrends/database [root@DSMUnitrends02 ~]#
CAUSE
This can be caused by leaving the archive mount as enabled. By default best practice is to leave the archive in disabled status and allow the archive processes to mount and unmount as needed.