调整到老博客的程度
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: Linux恢复操作系统后mdadm导致开机变慢的方法
|
||||
date: 2021-09-14T15:16:13+08:00
|
||||
lastmod: 2021-09-14T15:16:13+08:00
|
||||
draft: false
|
||||
description: "mdadm no arrays found in config file or automatically"
|
||||
authors:
|
||||
- Kushidou
|
||||
tags:
|
||||
- Linux
|
||||
categories: []
|
||||
toc: true
|
||||
comments: true
|
||||
---
|
||||
|
||||
解决Linux系统异地恢复后开机mdadm报错导致开机时间变长。
|
||||
|
||||
<!--more-->
|
||||
|
||||
## 现象
|
||||
|
||||
使用deepin-clone恢复UOS镜像后,开机会不断跳一条日志:
|
||||
|
||||
```bash
|
||||
mdadm: no arrays found in config file or automatically
|
||||
```
|
||||
|
||||
大概蹦个15条后,系统才真正开机。mdadm好像是一个磁盘raid管理工具,当磁盘变化后其配置也不适配了,必须等到超时才会加载默认配置。那么我们就为其生成一个新的配置即可解决问题。
|
||||
|
||||
## 方案
|
||||
|
||||
步骤一:删除mdadm.conf
|
||||
|
||||
```bash
|
||||
sudo rm /etc/mdadm/mdadm.conf
|
||||
```
|
||||
|
||||
步骤二:生成新的mdadm.conf
|
||||
|
||||
```bash
|
||||
sudo update-initramfs -u
|
||||
```
|
||||
|
||||
ps:如果是swap分区问题导致等待90s开机慢,不归这儿管。
|
||||
|
||||
## 从这儿抄的:
|
||||
|
||||
[W: mdadm: no arrays found in config file or automatically导致开机变慢的解决方案(deepin)](https://blog.csdn.net/KuXiaoQuShiHuai/article/details/99686620)
|
||||
Reference in New Issue
Block a user