Get device list on MDS: lctl dl lctl set_param osc.lustre-OST000d-osc.active=0 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 ################# |
Home‎ > ‎Server config‎ > ‎