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

Reply via email to