This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
computing:raid [2019/02/25 04:21] – oemb1905 | computing:raid [2019/04/10 08:55] – oemb1905 | ||
---|---|---|---|
Line 94: | Line 94: | ||
mdadm --readwrite /dev/mdx [restart] | mdadm --readwrite /dev/mdx [restart] | ||
| | ||
- | If a drive fails, you need to deactivate it, activate | + | Okay, the point of this is to combine RAID with pam_mount handlind the mounting of the crypt, and we also need ssh pubkey authentication. |
+ | |||
+ | cp -a ~/ | ||
+ | sudo nano / | ||
+ | |||
+ | Add the following parameter in the section that pertains to it: | ||
+ | |||
+ | AuthorizedKeysFile | ||
+ | |||
+ | Now, when you reboot, even if PasswordAuthentication | ||
+ | |||
+ | ssh user@xx.xx.xx.xx | ||
+ | screen | ||
+ | su - user | ||
+ | < | ||
+ | |||
+ | Now, press ctrl-a-d | ||
+ | |||
+ | exit | ||
+ | |||
+ | Okay, now you have survived reboot with a RAID array, with pam doing its magic for you on the crypt ... hardly a pain if it saves you | ||
+ | a trip | ||
------------------------------------------- | ------------------------------------------- |