[Lustre-discuss] cleaning up on lustre

Kalpak Shah Kalpak.Shah at Sun.COM
Tue Jul 8 06:38:40 PDT 2008


On Tue, 2008-07-08 at 07:01 -0400, Mag Gam wrote:
> We have just implemented lustre at my university and we are trying to
> get used to some concepts. We have recreated the environment
> manytimes, but I would like to understand how to do some things. The
> wiki or the operations manual does not have these directions clearly
> spelled out.

This is described in the Lustre 1.6 manual under "Removing an OST". I
don't remember the section.

> 
> For example, I would like to know what is the correct way to remove
> remove (OST). The OSTs reside on a Linux LVM. I guess I can do,
> "unmount on all lustre clients" , on the MDS run "lctl dl" and then
> "lctl --device OSC_UID deactivate" and then removelv?

Doing a "lctl --device OSC_UUID deactivate" on the MDS will only stop
new objects from being allocated on that OST. To completely remove the
OST you need to use "lctl conf_param lustre-OST0000.osc.active=0". If
later you want to use this OST again you can set the "active" parameter
to 1. Or if you wish you can remove this OST permanently. Don't try to
use the same OST index as the old OST, since this will confuse the MDT.

Before removing the OST you should copy all the files which have objects
on that OST. You can find such files using "lfs find --recursive --obd
<OST_UUID> /mnt/lustre"

Thanks,
Kalpak

> 
> 
> Does that sound ok?
> 
> Any ideas?
> 
> TIA
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss




More information about the lustre-discuss mailing list