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

Unable to destroy snapshot while rollbacking... #95

Open
vikramjadhav opened this issue Jan 12, 2011 · 0 comments
Open

Unable to destroy snapshot while rollbacking... #95

vikramjadhav opened this issue Jan 12, 2011 · 0 comments

Comments

@vikramjadhav
Copy link
Member

Unable to destroy snapshot while rollbacking...

Steps as follows :

[root@localhost kqinfo]# zpool create tank /dev/sdb1

[root@localhost kqinfo]# zfs create tank/zfs

[root@localhost kqinfo]# cd /tank/

[root@localhost tank]# touch a

[root@localhost tank]# touch b

[root@localhost tank]# cd zfs/

[root@localhost zfs]# touch f

[root@localhost zfs]# touch k

[root@localhost zfs]# cd ..
[root@localhost tank]# cd ..

[root@localhost /]# zfs snapshot tank@snap1

[root@localhost /]# zfs snapshot tank@snap2

[root@localhost /]# zfs snapshot tank@snap3

[root@localhost /]# zfs snapshot tank@snap4

[root@localhost /]# zfs snapshot tank@snap5

[root@localhost /]# zfs snapshot tank@snap6

[root@localhost /]# zfs rollback -r tank@snap2

[root@localhost /]# cd /tank/.zfs/snapshot/snap

snap1/ snap2/

[root@localhost /]# cd /tank/.zfs/snapshot/snap

[root@localhost /]# zfs snapshot tank/zfs@snap11

[root@localhost /]# zfs snapshot tank/zfs@snap12

[root@localhost /]# zfs snapshot tank/zfs@snap13

[root@localhost /]# zfs snapshot tank/zfs@snap14

[root@localhost /]# zfs snapshot tank/zfs@snap15

[root@localhost /]# zfs snapshot tank/zfs@snap16

[root@localhost /]# zfs rollback -r tank/zfs@snap12

[root@localhost /]# cd /tank/zfs/.zfs/snapshot/snap1
snap11/ snap12/

[root@localhost /]# cd /tank/zfs/.zfs/snapshot/snap1

[root@localhost /]# zfs snapshot tank/zfs@snap17

[root@localhost /]# zfs snapshot tank/zfs@snap18

[root@localhost /]# zfs snapshot tank/zfs@snap19

[root@localhost /]# zfs snapshot tank@snap20

[root@localhost /]# zfs snapshot tank@snap21

[root@localhost /]# cd /tank/.zfs/snapshot/snap
snap1/ snap2/ snap20/ snap21/

[root@localhost /]# cd /tank/zfs/.zfs/snapshot/snap1
snap11/ snap12/ snap17/ snap18/ snap19/

[root@localhost /]# zfs rollback -r tank/zfs@snap17

cannot destroy 'tank/zfs@snap19': dataset is busy
cannot destroy 'tank/zfs@snap18': dataset is busy

[root@localhost /]#

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

No branches or pull requests

1 participant