Sponsored Content
Operating Systems Solaris Error trying to promote ZFS clone - what do I need to do to troubleshoot this? Post 303014207 by psychocandy on Wednesday 7th of March 2018 09:06:01 AM
Old 03-07-2018
Error trying to promote ZFS clone - what do I need to do to troubleshoot this?

Steps taken:-
1. Snapshot an existing ZFS filesystem.
2. Created clone from snapshot.
3. Updated files on cloned ZFS filesystem.
4. Snapshot of cloned ZFS filesystem.
5. Attempted to promote clone ZFS and get error message. See below.


Code:
 #zfs list -rt all /rpool/ai 
 NAME                         USED  AVAIL  REFER  MOUNTPOINT 
 rpool/ai                    28.2G  26.3G  19.3G  /rpool/ai 
 rpool/ai@aisnap               54K      -  19.3G  - 
 rpool/ai/aiclone            8.98G  26.3G  27.2G  /rpool/ai/aiclone 
 rpool/ai/aiclone@clonesnap      0      -  27.2G  - 
 rpool/ai/aiclone%               -      -      -  /rpool/ai/aiclone

Code:
# zfs promote rpool/ai/aiclone 
 cannot determine dependent datasets: recursive dependency at 'rpool/ai'

Moderator's Comments:
Mod Comment Please use code tags


---------- Post updated at 09:06 AM ---------- Previous update was at 06:07 AM ----------

Ah doesnt work if you create a clone that is sub-directory of the existing one. i.e. rpool/ai/clone from rpool/ai. Only works if you use /rpool/aiclone.

Last edited by jim mcnamara; 03-07-2018 at 08:23 AM..
 

5 More Discussions You Might Find Interesting

1. Solaris

Remove the zfs snapshot keeping the original volume and clone

I created a snapshot and subsequent clone of a zfs volume. But now i 'm not able to remove the snapshot it gives me following error zfs destroy newpool/ldom2/zdisk4@bootimg cannot destroy 'newpool/ldom2/zdisk4@bootimg': snapshot has dependent clones use '-R' to destroy the following... (7 Replies)
Discussion started by: fugitive
7 Replies

2. AIX

troubleshoot

Dear friends, is there any kind of scripts that will damage aix than we can troubleshoot what was the reason :-) just for having fun :-) (2 Replies)
Discussion started by: Vit0_Corleone
2 Replies

3. UNIX for Dummies Questions & Answers

Help to troubleshoot and correct

Reference (to previous post title): Help_Beginner in Unix I need assistance in terms of troubleshooting this codes.Though it not complete for the required task,shedding of any idea will be appreciated. the information about the code is the thread referenced above Code: #!/bin/ksh touch... (1 Reply)
Discussion started by: moraks007
1 Replies

4. Solaris

Repeated error - "se_hdlc: clone device must be attached before use" in /var/adm/messages

Below is the error being repeated on my Solaris 9 Sun-Fire-V890 machine. SAN team confirmed as everything is fine from their end. I did google and found that some people say its a known Oracle bug when you have Oracle 10G installed on your system but I kind of disagree with them. Please see below... (2 Replies)
Discussion started by: vikkash
2 Replies

5. Solaris

ZFS receive error

trying to clone a zfs file system on the same system using zfs send -r root/branch@snapshot |zfs receive root/newbranch and get the following error :parent does not exist. How do I fix this? (1 Reply)
Discussion started by: os2mac
1 Replies
Tree::Simple::Visitor::VariableDepthClone(3pm)		User Contributed Perl Documentation	    Tree::Simple::Visitor::VariableDepthClone(3pm)

NAME
Tree::Simple::Visitor::VariableDepthClone - A Visitor for cloning parts of Tree::Simple hierarchy SYNOPSIS
use Tree::Simple::Visitor::VariableDepthClone; # create an visitor my $visitor = Tree::Simple::Visitor::VariableDepthClone->new(); $visitor->setCloneDepth(3); # pass our visitor to the tree $tree->accept($visitor); my $partial_tree = $visitor->getClone(); DESCRIPTION
This visitor will clone METHODS
new There are no arguments to the constructor the object will be in its default state. You can use the "setNodeFilter" method to customize its behavior. includeTrunk ($boolean) Based upon the value of $boolean, this will tell the visitor to include the trunk of the tree in the traversal as well. This basically means it will clone the root node as well. setCloneDepth ($number) setNodeFilter ($filter_function) This method accepts a CODE reference as its $filter_function argument and throws an exception if it is not a code reference. This code reference is used to filter the tree nodes as they are cloned. visit ($tree) This is the method that is used by Tree::Simple's "accept" method. It can also be used on its own, it requires the $tree argument to be a Tree::Simple object (or derived from a Tree::Simple object), and will throw and exception otherwise. getClone This method returns the cloned partial tree. BUGS
None that I am aware of. Of course, if you find a bug, let me know, and I will be sure to fix it. CODE COVERAGE
See the CODE COVERAGE section in Tree::Simple::VisitorFactory for more inforamtion. SEE ALSO
These Visitor classes are all subclasses of Tree::Simple::Visitor, which can be found in the Tree::Simple module, you should refer to that module for more information. AUTHOR
stevan little, <stevan@iinteractive.com> COPYRIGHT AND LICENSE
Copyright 2005 by Infinity Interactive, Inc. <http://www.iinteractive.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2005-10-24 Tree::Simple::Visitor::VariableDepthClone(3pm)
All times are GMT -4. The time now is 09:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy