Good day All. I have a remote server running raid 1 which I connect to using ssh keys.
I accidentally moved the /root/.ssh folder and need to put it back so I can log on again.
The people I rent off provide a rescue shell and I can log on there OK but my knowledge of manipulating raid 1 arrays is almost zero so I read up on it and tried this.
mdadm -A -R /dev/md0 /dev/sdb2
mount /dev/md0 /mnt
which seemed to work OK (I moved the .ssh folder back to root) so I then
mdadm -S /dev/md0
and rebooted the system which after about 40 minutes came up OK but I still could not log on.
I went in again and the changes I had made were still on the disk (/root/.ssh was were I changed it to) so I made a change to the web directory so I could see if they worked after i rebooted (changed the name of a directory) when I rebooted the directory still had the old name so my changes are not being recognised.
I dont want to try anything else in case I totally destroy the system. I can not see how the disks can be in sync but everything is working fine and I am still locked out.
If someone could enlighten me with the proper way to handle this it would be much appreciated.