we don't use `rmosdistro`, only need `rmdef` command, you may need to issue multiple time because there are multiple osimage name with the same DISTRO
................................................................... Casandra Hong Qiu Phone: (845) 433-9291, t/l 293-9291 Office: Building 8, 3-B-04 cxh...@us.ibm.com From: Andrew Loftus <alof...@illinois.edu> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> Date: 02/14/2020 02:14 PM Subject: [EXTERNAL] Re: [xcat-user] Delete old osimages > ... 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 <cxh...@us.ibm.com> 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 cxh...@us.ibm.com 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 thAndrew 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 <alof...@illinois.edu> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> 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 <gurev...@us.ibm.com> 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 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 <alof...@illinois.edu> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> 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 xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user _______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_xcat-2Duser&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=n1LR_Py9TQX0dVqfGTbLHUMGx25-C8VtBDS0nCzyNXY&m=plLnlP4uIQf9aKUGt9WG9C13LWmDIiFFBa60Bh8PbuY&s=CofSnv1VfmBAKG6HDLAPdEQ_DIushfGRwpOMnxA4hfo&e=
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user