[OmniOS-discuss] Ang: zvol snapshot rollback issue, dataset busy
Stephan Budach
stephan.budach at JVM.DE
Tue Feb 16 16:43:32 UTC 2016
Am 16.02.16 um 17:11 schrieb Johan Kragsterman:
> Hi!
>
>
> -----"OmniOS-discuss" <omnios-discuss-bounces at lists.omniti.com> skrev: -----
> Till: omnios-discuss <omnios-discuss at lists.omniti.com>
> Från: Hafiz Rafiyev
> Sänt av: "OmniOS-discuss"
> Datum: 2016-02-16 16:47
> Ärende: [OmniOS-discuss] zvol snapshot rollback issue,dataset busy
>
> I now its OmniOs forum,question about Nexenta v4.0.4FP02.
> Maybe issue is common to illumos,
>
> Getting below error when trying to rollback zvol snapshot,zvol unshared before rollback operation,system rebooted but result was same.
>
> any sugesttions?
>
> zfs rollback -r OPOOL/DATA at snap-hourly-1-2016-02-16-130002
>
> cannot rollback 'OPOOL/DATA': dataset is busy
>
>
> Nexenta log:
>
> Feb 16 15:35:47 xxx nms[966]: [ID 702911 local0.error] (:1.12) EXCEPTION: SystemCallError: SnapshotContainer::rollback(OPOOL/DATA at snap-hourly-1-2016-02-16-130002,-r):
>
> [zfs rollback -r OPOOL/DATA at snap-hourly-1-2016-02-16-130002] cannot rollback 'OPOOL/DATA': dataset is busy
>
>
>
>
> My guess is that the volume you want to roll it back to is registred as an LU with stmf...is it? If so, you need to delete it first. But be aware, before you delete the LU you need to delete any view for that LU. Otherwise you get views "hanging in the air" which is difficult to get rid of.
>
>
> Johan
>
I'd say, it's the other way round… if you delete a LUN via stmfadm
delete-lu, that will also delete it's views, which can be annoying, if
you then want to re-import the LUN from the rolled back snapshot, no?
If you want to keep the view, which is what I usually want to do, just
run stmfadm delete-lu -k <LU> to keep the view. That way, you can then
re-import the LUN on the rolled back dataset and won't have to re-create
the view for it.
Cheers,
Stephan
>
More information about the OmniOS-discuss
mailing list