Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.12.3 doesn't remove any snapshots if there is a zfs hold on one of them #96

Open
rottegift opened this issue Aug 28, 2014 · 5 comments
Labels

Comments

@rottegift
Copy link

If there is a zfs hold on a snapshot of the right format on the destination, the combined zfs destroy will fail, and snapshots will accumulate on the destination.

The "dataset is busy" below is caused by "zfs hold keep pool/from_src/user@ 2013-04-03-072351" (for example).

The target is OmniOS r151010.

Ideally, a failure of a combined destroy would try again omitting the snapshots complained about in the error message.

Alternatively (or additionally), a failure of a combined destroy should try again with a single zfs destroy per snapshot.

(Snapshot destruction may fail for other reasons, for instance if one is cloned or mounted; combined zfs destroys will destroy nothing in those cases too.)

Presumably this also affects removal of snapshots on the source as well.

ssh -o Compression=yes -o CompressionLevel=1 -o Cipher=arcfour -o batchMode=yes -o ConnectTimeout=3 [email protected] zfs destroy 'pool/from_src/user@2013-04-03-072351,2013-11-15-145353,2013-11-16-145351,2013-11-17-145349,2013-11-18-145347,2013-11-19-145345,2013-11-20-145342,2013-11-26-152014,2013-12-07-013608,2013-12-08-013606,2013-12-11-133558,2013-12-16-175846,2013-12-17-175844,2013-12-18-175842,2014-01-15-223040,2014-01-16-103039,2014-01-16-134236,2014-01-16-151116,2014-01-16-211115,2014-01-17-031114,2014-01-17-091114,2014-01-17-211112,2014-01-18-031113,2014-01-18-091111,2014-01-18-151111,2014-01-18-211110,2014-01-19-031110,2014-01-19-091109,2014-01-19-151108,2014-01-19-211108,2014-01-20-031107,2014-01-20-091107,2014-01-20-151106,2014-01-20-211106,2014-01-21-031105,2014-01-21-091104,2014-01-21-111946,2014-01-22-032608,2014-01-22-070446,2014-01-22-075959,2014-01-22-121843,2014-01-22-150741,2014-01-22-161841,2014-01-22-175854,2014-01-23-014254,2014-01-23-033448,2014-01-23-033536,2014-01-23-033639,2014-01-23-033843,2014-01-23-233752,2014-01-24-033751,2014-01-24-043455,2014-01-24-083454,2014-01-24-123454,2014-01-24-163454,2014-01-24-203453,2014-01-25-003453,2014-01-25-043452,2014-01-25-073550,2014-01-25-113550,2014-01-25-153549,2014-01-25-193549,2014-01-25-233548,2014-01-26-033548,2014-01-26-073548,2014-01-26-113547,2014-01-26-153547,2014-01-26-193547,2014-01-26-233546,2014-01-27-033546,2014-01-27-073546,2014-01-27-113545,2014-01-27-153545,2014-01-27-193544,2014-01-27-233544,2014-01-28-012309,2014-01-28-025401,2014-01-28-065401,2014-01-28-105401,2014-01-28-145400,2014-01-28-185400,2014-01-28-225359,2014-01-29-025359,2014-01-29-065359,2014-01-29-105358,2014-01-29-145358,2014-01-29-185358,2014-01-29-225357,2014-01-30-065357,2014-01-30-105356,2014-01-30-145356,2014-01-30-172635,2014-01-30-212635,2014-01-31-012634,2014-01-31-052634,2014-01-31-092634,2014-01-31-132633,2014-01-31-172633,2014-01-31-212633,2014-02-01-012632,2014-02-01-052632,2014-02-01-092632,2014-02-01-132631,2014-02-01-172631,2014-02-01-212631,2014-02-02-012630,2014-02-02-052630,2014-02-02-092630,2014-02-02-132629,2014-02-02-172629,2014-02-02-212628,2014-02-02-230350,2014-02-03-030350,2014-02-03-070350,2014-02-03-110349,2014-02-03-150349,2014-02-03-190349,2014-02-03-230348,2014-02-04-030348,2014-02-04-070348,2014-02-04-110347,2014-02-04-150347,2014-02-04-190346,2014-02-04-230346,2014-02-05-030346,2014-02-05-070345,2014-02-05-110345,2014-02-05-150345,2014-02-05-190344,2014-02-05-230344,2014-02-06-063619,2014-02-06-103619,2014-02-06-143618,2014-02-06-183618,2014-02-06-223618,2014-02-07-023617,2014-02-07-063617,2014-02-07-103616,2014-02-07-143616,2014-02-07-183616,2014-02-07-223615,2014-02-08-023615,2014-02-08-063615,2014-02-08-103614,2014-02-08-143614,2014-02-08-165652,2014-02-08-205652,2014-02-09-005651,2014-02-09-045651,2014-02-09-085651,2014-02-09-125650,2014-02-09-165650,2014-02-09-205650,2014-02-10-031215,2014-02-10-045649,2014-02-10-085649,2014-02-10-125648,2014-02-10-165648,2014-02-10-205647,2014-02-11-005647,2014-02-11-045647,2014-02-11-085646,2014-02-11-125646,2014-02-11-165646,2014-02-11-205645,2014-02-12-005645,2014-02-12-045645,2014-02-12-085644,2014-02-12-125644,2014-02-12-165643,2014-02-12-205643,2014-02-13-035825,2014-02-13-075825,2014-02-13-115824,2014-02-13-155824,2014-02-13-195824,2014-02-13-235823,2014-02-14-035823,2014-02-14-075823,2014-02-14-115822,2014-02-14-155822,2014-02-14-195822,2014-02-14-235821,2014-02-15-035821,2014-02-15-075820,2014-02-15-115820,2014-02-15-155820,2014-02-15-195819,2014-02-15-235819,2014-02-16-035819,2014-02-16-075818,2014-02-16-115818,2014-02-16-155818,2014-02-16-163011,2014-02-16-180743,2014-02-16-204650,2014-02-17-004650,2014-02-17-044650,2014-02-17-084649,2014-02-17-124649,2014-02-17-164649,2014-02-17-204648,2014-02-18-004648,2014-02-18-044648,2014-02-18-084647,2014-02-18-124647,2014-02-18-164647,2014-02-18-204646,2014-02-19-004646,2014-02-19-044646,2014-02-19-084645,2014-02-19-124645,2014-02-19-164644,2014-02-19-173601,2014-02-19-180842,2014-02-19-201717,2014-02-20-041716,2014-02-20-081716,2014-02-20-121715,2014-02-20-161715,2014-02-20-201715,2014-02-21-001714,2014-02-21-041714,2014-02-21-081714,2014-02-21-121713,2014-02-21-161713,2014-02-21-201713,2014-02-22-001712,2014-02-22-041712,2014-02-22-081711,2014-02-22-121711,2014-02-22-161711,2014-02-22-201710,2014-02-23-001710,2014-02-23-041710,2014-02-23-081709,2014-02-23-121709,2014-02-23-161709,2014-02-23-201708,2014-02-24-001708,2014-02-24-041708,2014-02-24-142057,2014-02-24-182057,2014-02-24-222056,2014-02-25-022056,2014-02-25-062056,2014-02-25-102055,2014-02-25-142055,2014-02-25-182055,2014-02-25-222054,2014-02-26-022054,2014-02-26-062054,2014-02-26-102053,2014-02-26-142053,2014-02-26-182053,2014-02-26-224400,2014-02-27-030442,2014-02-27-042940,2014-02-27-142856,2014-02-27-145902,2014-02-27-155153,2014-02-27-195152,2014-02-27-235152,2014-02-28-035151,2014-02-28-075151,2014-02-28-115151,2014-02-28-155150,2014-02-28-195150,2014-02-28-235150,2014-03-01-035149,2014-03-01-075149,2014-03-01-115148,2014-03-01-155148,2014-03-01-195148,2014-03-01-235147,2014-03-02-035147,2014-03-02-075147,2014-03-02-115146,2014-03-02-155146,2014-03-02-195146,2014-03-02-235145,2014-03-03-035145,2014-03-03-075145,2014-03-03-115144,2014-03-03-155144,2014-03-03-195144,2014-03-03-235143,2014-03-04-035143,2014-03-04-075143,2014-03-04-115142,2014-03-04-155142,2014-03-04-195141,2014-03-04-235141,2014-03-05-035141,2014-03-05-075141,2014-03-05-115140,2014-03-05-134721,2014-03-05-174721,2014-03-05-214720,2014-03-06-054719,2014-03-06-094719,2014-03-06-134719,2014-03-06-174718,2014-03-06-214718,2014-03-07-014718,2014-03-07-054717,2014-03-07-094717,2014-03-07-134717,2014-03-07-174716,2014-03-07-214716,2014-03-08-014716,2014-03-08-054715,2014-03-08-094715,2014-03-08-134715,2014-03-08-174714,2014-03-08-214714,2014-03-09-014713,2014-03-09-054713,2014-03-09-094713,2014-03-09-134712,2014-03-09-174712,2014-03-09-214712,2014-03-10-014711,2014-03-10-054711,2014-03-10-094711,2014-03-10-134710,2014-03-10-174710,2014-03-10-214710,2014-03-11-014709,2014-03-11-054709,2014-03-11-094708,2014-03-11-134708,2014-03-11-174708,2014-03-11-214707,2014-03-12-014707,2014-03-12-054707,2014-03-12-094706,2014-03-12-134706,2014-03-12-174706,2014-03-12-214705,2014-03-13-065510,2014-03-13-105509,2014-03-13-145509,2014-03-13-185508,2014-03-13-225508,2014-03-14-025508,2014-03-14-065507,2014-03-14-105507,2014-03-14-145507,2014-03-14-185506,2014-03-14-225506,2014-03-15-025506,2014-03-15-065505,2014-03-15-105505,2014-03-15-145504,2014-03-15-185504,2014-03-15-225504,2014-03-16-025503,2014-03-16-065503,2014-03-16-105503,2014-03-16-145502,2014-03-16-185502,2014-03-16-225502,2014-03-17-025501,2014-03-17-065501,2014-03-17-105501,2014-03-17-145500,2014-03-17-185500,2014-03-17-225459,2014-03-18-025459,2014-03-18-065459,2014-03-18-105458,2014-03-18-134501,2014-03-18-174501,2014-03-18-214500,2014-03-18-225010,2014-03-19-025009,2014-03-19-065009,2014-03-19-105008,2014-03-19-145008,2014-03-19-185007,2014-03-19-225007,2014-03-20-065006,2014-03-20-105006,2014-03-20-145006,2014-03-20-185005,2014-03-20-225005,2014-03-21-025004,2014-03-21-065004,2014-03-21-105004,2014-03-21-145003,2014-03-21-185003,2014-03-21-225002,2014-03-22-025002,2014-03-22-065002,2014-03-22-105001,2014-03-22-145001,2014-03-22-185001,2014-03-22-225000,2014-03-23-025000,2014-03-23-065000,2014-03-23-104959,2014-03-23-144959,2014-03-23-184958,2014-03-23-224958,2014-03-24-024958,2014-03-24-070009,2014-03-24-110008,2014-03-24-150008,2014-03-24-190007,2014-03-24-230007,2014-03-25-030007,2014-03-25-070006,2014-03-25-110006,2014-03-25-150006,2014-03-25-190005,2014-03-25-230005,2014-03-26-030005,2014-03-26-070004,2014-03-26-110004,2014-03-26-150003,2014-03-26-190003,2014-03-26-230003,2014-03-27-070002,2014-03-27-110002,2014-03-27-150001,2014-03-27-190001,2014-03-27-230000,2014-03-28-030000,2014-03-28-070000,2014-03-28-105959,2014-03-28-145959,2014-03-28-185959,2014-03-28-225958,2014-03-29-025958,2014-03-29-065957,2014-03-29-105957,2014-03-29-145957,2014-03-29-185956,2014-03-29-195607,2014-03-29-235607,2014-03-30-045607,2014-03-30-085606,2014-03-30-125606,2014-03-30-165606,2014-03-30-205605,2014-03-31-005607,2014-03-31-045605,2014-03-31-085604,2014-03-31-125604,2014-03-31-165603,2014-03-31-205604,2014-04-01-075034,2014-04-01-115002,2014-04-01-155002,2014-04-01-201211,2014-04-02-001154,2014-04-02-011006,2014-04-02-051006,2014-04-02-091008,2014-04-02-113010,2014-04-02-153009,2014-04-02-193009,2014-04-02-233009,2014-04-03-073008,2014-04-03-113008,2014-04-03-153007,2014-04-03-193007,2014-04-03-233006,2014-04-04-033006,2014-04-04-073005,2014-04-04-113005,2014-04-04-153005,2014-04-04-193004,2014-04-04-233004,2014-04-05-033008,2014-04-05-073003,2014-04-05-122322,2014-04-05-142944,2014-04-05-144458,2014-04-05-193628,2014-04-05-224457,2014-04-06-024456,2014-04-06-064456,2014-04-06-104456,2014-04-06-144455,2014-04-06-184455,2014-04-06-224455,2014-04-07-024454,2014-04-07-064454,2014-04-07-104453,2014-04-07-144453,2014-04-07-184453,2014-04-07-224452,2014-04-08-024452,2014-04-08-064451,2014-04-08-104451,2014-04-08-144451,2014-04-08-184450,2014-04-08-224450,2014-04-09-071355,2014-04-09-104449,2014-04-09-144449,2014-04-10-082943,2014-04-10-104446,2014-04-10-144446,2014-04-10-184446,2014-04-11-023220,2014-04-11-063220,2014-04-11-103220,2014-04-11-143219,2014-04-11-183218,2014-04-11-223218,2014-04-12-023218,2014-04-12-063217,2014-04-12-103217,2014-04-12-143217,2014-04-12-183216,2014-04-12-223216,2014-04-13-023216,2014-04-13-063215,2014-04-13-103215,2014-04-13-143215,2014-04-13-183214,2014-04-13-223214,2014-04-14-023213,2014-04-14-063213,2014-04-14-103213,2014-04-14-143212,2014-04-14-183212,2014-04-14-223212,2014-04-15-023211,2014-04-15-063211,2014-04-15-103211,2014-04-15-143210,2014-04-15-183210,2014-04-15-223210,2014-04-16-023209,2014-04-16-063209,2014-04-16-103208,2014-04-16-143208,2014-04-16-183208,2014-04-16-223207,2014-04-17-063207,2014-04-17-103206,2014-04-17-143206,2014-04-17-183206,2014-04-17-223205,2014-04-18-023205,2014-04-18-063204,2014-04-18-103204,2014-04-18-143204,2014-04-18-183203,2014-04-18-223203,2014-04-19-023203,2014-04-19-063202,2014-04-19-103202,2014-04-19-143202,2014-04-19-183201,2014-04-19-223201,2014-04-20-023200,2014-04-20-063201,2014-04-20-103200,2014-04-20-153916,2014-04-20-193916,2014-04-20-233915,2014-04-21-033915,2014-04-21-073914,2014-04-21-113914,2014-04-21-153914,2014-04-21-193913,2014-04-21-233913,2014-04-22-033913,2014-04-22-073912,2014-04-22-113912,2014-04-22-153912,2014-04-22-193911,2014-04-22-233911,2014-04-23-033910,2014-04-23-073910,2014-04-23-113910,2014-04-23-153911,2014-04-23-193909,2014-04-23-233909,2014-04-24-073908,2014-04-24-113908,2014-04-24-153907,2014-04-24-193907,2014-04-24-233906,2014-04-25-033906,2014-04-25-073906,2014-04-25-113905,2014-04-25-153905,2014-04-25-193905,2014-04-25-233904,2014-04-26-033904,2014-04-26-073904,2014-04-26-113903,2014-04-26-153903,2014-04-26-193903,2014-04-26-233902,2014-04-27-033902,2014-04-27-073901,2014-04-27-113901,2014-04-27-153901,2014-04-27-193900,2014-04-27-233900,2014-04-28-033900,2014-04-28-073859,2014-04-28-113859,2014-04-28-153859,2014-04-28-193858,2014-04-28-233858,2014-04-29-033857,2014-04-29-073857,2014-04-29-113857,2014-04-29-153856,2014-04-29-193856,2014-04-29-233856,2014-04-30-033855,2014-04-30-073855,2014-04-30-113854,2014-04-30-153854,2014-04-30-193854,2014-04-30-211427,2014-05-01-044205,2014-05-01-055041,2014-05-01-095041,2014-05-01-135040,2014-05-01-175040,2014-05-01-215040,2014-05-02-015039,2014-05-02-055039,2014-05-02-095039,2014-05-02-135038,2014-05-02-175038,2014-05-02-215038,2014-05-03-015037,2014-05-03-055037,2014-05-03-095036,2014-05-03-135036,2014-05-03-175036,2014-05-03-215035,2014-05-04-015035,2014-05-04-055035,2014-05-04-095034,2014-05-04-135034,2014-05-04-175034,2014-05-04-215033,2014-05-05-015033,2014-05-05-115640,2014-05-05-155640,2014-05-05-195639,2014-05-05-235639,2014-05-06-035639,2014-05-06-075638,2014-05-06-115638,2014-05-06-155637,2014-05-06-195637,2014-05-06-235637,2014-05-07-035636,2014-05-07-075636,2014-05-07-115635,2014-05-07-155635,2014-05-07-195635,2014-05-07-235634,2014-05-08-075634,2014-05-08-115633,2014-05-08-150504,2014-05-08-190504,2014-05-08-230503,2014-05-09-030503,2014-05-09-070503,2014-05-09-110502,2014-05-09-150502,2014-05-09-190501,2014-05-09-230501,2014-05-10-030501,2014-05-10-070500,2014-05-10-110500,2014-05-10-150550,2014-05-15-203842,2014-05-16-003842,2014-05-16-043841,2014-05-16-083841,2014-05-16-123840,2014-05-17-020702,2014-05-17-134509,2014-05-17-163838,2014-05-17-220548,2014-05-18-003837,2014-05-18-043836,2014-05-18-083836,2014-05-18-123836,2014-05-18-163835,2014-05-18-203835,2014-05-19-003834,2014-05-19-043834,2014-05-19-083834,2014-05-19-123833,2014-05-19-163833,2014-05-19-203833,2014-05-20-003832,2014-05-20-022227,2014-05-20-025606,2014-05-20-033453,2014-05-20-044452,2014-05-20-084407,2014-05-20-124421,2014-05-20-164359,2014-05-20-204421,2014-05-21-004458,2014-05-21-044602,2014-05-21-084435,2014-05-21-124403,2014-05-21-164444,2014-05-21-204701,2014-05-22-232144,2014-05-23-025041,2014-05-23-070746,2014-05-23-110745,2014-05-23-150745,2014-05-24-131451,2014-05-24-134344,2014-05-24-154907,2014-05-24-173608,2014-05-24-220807,2014-05-24-234906,2014-05-25-034906,2014-05-25-074905,2014-05-25-114905,2014-05-25-154905,2014-05-25-194904,2014-05-25-234904,2014-05-26-034904,2014-05-26-074903,2014-05-26-114903,2014-05-26-154902,2014-05-26-194902,2014-05-26-234902,2014-05-27-013957,2014-05-27-053956,2014-05-27-093956,2014-05-27-133956,2014-05-27-173955,2014-05-27-213955,2014-05-28-013954,2014-05-28-053954,2014-05-28-055941,2014-05-28-084226,2014-05-28-171453,2014-05-28-173953,2014-05-28-213953,2014-05-28-221348,2014-05-29-061347,2014-05-29-101347,2014-05-29-141346,2014-05-29-181346,2014-05-29-221345,2014-05-30-021345,2014-05-30-061345,2014-05-30-101344,2014-05-30-141344,2014-05-30-221343,2014-05-31-030704,2014-05-31-070703,2014-05-31-112804,2014-05-31-150703,2014-05-31-190702,2014-05-31-230702,2014-06-01-070701,2014-06-01-110701,2014-06-01-150700,2014-06-01-190700,2014-06-01-230700,2014-06-02-053033,2014-06-02-110913,2014-06-02-184417,2014-06-03-030657,2014-06-03-070657,2014-06-03-110656,2014-06-03-150656,2014-06-03-190656,2014-06-03-230655,2014-06-04-054143,2014-06-04-074949,2014-06-04-114949,2014-06-04-154949,2014-06-04-194948,2014-06-04-234948,2014-06-05-052448,2014-06-05-092447,2014-06-05-132447,2014-06-05-172446,2014-06-05-234848,2014-06-06-001545,2014-06-06-010227,2014-06-06-014618,2014-06-06-045245,2014-06-06-063146,2014-06-06-120140,2014-06-06-122759,2014-06-06-162759,2014-06-06-202758,2014-06-07-042757,2014-06-07-064657,2014-06-07-122257,2014-06-07-162257,2014-06-07-172559,2014-06-07-212558,2014-06-08-052558,2014-06-08-092557,2014-06-08-132557,2014-06-08-172556,2014-06-08-212556,2014-06-09-052555,2014-06-09-092555,2014-06-09-132554,2014-06-09-172554,2014-06-09-212554,2014-06-10-052553,2014-06-10-092552,2014-06-10-132552,2014-06-10-181414,2014-06-11-024741,2014-06-11-052551,2014-06-11-092550,2014-06-11-163212,2014-06-11-201225,2014-06-12-045224,2014-06-12-083948,2014-06-12-092732,2014-06-12-100301,2014-06-12-121224,2014-06-12-161223,2014-06-12-201223,2014-06-13-041222,2014-06-13-081222,2014-06-13-121221,2014-06-13-161221,2014-06-13-201220,2014-06-14-041220,2014-06-14-081219,2014-06-14-121219,2014-06-14-161218,2014-06-14-201218,2014-06-15-041217,2014-06-15-081217,2014-06-15-121216,2014-06-15-161216,2014-06-15-201216,2014-06-16-041215,2014-06-16-081215,2014-06-16-121215,2014-06-16-133531,2014-06-16-175358,2014-06-16-215357,2014-06-17-055356,2014-06-17-064555,2014-06-17-104555,2014-06-17-144555,2014-06-17-162559,2014-06-17-202559,2014-06-18-042558,2014-06-18-082558,2014-06-18-122557,2014-06-18-162557,2014-06-18-202557,2014-06-19-042556,2014-06-19-082555,2014-06-19-122555,2014-06-19-162555,2014-06-19-202554,2014-06-20-042553,2014-06-20-082553,2014-06-20-122553,2014-06-20-162600,2014-06-20-181821,2014-06-20-221821,2014-06-21-061819,2014-06-21-101819,2014-06-21-141819,2014-06-21-181818,2014-06-21-221818,2014-06-22-061817,2014-06-22-101817,2014-06-22-141816,2014-06-22-181816,2014-06-22-221815,2014-06-23-052156,2014-06-23-092156,2014-06-23-132155,2014-06-23-172155,2014-06-23-212155,2014-06-24-052154,2014-06-24-105406,2014-06-24-145406,2014-06-24-185405,2014-06-24-225405,2014-06-25-065404,2014-06-25-105404,2014-06-25-145403,2014-06-25-190657,2014-06-25-195956,2014-06-25-235955,2014-06-26-075955,2014-06-26-115954,2014-06-26-155954,2014-06-26-195953,2014-06-26-235953,2014-06-27-075952,2014-06-27-115952,2014-06-27-135212,2014-06-27-175211,2014-06-27-223708,2014-06-28-055210,2014-06-28-095210,2014-06-28-135209,2014-06-28-175209,2014-06-28-215209,2014-06-29-055208,2014-06-29-095207,2014-06-29-135207,2014-06-29-175207,2014-06-29-215206,2014-06-30-064432,2014-06-30-104431,2014-06-30-144431,2014-06-30-184430,2014-06-30-224430,2014-07-01-124957,2014-07-01-150113,2014-07-01-184428,2014-07-01-205829,2014-07-02-045829,2014-07-02-085828,2014-07-02-125828,2014-07-02-165828,2014-07-02-173504,2014-07-02-213504,2014-07-03-050659,2014-07-03-090659,2014-07-03-130658,2014-07-03-170658,2014-07-03-183117,2014-07-03-223117,2014-07-04-063116,2014-07-04-103115,2014-07-04-143115,2014-07-04-183115,2014-07-05-183112,2014-07-05-223112,2014-07-06-063111,2014-07-06-103111,2014-07-06-143110,2014-07-06-183110,2014-07-06-223110,2014-07-07-042416,2014-07-07-082415,2014-07-07-122415,2014-07-07-162415,2014-07-07-202414,2014-07-08-042414,2014-07-08-182842,2014-07-08-202412,2014-07-09-042411,2014-07-09-082411,2014-07-09-120830,2014-07-09-160829,2014-07-09-200829,2014-07-10-040828,2014-07-10-080828,2014-07-10-120827,2014-07-10-160827,2014-07-10-200826,2014-07-11-040826,2014-07-11-080825,2014-07-11-120825,2014-07-11-160824,2014-07-11-200824,2014-07-12-152311,2014-07-12-192310,2014-07-12-232310,2014-07-13-072309,2014-07-13-112309,2014-07-13-152321,2014-07-13-194121,2014-07-13-232308,2014-07-14-072307,2014-07-14-112306,2014-07-14-140720,2014-07-14-211859,2014-07-15-083158,2014-07-15-123158,2014-07-15-163157,2014-07-15-203157,2014-07-16-043156,2014-07-16-083156,2014-07-16-174917,2014-07-16-203155,2014-07-17-043154,2014-07-17-083153,2014-07-17-123153,2014-07-17-163153,2014-07-17-203152,2014-07-18-013602,2014-07-18-053602,2014-07-18-093601,2014-07-18-133606,2014-07-21-053417,2014-07-21-093417,2014-07-21-133416,2014-07-21-173416,2014-07-21-213415,2014-07-22-070019,2014-07-22-093414,2014-07-22-133414,2014-07-22-173413,2014-07-22-192208,2014-07-22-232208,2014-07-23-073958,2014-07-23-112207,2014-07-23-152207,2014-07-23-210011,2014-07-24-063029,2014-07-24-090010,2014-07-24-130010,2014-07-24-162301,2014-07-24-202301,2014-07-25-042300,2014-07-25-082259,2014-07-25-122259,2014-07-25-162259,2014-07-25-202258,2014-07-26-042257,2014-07-26-082257,2014-07-26-122257,2014-07-26-162256,2014-07-26-202256,2014-07-27-042255,2014-07-27-082255,2014-07-27-122254,2014-07-27-162254,2014-07-27-202253,2014-07-28-042253,2014-07-28-082252,2014-07-28-122252,2014-07-28-173027,2014-07-28-213026,2014-07-29-053025,2014-07-29-093025,2014-07-29-133025,2014-07-29-213024,2014-07-30-053023,2014-07-30-093023,2014-07-30-173022,2014-07-30-213021,2014-07-31-053021,2014-07-31-093022,2014-07-31-165144,2014-07-31-205144,2014-08-01-045144,2014-08-01-085143,2014-08-01-165142,2014-08-01-205142,2014-08-02-045142,2014-08-02-085142,2014-08-02-165141,2014-08-02-205141,2014-08-03-045139,2014-08-03-085138,2014-08-03-165137,2014-08-03-205137,2014-08-03-235540,2014-08-04-075540,2014-08-04-115539,2014-08-04-195538,2014-08-04-235538,2014-08-05-075537,2014-08-05-115537,2014-08-05-195536,2014-08-05-235536,2014-08-06-075535,2014-08-06-115535,2014-08-06-195534,2014-08-06-235533,2014-08-07-063523,2014-08-07-103522,2014-08-07-183522,2014-08-07-223521,2014-08-08-063521,2014-08-08-103520,2014-08-08-183519,2014-08-08-223519,2014-08-09-063518,2014-08-09-103517,2014-08-09-183517,2014-08-09-223516,2014-08-10-063516,2014-08-10-103515,2014-08-10-183514,2014-08-10-223514,2014-08-11-063513,2014-08-11-103513,2014-08-11-201404,2014-08-12-041404,2014-08-12-081403,2014-08-12-180000,2014-08-12-190000,2014-08-12-200000,2014-08-12-210000,2014-08-12-220000,2014-08-12-230000,2014-08-13-010000,2014-08-13-020000,2014-08-13-030000,2014-08-13-040000,2014-08-13-050000,2014-08-13-060000,2014-08-13-070000,2014-08-13-080000,2014-08-13-090000,2014-08-13-100000,2014-08-13-110000,2014-08-13-130000,2014-08-13-140000,2014-08-13-150000,2014-08-13-160000,2014-08-13-170000,2014-08-13-180000,2014-08-13-190000,2014-08-13-200000,2014-08-13-210000,2014-08-13-220000,2014-08-13-230000,2014-08-14-010000,2014-08-14-020000,2014-08-14-030000,2014-08-14-040000,2014-08-14-050000,2014-08-14-060000,2014-08-14-070000,2014-08-14-080000,2014-08-14-090000,2014-08-14-100000,2014-08-14-110000,2014-08-14-130000,2014-08-14-140000,2014-08-14-150000,2014-08-14-160000,2014-08-14-170000,2014-08-14-180000,2014-08-14-190000,2014-08-14-200000,2014-08-14-210000,2014-08-14-220000,2014-08-14-230000,2014-08-15-010000,2014-08-15-020000,2014-08-15-030000,2014-08-15-040000,2014-08-15-050000,2014-08-15-060000,2014-08-15-070000,2014-08-15-080000,2014-08-15-090000,2014-08-15-100000,2014-08-15-110000,2014-08-15-130000,2014-08-15-140000,2014-08-15-150000,2014-08-15-160000,2014-08-15-170000,2014-08-15-180000,2014-08-15-190000,2014-08-15-200000,2014-08-15-210000,2014-08-15-220000,2014-08-15-230000,2014-08-16-010000,2014-08-16-020000,2014-08-16-030000,2014-08-16-040000,2014-08-16-050000,2014-08-16-060000,2014-08-16-070000,2014-08-16-080000,2014-08-16-090000,2014-08-16-100000,2014-08-16-110000,2014-08-16-130000,2014-08-16-150000,2014-08-16-160000,2014-08-16-170000,2014-08-16-180000,2014-08-16-190000,2014-08-16-200000,2014-08-16-210000,2014-08-16-220000,2014-08-16-230000,2014-08-17-010000,2014-08-17-020000,2014-08-17-030000,2014-08-17-150000,2014-08-17-160000,2014-08-17-170000,2014-08-17-180000,2014-08-17-190000,2014-08-17-200000,2014-08-17-210000,2014-08-17-220000,2014-08-17-230000,2014-08-18-010000,2014-08-18-020000,2014-08-18-030000,2014-08-18-040000,2014-08-18-050000,2014-08-18-060000,2014-08-18-070000,2014-08-18-080000,2014-08-18-090000,2014-08-18-100000,2014-08-18-110000,2014-08-18-130000,2014-08-18-140000,2014-08-18-150000,2014-08-18-160000,2014-08-18-170000,2014-08-18-180000,2014-08-18-190000,2014-08-18-200000,2014-08-18-210000,2014-08-18-220000,2014-08-18-230000,2014-08-19-010000,2014-08-19-020000,2014-08-19-030000,2014-08-19-040000,2014-08-19-050000,2014-08-19-060000,2014-08-19-070000,2014-08-19-080000,2014-08-19-090000,2014-08-19-100000,2014-08-19-110000,2014-08-19-130000,2014-08-19-140000,2014-08-19-150000,2014-08-19-160000,2014-08-19-170000,2014-08-19-180000,2014-08-19-190000,2014-08-19-200000,2014-08-19-210000,2014-08-19-220000,2014-08-19-230000,2014-08-20-010000,2014-08-20-020000,2014-08-20-030000,2014-08-20-040000,2014-08-20-050000,2014-08-20-060000,2014-08-20-070000,2014-08-20-080000,2014-08-20-090000,2014-08-20-100000,2014-08-20-110000,2014-08-20-130000,2014-08-20-140000,2014-08-20-150000,2014-08-20-160000,2014-08-20-170000,2014-08-20-180000,2014-08-20-190000,2014-08-20-200000,2014-08-20-210000,2014-08-20-220000,2014-08-20-230000,2014-08-21-010000,2014-08-21-030000,2014-08-21-040000,2014-08-21-050000,2014-08-21-060000,2014-08-21-070000,2014-08-21-080000,2014-08-21-090000,2014-08-21-100000,2014-08-21-110000,2014-08-21-130000,2014-08-21-140000,2014-08-21-150000,2014-08-21-170000,2014-08-21-180000,2014-08-21-190000,2014-08-21-210000,2014-08-21-220000,2014-08-21-230000,2014-08-22-010000,2014-08-22-020000,2014-08-22-030000,2014-08-22-050000,2014-08-22-060000,2014-08-22-070000,2014-08-22-090000,2014-08-22-100000,2014-08-22-190000,2014-08-22-210000,2014-08-22-220000,2014-08-22-230000,2014-08-23-010000,2014-08-23-020000,2014-08-23-030000,2014-08-23-050000,2014-08-23-060000,2014-08-23-070000,2014-08-23-090000,2014-08-23-100000,2014-08-23-110000,2014-08-23-130000,2014-08-23-140000,2014-08-23-150000,2014-08-23-170000,2014-08-23-180000,2014-08-23-190000,2014-08-23-210000,2014-08-23-220000,2014-08-23-230000,2014-08-24-010000,2014-08-24-020000,2014-08-24-030000,2014-08-24-050000,2014-08-24-060000,2014-08-24-070000,2014-08-24-090000,2014-08-24-100000,2014-08-24-110000,2014-08-24-130000,2014-08-24-140000,2014-08-24-150000,2014-08-24-170000,2014-08-24-180000,2014-08-24-190000,2014-08-24-210000,2014-08-24-220000,2014-08-24-230000,2014-08-25-010000,2014-08-25-020000,2014-08-25-030000,2014-08-25-050000,2014-08-25-060000,2014-08-25-070000,2014-08-25-090000,2014-08-25-100000,2014-08-25-110000,2014-08-25-130000,2014-08-25-140000,2014-08-25-150000,2014-08-25-170000,2014-08-25-180000,2014-08-25-190000,2014-08-25-210000,2014-08-25-220000,2014-08-25-230000,2014-08-26-010000,2014-08-26-020000,2014-08-26-030000,2014-08-26-050000,2014-08-26-060000,2014-08-26-070000,2014-08-26-090000,2014-08-26-100000,2014-08-26-110000,2014-08-26-130000,2014-08-26-140000,2014-08-26-150000,2014-08-26-170000,2014-08-26-180000,2014-08-26-190000,2014-08-26-210000,2014-08-26-220000,2014-08-26-230000,2014-08-27-010000,2014-08-27-020000,2014-08-27-030000,2014-08-27-050000,2014-08-27-060000,2014-08-27-070000,2014-08-27-090000,2014-08-27-100000,2014-08-27-110000,2014-08-27-130000,2014-08-27-140000,2014-08-27-150000,2014-08-27-170000,2014-08-27-180000,2014-08-27-190000,2014-08-27-210000,2014-08-27-220000,2014-08-27-230000,2014-08-28-010000,2014-08-28-020000,2014-08-28-030000,2014-08-28-050000,2014-08-28-060000,2014-08-28-070000,2014-08-28-090000,2014-08-28-100000,2014-08-28-110000,2014-08-28-140000,2014-08-28-150000'
cannot destroy snapshot pool/from_src/user@2013-04-03-072351: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-11-15-145353: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-11-16-145351: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-11-17-145349: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-11-18-145347: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-11-19-145345: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-11-20-145342: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-11-26-152014: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-12-07-013608: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-12-08-013606: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-12-11-133558: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-12-16-175846: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-12-17-175844: dataset is busy
cannot destroy snapshot pool/from_src/user@2013-12-18-175842: dataset is busy
@hadfl
Copy link
Collaborator

hadfl commented Aug 28, 2014

well, if snapshots are created by znapzend they should not be 'hold'.

in your specific setup where snaphots not created by znapzend exist, you might want to have a look at the so called 'oracleMode' feature which will exactly do what you are asking for: https://github.com/oetiker/znapzend/blob/master/doc/znapzend.pod

@rottegift
Copy link
Author

What if one wants to temporarily avoid destruction of a particular snapshot ?

(And what if one wants to temporarily mount or clone a particular snapshot ?)

@oetiker
Copy link
Owner

oetiker commented Aug 30, 2014

@rottegift how about determining holds while scanning the snapshots and then excluding them from destruction ? would this be a worthy task for your first contribution ?

@oetiker oetiker added the bug label Jan 17, 2015
@odoucet
Copy link

odoucet commented Mar 3, 2016

Hello, I have the same issue with a zfs clone/promote on a volume : snapshot used is locked on purpose, and znapzend cannot delete it (happily !), but then snaps are accumulating on it.

For this exact matter, we can find locked snapshot by using "zfs get origin -r $zpoolname", or snaps with "zfs get clones" != ''

For snaps locked by "zfs hold", property 'userrefs' is incremented, so we need to check all snaps where property userrefs > 0.

I checked the value for a snapshot that is the origin of a clone, and userrefs = 0.
So we need to exclude snaps based on both properties : "zfs get clones,userrefs -r $zpoolName" to grab everything we need.

I will be happy to contribute on this, even if I'm not particularly fluent in Perl. Can you help me a bit and tell me where would it be nicer to add this check ?

@oetiker
Copy link
Owner

oetiker commented Mar 4, 2016

I would assume that the place where we get the list of existing snapshots would be the right place to get these attributes as well so that we are able to skip the 'special' snapshots ... lib/ZnapZend/ZFS.pm#L142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants