0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NVMeの取り外し方法

Last updated at Posted at 2019-09-02

NVMeをLinuxで取り外す前の儀式

手順概要
1、 lspciでデバイスのIDを特定
2、 egrepでIDとスロットの関連を確認
3、 オフライン実行
4、 いきなり抜きたい場合のLED確認


1,lspciでデバイスのIDを特定

下記例えばスロット1の場合
#lspci |grep PCIe
10002:01:00.0
10002:02:00.0

(ドライブが二個の時)

2,egrepでIDとスロットの関連を確認

#egrep –H ‘.*’ /sys/bus/pci/slots/*/address
/sys/bus/pci/slots/*0/address:10002:01:00
/sys/bus/pci/slots/1/address:10002:02:00

3,オフライン実行

#echo 0 > /sys/bus/pci/slots/0/power"


4,いきなりブチ抜きたい時。(エラーログ上等)

対象ドライブのデバイス名を確認してから実行。
下記はポート0番の場合。
$sudo yum install OpenIPMI-Tools
$ledmon
$ledctl locate /dev/nvme0n1
$ledctl locate_off /dev/nvme0n1

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?