right, I don't think we remove files for /install/*images* and
/tftpboot/xcat/*images* when user issues "rmdef -t osimage *images* "

We may able to add code to `rmdef` for images under `
/tftpboot/xcat/*images*`,  because this is per image based.

# ls -ltr /tftpboot/xcat/osimage/rhels8.1.0-x86_64-install-compute
total 68712
-rw-r--r-- 1 root root  8106848 Feb 17 03:38 vmlinuz
-rw-r--r-- 1 root root 62248424 Feb 17 03:38 initrd.img

but we can't remove the package dir under "/install/*images* ",  because
multiple images  can share the same pkgdir


Thanks,
Casandra Qiu

...................................................................
Casandra Hong Qiu
Phone: (845) 433-9291, t/l 293-9291
Office: Building 8, 3-B-04
cxh...@us.ibm.com





From:   Russ Auld <russa...@comcast.net>
To:     xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date:   02/16/2020 07:19 AM
Subject:        [EXTERNAL] Re: [xcat-user] Delete old osimages



I think I asked a question about this a few years ago, and the dev team
said that you have to clean up /tftpboot manually.
When you make a new osimage,  xCAT creates files in /tftpboot for it.
If your root partition is limited in size, you could run out of space
in /tftpboot.


      On February 15, 2020 at 11:31 AM Vinícius Ferrão via xCAT-user
      <xcat-user@lists.sourceforge.net> wrote:

      Hi Cassandra, issuing rmdef will remove all the definitions about the
      image on xCAT, right?

      But the files will stay on the disk, and they must be manually
      removed.

      Is there’s anything more than /install/*images* to be deleted? Or
      this is sufficient?

      Thanks,


            On 14 Feb 2020, at 16:35, Casandra H Qiu < cxh...@us.ibm.com>
            wrote:



            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



            <graycol.gif>Andrew Loftus ---02/14/2020 02:14:31 PM---> ... it
            seems like rmosdistro with the -f flag did what I expected.
            I'll have to take that back. Af

            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



            <graycol.gif> 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 < 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



            <graycol.gif> 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://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://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=8qhnXkhikEWWvRxW4cpFxz7QVPjMqOhT8Gr3--rtOHo&s=o6zKhGs04PHqUri-QoQk-NsZuxeTX1wbqy_uBfz052o&e=



_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to