Thank you, Mark. That seems to have worked. I also cleared out /tftpboot/ area with that distro specific initrd files. --imam
On Thu, Jul 13, 2023 at 11:20 AM Mark Gurevich via xCAT-user < xcat-user@lists.sourceforge.net> wrote: > I think “rmosdistro rocky8.6-x86_64” is suppose to remove everything under > “/install/rocky8.6/x86_64” > > If you also wish to remove the osimage definitions, you can use “rmdef -t > osimage <osimage name>” > > > > *From:* Imam Toufique <techie...@gmail.com> > *Sent:* Thursday, July 13, 2023 12:20 PM > *To:* xCAT Users Mailing list <xcat-user@lists.sourceforge.net> > *Subject:* [EXTERNAL] Re: [xcat-user] Best known methods to clean up old > osimage(s) > > > > I got this when I tried the following command: [root@ rh8-mgmt ~]# > rmosdistro rocky8. 6-x86_64 Error: [rh8-mgmt]: rmosdistro: failed to remove > rocky8. 6-x86_64, it is referenced by osimages: rocky8. > 6-x86_64-install-compute,rocky8. 6-x86_64-install-service,rocky8. > 6-x86_64-netboot-compute,rocky8. 6-x86_64-statelite-computeretry > > ZjQcmQRYFpfptBannerStart > > *This Message Is From an Untrusted Sender * > > You have not previously corresponded with this sender. > > * Report Suspicious * > <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/PjiDSg!12-vrJBRJvZ2GgVQOE0uoW36mecHaqP53ATUbzC1Ly6ikxfLCvDs7eWU5_GtNJ3_xfvqTN7nxPmJZwHE55EqYDLPdQcc_gYl9htMo9Bs3OZ-1uMVlrph0EKNr_o$> > > > > ZjQcmQRYFpfptBannerEnd > > I got this when I tried the following command: > > [root@rh8-mgmt ~]# rmosdistro rocky8.6-x86_64 > Error: [rh8-mgmt]: rmosdistro: failed to remove rocky8.6-x86_64, it is > referenced by osimages: > > rocky8.6-x86_64-install-compute,rocky8.6-x86_64-install-service,rocky8.6-x86_64-netboot-compute,rocky8.6-x86_64-statelite-compute > retry with -f option ! > > So, I tried with the -f option. > > [root@rh8-mgmt ~]# rmosdistro -f rocky8.6-x86_64 > rmosdistro: remove rocky8.6-x86_64 success > > then I still see the distro in osimage listing: > > root@rh8-mgmt ~]# lsdef -t osimage > > > *rocky8.6-x86_64-install-compute (osimage) > rocky8.6-x86_64-install-service (osimage) rocky8.6-x86_64-netboot-compute > (osimage)* > rocky8.6-x86_64-statelite-compute (osimage) > rocky8.7-x86_64-install-compute (osimage) > rocky8.7-x86_64-install-service (osimage) > rocky8.7-x86_64-netboot-compute (osimage) > rocky8.7-x86_64-stateful-mgmtnode (osimage) > rocky8.7-x86_64-statelite-compute (osimage) > > > > and I see the rocky8.6 directory in /installl area. > > [root@rh8-mgmt ~]# ls -ld /install/rocky8* > drwxr-xr-x 2 root root 6 Jul 13 09:14 /install/rocky8.6 > drwxr-xr-x 3 root root 20 Jan 5 2023 /install/rocky8.7 > drwxr-xr-x 3 root root 20 Jun 27 11:04 /install/rocky8.8 > > > > > > is the rmdistro command supposed clear the osimage listing ( above ) , > directory from /install and clear out other references of this > distro/osimage? If not, what is the right way to do this? > > > > > > thanks. > > > > On Thu, Jul 13, 2023 at 6:42 AM Mark Gurevich via xCAT-user < > xcat-user@lists.sourceforge.net> wrote: > > For diskless, you can use "rmimage" command. > For diskful, you can try "rmosdistro" command. > > -----Original Message----- > From: Imam Toufique <techie...@gmail.com> > Sent: Thursday, July 13, 2023 9:28 AM > To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net> > Subject: [EXTERNAL] [xcat-user] Best known methods to clean up old > osimage(s) > > Hi everyone, > I am in need of cleaning up some of my old OS images from one of my mgmt > nodes. I am sure you all have done it before, but I have not. > What are your recommendations to do this? > > thank you, as always! > > -- > Regards, > Imam Toufique > 213-700-5485 > > > _______________________________________________ > 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 > > > > > -- > > Regards, > > *Imam Toufique* > > *213-700-5485* > _______________________________________________ > xCAT-user mailing list > xCAT-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xcat-user > -- Regards, *Imam Toufique* *213-700-5485*
_______________________________________________ xCAT-user mailing list xCAT-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xcat-user