Home > LDom > cannot remove device links for ‘ldmpool/ldg2/disk0’: dataset is busy

cannot remove device links for ‘ldmpool/ldg2/disk0’: dataset is busy

Symptoms

1. I have made a snapshot for LDM guest ldg2 as the following

# zfs snapshot ldmpool/ldg2/disk0@version1

2. After some changes are done on the guest ldg2, I want to rollback to the snapshot. Then I stop ldg2 and apply the rollback by the command

#  zfs rollback ldmpool/ldg2/disk0@version1
cannot remove device links for ‘ldmpool/ldg2/disk0’: dataset is busy

Fix

Finally, I removed ldmpool/ldg2/disk0 from I/O domain, start the rollback and re-add the vdisk to ldg2. The details is shown as following

# ldm remove-vdisk disk0 ldg2
# ldm remove-vdsdev ldg2_disk0@primary-vds0
# zfs rollback ldmpool/ldg2/disk0@version1 <– rollback successfully
# ldm add-vdsdev /dev/zvol/dsk/ldmpool/ldg2/disk0 ldg2_disk0@primary-vds0
# ldm add-vdisk disk0 ldg2_disk0@primary-vds0 ldg2
# ldm list ldg2
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
ldg2             bound      ——  5008    4     4G

 

Advertisements
Categories: LDom
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: