> ... it seems like rmosdistro with the -f flag did what I expected. I'll have to take that back. After running rmosdistro, lsdef -t osimage still lists the images. I had to also run "rmdef" (as pointed out by Aaronhcarr and Casandra H Qiu).
So, in summary, what is the proper way to delete an old osdistro that was created from copycds? I was hoping there was a single command to do this, but it seems it requires: 1. lsdef -t osimage | grep <DISTRO> | cut -d' ' -f1 | xargs -n1 rmdef -t osimage 2. rmosdistro <DISTRO> Please add to this list if it is missing anything. On Fri, Feb 14, 2020 at 1:06 PM Casandra H Qiu <[email protected]> wrote: > `rmimage` only remove the files under `rootimgdir=` attribute for the > diskless/netboot image. > > `rmdef -t osimage imagename ` should remove the image created by the > `copycds` > > what kind of error message did u see when u run `rmdef` command? > > > Casandra Qiu > > > ................................................................... > Casandra Hong Qiu > Phone: (845) 433-9291, t/l 293-9291 > Office: Building 8, 3-B-04 > [email protected] > > > > [image: Inactive hide details for Andrew Loftus ---02/14/2020 01:50:59 > PM---No, I didnt' try the -f flag because it didn't seem like th]Andrew > Loftus ---02/14/2020 01:50:59 PM---No, I didnt' try the -f flag because it > didn't seem like the right approach. If copycds always creat > > From: Andrew Loftus <[email protected]> > To: xCAT Users Mailing list <[email protected]> > Date: 02/14/2020 01:50 PM > Subject: [EXTERNAL] Re: [xcat-user] Delete old osimages > ------------------------------ > > > > No, I didnt' try the -f flag because it didn't seem like the right > approach. > > If copycds always creates an "install" image and rmdef doesn't support > removing the "install" image, then "rmosdistro" will never run without the > -f flag. That seems broken to me. > > That aside, it seems like rmosdistro with the -f flag did what I expected. > > On Fri, Feb 14, 2020 at 11:07 AM Mark Gurevich <*[email protected]* > <[email protected]>> wrote: > > Have you tried "rmosdistro -f" to force remove ? > > Mark Gurevich > Poughkeepsie Development Lab > HPC Software Development - xCAT > > "If we knew what it was we were doing, it would not be called > research, would it?" > --Albert Einstein > > > > [image: Inactive hide details for Andrew Loftus ---02/14/2020 12:00:33 > PM---Is there a way to clean up old osimages (created from copyc]Andrew > Loftus ---02/14/2020 12:00:33 PM---Is there a way to clean up old osimages > (created from copycds)? I tried "rmosdistro" but that fails > > From: Andrew Loftus <*[email protected]* <[email protected]>> > To: xCAT Users Mailing list <*[email protected]* > <[email protected]>> > Date: 02/14/2020 12:00 PM > Subject: [EXTERNAL] [xcat-user] Delete old osimages > ------------------------------ > > > > Is there a way to clean up old osimages (created from copycds)? > > I tried "rmosdistro" but that fails with the message that it is > referenced by osimages. > > I tried "rmimage" to remove the osimages but that fails with the > message that it will only delete certain image files. > > Cheers, > --Andy_______________________________________________ > xCAT-user mailing list > *[email protected]* <[email protected]> > *https://lists.sourceforge.net/lists/listinfo/xcat-user* > <https://lists.sourceforge.net/lists/listinfo/xcat-user> > > > _______________________________________________ > xCAT-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xcat-user > > > > >
_______________________________________________ xCAT-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xcat-user
