[OpenIndiana-discuss] safely cleanup pkg cache?

Tim Mooney Tim.Mooney at ndsu.edu
Tue Feb 23 20:24:51 UTC 2021


In regard to: Re: [OpenIndiana-discuss] safely cleanup pkg cache?, Stephan...:

>> I appreciate all the discussion and info my question has spawned! I
>> didn't anticipate the issue being as complicated as it appears it is.
>> 
>> Tim
>
> Hello!
>
> "beadm -s " destroys snapshots.
>
> "rpool/ROOT/openindiana-2021:02:07-1" is the filesystem of the current BE.
>
> i don't know why these snapshots are in there,
> but these are left there from the "pkg upgrade" somehow.
>
> I don't think that "beadm -s" is to blame here.

I tested last night with my remaining boot environments, and you're
correct.

Every time I ran 'beadm destroy -F -s -v <bename>' and then
ran 'zfs list -t snapshot | wc -l', the number of lines output decreased
by one.  beadm -s was removing a snapshot, every time.

I'm not sure where the few extra snapshots came from, but beadm -s does
appear to be doing what it's supposed to.

Tim
-- 
Tim Mooney                                             Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure /
Division of Information Technology    /                701-231-1076 (Voice)
North Dakota State University, Fargo, ND 58105-5164



More information about the openindiana-discuss mailing list