-- ColinLeavettBrown - 2010-07-20

Lustre Procedures

Content

  1. Determine which OSS is serving an OST.
  2. Deactivate an OST.
  3. Re-activating an OST.

Proc 1: Determine which OSS is serving an OST.

Index Up Down

On the MGS/MDT server:

[crlb@elephant01 ~]$ lctl get_param osc.*.ost_conn_uuid
osc.lustre-OST0000-osc-ffff8803bd5ab400.ost_conn_uuid=206.12.154.2@tcp
osc.lustre-OST0000-osc.ost_conn_uuid=206.12.154.2@tcp
osc.lustre-OST0001-osc-ffff8803bd5ab400.ost_conn_uuid=206.12.154.3@tcp
osc.lustre-OST0001-osc.ost_conn_uuid=206.12.154.3@tcp
osc.lustre-OST0002-osc-ffff8803bd5ab400.ost_conn_uuid=206.12.154.4@tcp
osc.lustre-OST0002-osc.ost_conn_uuid=206.12.154.4@tcp
osc.lustre-OST0003-osc-ffff8803bd5ab400.ost_conn_uuid=206.12.154.5@tcp
osc.lustre-OST0003-osc.ost_conn_uuid=206.12.154.5@tcp
[crlb@elephant01 ~]$ :

The IP address identifies which node is serving which OST.

Proc 2: Deactivate an OST.

Index Up Down

On the MGS/MDT server:

  1. Determine the device number for the MDT's OSC corresponding to the OST to be deactivated (a device is indentified by its' endpoints, eg. lustre-OSTnnnn-osc and lustre-mdtlov_UUID):

[crlb@elephant01 ~]$ lctl dl | grep osc
  5 UP osc lustre-OST0000-osc lustre-mdtlov_UUID 5
  6 UP osc lustre-OST0001-osc lustre-mdtlov_UUID 5
  7 UP osc lustre-OST0002-osc lustre-mdtlov_UUID 5
  8 UP osc lustre-OST0003-osc lustre-mdtlov_UUID 5
 11 UP osc lustre-OST0000-osc-ffff8803bd5ab400 a91b4601-8f1d-5061-2175-7ac02693cc0f 5
 12 UP osc lustre-OST0001-osc-ffff8803bd5ab400 a91b4601-8f1d-5061-2175-7ac02693cc0f 5
 13 UP osc lustre-OST0002-osc-ffff8803bd5ab400 a91b4601-8f1d-5061-2175-7ac02693cc0f 5
 14 UP osc lustre-OST0003-osc-ffff8803bd5ab400 a91b4601-8f1d-5061-2175-7ac02693cc0f 5
[crlb@elephant01 ~]$ 

  1. To deactivate OST0003 from the above list issue:

[crlb@elephant01 ~]$ sudo lctl --device 8 deactivate
[sudo] password for crlb: 
[crlb@elephant01 ~]$

The "lctl dl | grep osc" command can be used to check the change in status.

Proc 3: Re-activating an OST.

Index Up Down

On the MGS/MDT server:

  1. Determine the device number for the MDT's OSC corresponding to the OST to be re-activated (a device is indentified by its' endpoints, eg. lustre-OSTnnnn-osc and lustre-mdtlov_UUID):

[crlb@elephant01 ~]$ lctl dl | grep osc
  5 UP osc lustre-OST0000-osc lustre-mdtlov_UUID 5
  6 UP osc lustre-OST0001-osc lustre-mdtlov_UUID 5
  7 UP osc lustre-OST0002-osc lustre-mdtlov_UUID 5
  8 IN osc lustre-OST0003-osc lustre-mdtlov_UUID 5
 11 UP osc lustre-OST0000-osc-ffff8803bd5ab400 a91b4601-8f1d-5061-2175-7ac02693cc0f 5
 12 UP osc lustre-OST0001-osc-ffff8803bd5ab400 a91b4601-8f1d-5061-2175-7ac02693cc0f 5
 13 UP osc lustre-OST0002-osc-ffff8803bd5ab400 a91b4601-8f1d-5061-2175-7ac02693cc0f 5
 14 UP osc lustre-OST0003-osc-ffff8803bd5ab400 a91b4601-8f1d-5061-2175-7ac02693cc0f 5
[crlb@elephant01 ~]$ 

  1. To Re-activate OST0003 from the above list issue:

[crlb@elephant01 ~]$ sudo lctl --device 8 activate
[sudo] password for crlb: 
[crlb@elephant01 ~]$

The "lctl dl | grep osc" command can be used to check the change in status.

Edit | Attach | Watch | Print version | History: r25 | r21 < r20 < r19 < r18 | Backlinks | Raw View | More topic actions...
Topic revision: r19 - 2010-07-20 - crlb
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback