[Lustre-discuss] Removing OSTs permanently
Hi, I would like to remove a OST permanently. I’ve followed Lustre manual to migrate the data files and deactivate the devices. But how to remove OST permanently so that the clients and servers no longer see the osc device. These are my steps to remove a OST: 1) lctl �Cdevice 20 deactivate 2) lfs find --obd tempfs-OST000a /lustre/ | lfs_migrate -y 3) lctl conf_param tempfs-OST000a.osc.active=0 But on MGS, the osc still exists mgs> lctl dl IN osc tempfs-OST000a-osc-MDT tempfs-MDT-mdtlov_UUID 5 To make the osc on servers and clients disappeared permanently, do I need to umount the MGS, MDT, or just reboot all the machines? Thanks in advance. Patrick___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss
Re: [Lustre-discuss] Removing OSTs and OSS
Once the OSTs are deactivated you should mount them as ldiskfs and copy out the last_rcvd, O/0/LAST_ID, and CONFIGS/mountdata files for safe keeping for when you want to add new OSTs. You can live without them, but it is easier to have them. Cheers, Andreas On 2011-09-05, at 10:21 AM, Deon Borman wrote: > Hi, > > I have some ageing hardware I'd like to remove. This includes the OSS > and the OSTs connected to it. > > So, as far as I understand, I need to deactivate the OSTs on the MDS > with `lctl --device deactivate`, copy out all the objects from > the deactivated OST with lfs_migrate and finally, permanently deactivate > the OSTs on all the clients and MDS with `lctl conf_param name>.osc.active=0`. Am I missing something, or is that it? > > Now for my real question: Once everything copied out, I'd like to > permanently switch off and re-purpose the hardware. Do I need to do > anything else, other than unmounting the OSTs and shutting down the OSS? > As far as I can tell, the MDS still knows about the this OSS and OSTs, > but will not try to use it. So will the removed OSS cause possible > issues in future? If so, how do I fix it. With a --writeconf on MDS/OSS? > > All this will happen on a Lustre 1.8.5 system. > > Thanks in advance, > Deon > > ___ > Lustre-discuss mailing list > Lustre-discuss@lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discuss ___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss
[Lustre-discuss] Removing OSTs and OSS
Hi, I have some ageing hardware I'd like to remove. This includes the OSS and the OSTs connected to it. So, as far as I understand, I need to deactivate the OSTs on the MDS with `lctl --device deactivate`, copy out all the objects from the deactivated OST with lfs_migrate and finally, permanently deactivate the OSTs on all the clients and MDS with `lctl conf_param .osc.active=0`. Am I missing something, or is that it? Now for my real question: Once everything copied out, I'd like to permanently switch off and re-purpose the hardware. Do I need to do anything else, other than unmounting the OSTs and shutting down the OSS? As far as I can tell, the MDS still knows about the this OSS and OSTs, but will not try to use it. So will the removed OSS cause possible issues in future? If so, how do I fix it. With a --writeconf on MDS/OSS? All this will happen on a Lustre 1.8.5 system. Thanks in advance, Deon ___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss
Re: [Lustre-discuss] Removing OSTs
On Tue, 2009-11-03 at 19:14 -0500, Mag Gam wrote: > I wish they would really address this problem. We have many OSS which > we simply don't have anymore and it would be nice to remove all of > them. Of course we are not an unlimited resource and we have to make decisions about where we focus efforts. Certainly what you propose would be a nice-to-have, but it doesn't really affect the functionality, reliability or stability of an installation. As such, it's understandable that such an RFE does not get a very high priority. Lustre is open source and we always welcome patches. b. signature.asc Description: This is a digitally signed message part ___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss
Re: [Lustre-discuss] Removing OSTs
I wish they would really address this problem. We have many OSS which we simply don't have anymore and it would be nice to remove all of them. On Tue, Nov 3, 2009 at 10:51 AM, Mervini, Joseph A wrote: > It is possible but it's painful and probably depends on the reason. I had a > situation a while back where the script I was using to mkfs.lustre had the > wrong fsname applied and as a result added the OST to the wrong lustre file > system. > > After realizing my mistake I backed out and reformatted the OSTs with the > right parameters. The problem was that file system still had those OSTs > registered and produced lots of errors. I tried to fix it by doing things > like deactivate the OSTs, etc., but nothing worked. My only option appeared > to be to reformat the entire file system. However, since I had nothing to > lose I tried and successfully used tunefs.lustre --writeconf on the OSTs and > MDT to remove and re-registration the OSTs with the MDS and everything came > back fine. > > That being said, there was no data on the OSTs that I removed. I can't say > what might happen to the file system if there is. > > -Original Message- > From: lustre-discuss-boun...@lists.lustre.org > [mailto:lustre-discuss-boun...@lists.lustre.org] On Behalf Of Mag Gam > Sent: Monday, November 02, 2009 7:15 PM > To: lustre-discuss@lists.lustre.org > Subject: [Lustre-discuss] Removing OSTs > > Is it possible to remove a OST permanently on 1.8.x? > ___ > Lustre-discuss mailing list > Lustre-discuss@lists.lustre.org > http://lists.lustre.org/mailman/listinfo/lustre-discuss > > > ___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss
Re: [Lustre-discuss] Removing OSTs
It is possible but it's painful and probably depends on the reason. I had a situation a while back where the script I was using to mkfs.lustre had the wrong fsname applied and as a result added the OST to the wrong lustre file system. After realizing my mistake I backed out and reformatted the OSTs with the right parameters. The problem was that file system still had those OSTs registered and produced lots of errors. I tried to fix it by doing things like deactivate the OSTs, etc., but nothing worked. My only option appeared to be to reformat the entire file system. However, since I had nothing to lose I tried and successfully used tunefs.lustre --writeconf on the OSTs and MDT to remove and re-registration the OSTs with the MDS and everything came back fine. That being said, there was no data on the OSTs that I removed. I can't say what might happen to the file system if there is. -Original Message- From: lustre-discuss-boun...@lists.lustre.org [mailto:lustre-discuss-boun...@lists.lustre.org] On Behalf Of Mag Gam Sent: Monday, November 02, 2009 7:15 PM To: lustre-discuss@lists.lustre.org Subject: [Lustre-discuss] Removing OSTs Is it possible to remove a OST permanently on 1.8.x? ___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss ___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss
Re: [Lustre-discuss] Removing OSTs
Mag Gam wrote, On 2009. 11. 03. 3:15: > Is it possible to remove a OST permanently on 1.8.x? > Nope, you can only deactivate it. tamas ___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss
[Lustre-discuss] Removing OSTs
Is it possible to remove a OST permanently on 1.8.x? ___ Lustre-discuss mailing list Lustre-discuss@lists.lustre.org http://lists.lustre.org/mailman/listinfo/lustre-discuss