Skip to content

Commit

Permalink
docs: Add PVE
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young committed Sep 18, 2023
1 parent 26e5ba5 commit 4812ad6
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/PVE/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "PVE",
"position": 2,
"link": {
"type": "generated-index",
"description": "和PVE机器相关的东西"
}
}
34 changes: 34 additions & 0 deletions docs/PVE/安装MegaCLI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 安装MegaCLI

## 安装依赖

```
# zip
apt-get install zip -y
# alien
apt-get install alien -y
# libncurses5 https://gist.github.com/metajiji/cf859a7fc65a63690ecb208d11ea8407?permalink_comment_id=4469291#gistcomment-4469291
apt-get install libncurses5
```

## 下载安装

```
curl -LO https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
unzip 8-07-14_MegaCLI.zip
cd Linux
sudo alien MegaCli-8.07.14-1.noarch.rpm # convert from rpm to deb first
sudo dpkg -imegacli_8.07.14-2_all.deb
```

## 快捷方式

```
sudo update-alternatives --install '/usr/bin/MegaCli64' 'MegaCli64' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo update-alternatives --install '/usr/bin/MegaCli' 'MegaCli' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo update-alternatives --install '/usr/bin/megacli' 'megacli' '/opt/MegaRAID/MegaCli/MegaCli64' 1
```

## 参考资料

https://gist.github.com/metajiji/cf859a7fc65a63690ecb208d11ea8407

0 comments on commit 4812ad6

Please sign in to comment.