Home‎ > ‎Server config‎ > ‎

Lustre disabling OST's on MDS

Get device list on MDS:
lctl dl


Disabling write only. Read on clients possible.:
lctl set_param osc.lustre-OST000d-osc.active=0


Disable read/write (disabling device permanently):
lctl --device 18 conf_param lustre-OST000d.osc.active=0
(18 and OST000d) has to be replaced by your stuff of course)

Set to 1 to reactivate

SCRIPTS AT sep:/sysadmin/other/lustre_restripe/

#################
#!/bin/tcsh

# Helper script to activate some OSTs

# set OSTS = "0 1 2 3 4 5 6 7 8 9 a b c d e f"
set OSTS = "00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 11 12 13 14 15 16"
foreach i ($OSTS)
 ssh root@mds lctl set_param osc.lustre-OST00$i-osc-MDT0000.active=1
 echo "**** OST: $i activated ****"
end
#################

#################
#!/bin/tcsh

# Helper script to deactivate some OSTs - READ_ONLY

set OSTS = "00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 11 12 13 14 15 16"
foreach i ($OSTS)
 ssh root@mds lctl set_param osc.lustre-OST00$i-osc-MDT0000.active=0
 echo "**** OST: $i deactivated ****"
end
#################