Joseph J VLcek wrote:
Luca Morettoni wrote:
Hello list, in my laptop I have this BE:
$ beadm list
BE Active Mountpoint Space Policy Created
-- ------ ---------- ----- ------ -------
os-121 - - 117.64M static 2009-08-29 16:29
os-122 - - 126.35M static 2009-09-04 13:06
os-123 - - 180.52M static 2009-09-19 10:43
os-124 NR / 49.95G static 2009-10-05 10:12
but if I check the os-124 related snapshots I got one of them very big
(os-...@2009-03-12-10:06:16 on the follow list):
$ zfs list -t snapshot -r rpool/ROOT/opensolaris-124
NAME USED AVAIL REFER MOUNTPOINT
rpool/ROOT/os-...@install 1.79G - 2.22G -
rpool/ROOT/os-...@2009-03-12-10:06:16 10.2G - 12.7G -
rpool/ROOT/os-...@2009-09-01-10:41:53 116M - 8.36G -
rpool/ROOT/os-...@2009-09-04-11:06:48 0 - 9.00G -
rpool/ROOT/os-...@2009-09-04-11:06:50 0 - 9.00G -
rpool/ROOT/os-...@2009-09-19-08:43:14 647M - 8.69G -
rpool/ROOT/os-...@2009-10-05-08:12:09 1.12G - 9.65G -
rpool/ROOT/os-124/o...@install 232K - 3.60M -
rpool/ROOT/os-124/o...@2009-03-12-10:06:16 622M - 1.50G -
rpool/ROOT/os-124/o...@2009-09-01-10:41:53 193K - 1.72G -
rpool/ROOT/os-124/o...@2009-09-04-11:06:48 0 - 1.72G -
rpool/ROOT/os-124/o...@2009-09-04-11:06:50 0 - 1.72G -
rpool/ROOT/os-124/o...@2009-09-19-08:43:14 18.6M - 2.63G -
rpool/ROOT/os-124/o...@2009-10-05-08:12:09 2.10M - 2.62G -
which of them is safe to be removed?
Short answer:
-------------
The BE snapshots are generated when creating a new BE.
If you want to clean up some of the snapshots you can use "beadm
destroy" to remove unwanted BEs.
You can also delete just a snapshot using beadm destroy:
# beadm destroy os-...@2009-10-05-08:12:09
However if this snapshot has a dependent dataset (or a dependent BE)
it should fail to destroy it. If there is a dependent BE you should see
an error similar to:
# beadm destroy snv-...@2009-10-02-20:52:02
Are you sure you want to destroy snv-...@2009-10-02-20:52:02? This action cannot
be undone(y/[n]): y
Unable to destroy snv-...@2009-10-02-20:52:02.
BE exists.
-evan
A bit more info:
----------------
If you user "beadm list -a" you will see all the snapshots associated
with a BE
If you do use zfs to try to destroy the snapshots (and don't use the -f
"force" flag) zfs will indicate there are dependencies.
If you activate a different BE the snapshots will be generated for the
activated BM.
So you should use "beadm list -a" to list the BEs and snapshots. If you
want to remove some you can use "beadm destroy" to remove unwanted BEs.
But you shouldn't manually be removing the BEs snapshots.
Hope this helps.
Joe V
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss