Sponsored Content
Operating Systems Solaris Error trying to promote ZFS clone - what do I need to do to troubleshoot this? Post 303014233 by Peasant on Wednesday 7th of March 2018 11:14:21 PM
Old 03-08-2018
Which is understandable.
You have created a clone of rpool/ai filesystem as a descendant filesystem of of rpool/ai filesystem.
While this is possible and working, you will not be able to promote that filesystem rpool/ai/my_new_ai_clone due to above condition.
But you will be able to use it as you see fit.


This will work, as you noticed :

Code:
somezpool/ai/filesystem1 # filesystem1 is mounted under /somezpool/ai/filesystem1 and contains data.
somezpool/ai/filesystem1@today # take snap
somezpool/ai/filesystem1_clone # create clone under somezpool/ai/filesystem1_clone

zfs promote of filesystem1_clone to filesystem1 will now work.

Do not confuse directories and filesystems in zfs.
zfs will create nested filesystems on top of each other and mount them like that due to mount point inheritance behavior.
/mypool -> zfs create mypool/dump/somefilesystem

Result :

A zfs filesystem mypool/dump/somefilesystem is created and mounted under /mypool/dump/somefilesystem, unless overridden with -o mountpoint=/some/other/mountpoint during zfs create command.

Of course, mountpoint can be changed anytime with zfs set, as long as nothing is accessing the mountpoint.

rollback/promotion/cloning of entire filesystem hierarchy (dataset) is not possible, only one filesystem at the time.
While snapshots, destroy and sending will work on entire dataset recursively if -r is ran against the parent dataset.

Hope that helps
Regards
Peasant.
 

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
ZFSLOADER(8)						    BSD System Manager's Manual 					      ZFSLOADER(8)

NAME
zfsloader -- kernel bootstrapping final stage DESCRIPTION
zfsloader is an extended variant of loader(8) with added support for booting from ZFS. This document describes only differences from loader(8). ZFS FEATURES
zfsloader supports the following format for specifying ZFS filesystems which can be used wherever loader(8) refers to a device specification: zfs:pool/filesystem: where pool/filesystem is a ZFS filesystem name as described in zfs(8). If /etc/fstab does not have an entry for the root filesystem and vfs.root.mountfrom is not set, but currdev refers to a ZFS filesystem, then zfsloader will instruct kernel to use that filesystem as the root filesystem. ZFS COMMAND EXTENSIONS
lsdev [-v] Lists ZFS pools in addition to disks and partitions. Adding -v shows more ZFS pool details in a format that resembles zpool status output. lszfs filesystem A ZFS extended command that can be used to explore the ZFS filesystem hierarchy in a pool. Lists the immediate children of the filesystem. The filesystem hierarchy is rooted at a filesystem with the same name as the pool. FILES
/boot/zfsloader zfsloader itself. EXAMPLES
Set the default device used for loading a kernel from a ZFS filesystem: set currdev=zfs:tank/ROOT/knowngood: SEE ALSO
gptzfsboot(8), loader(8), zfs(8), zfsboot(8), zfsloader(8), zpool(8) HISTORY
The zfsloader first appeared in FreeBSD 7.3. AUTHORS
This manual page was written by Andriy Gapon <avg@FreeBSD.org>. BSD
September 15, 2014 BSD
All times are GMT -4. The time now is 10:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy