Visit Our UNIX and Linux User Community


Remove the zfs snapshot keeping the original volume and clone


 
Thread Tools Search this Thread
Operating Systems Solaris Remove the zfs snapshot keeping the original volume and clone
# 1  
Old 08-05-2009
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

Code:
zfs destroy newpool/ldom2/zdisk4@bootimg
cannot destroy 'newpool/ldom2/zdisk4@bootimg': snapshot has dependent clones
use '-R' to destroy the following datasets:
newpool/ldom2/zdisk0

and if i promote the clone then the original volume becomes the dependent clone , is there a way to destroy just the snapshot leaving the clone and original volume intact ?
# 2  
Old 08-05-2009
Can you post the commands you used ?
Code:
zpool history newpool | grep ldom2

# 3  
Old 08-05-2009
jlliagre

What command exactly you want to know i ran .. as there are lot of commands for newpool and ldom datasets.
# 4  
Old 08-05-2009
The ones you feel are related to the issue. Strip out the other ones.
# 5  
Old 08-07-2009
Code:
2009-08-05.03:03:56 zfs snapshot newpool/ldom2/zdisk4@bootimg
2009-08-05.03:08:03 zfs clone newpool/ldom2/zdisk4@bootimg newpool/ldom2/zdisk0

Above are the 2 commands which i used for snapshot and cloning.

Last edited by Yogesh Sawant; 08-07-2009 at 04:55 AM.. Reason: added code tags
# 6  
Old 08-07-2009
I'm afraid you fail to provide enough commands that would help understanding the issue.

How did you create zdisk4 in the first place ?
How did you "promote the clone then the original volume becomes the dependent clone" ?
# 7  
Old 08-10-2009
Sorry for the delay following are the commands which i used for zdisk4 on my system let me know if you need more details on this

Code:
0# zpool history | grep zdisk4
2009-07-21.05:19:10 zfs create -V 30G newpool/ldom2/zdisk4
2009-08-05.03:03:56 zfs snapshot newpool/ldom2/zdisk4@bootimg
2009-08-05.03:08:03 zfs clone newpool/ldom2/zdisk4@bootimg newpool/ldom2/zdisk0
2009-08-05.06:33:55 zfs promote newpool/ldom2/zdisk4
2009-08-07.03:57:30 zfs promote newpool/ldom2/zdisk4
2009-08-07.04:40:53 zfs snapshot newpool/ldom2/zdisk4@boot


Previous Thread | Next Thread
Test Your Knowledge in Computers #59
Difficulty: Easy
A compiler is a software utility that translates a program written in high-level language into machine-level language.
True or False?

8 More Discussions You Might Find Interesting

1. Solaris

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. #zfs list -rt all /rpool/ai NAME ... (2 Replies)
Discussion started by: psychocandy
2 Replies

2. Solaris

How do I mount a ZFS snapshot?

I created a zpool and in it there is a zfs volume. I used that to backup data on another server using ISCSI. Now I have the data and want to take a snapshot so that I can view it on another machine that is not in production. Here is what I have done # zfs snapshot mat/vol_1@snap1 # zfs list -t... (6 Replies)
Discussion started by: SIFT3R
6 Replies

3. Solaris

zfs - get the name of the last snapshot

I have installed Solaris 11 Express on my server and want to set up automatic backuping using zfs snapshots. In the backup script I need to find out the name of the last snapshot of the given filesystem (in order to refer to it as the startpoint of an incremental backup). What is the best way to do... (4 Replies)
Discussion started by: RychnD
4 Replies

4. Solaris

ZFS snapshot query

I saved one of my zfs snapshot on the remote machine with following command. And now i want to restore the same snapshot to original server how can i receive it on the original server from backup server. #zfs send rpool/ROOT/sol10_patched@preConfig | ssh x.x.x.x zfs receive... (1 Reply)
Discussion started by: fugitive
1 Replies

5. Solaris

ZFS snapshot issue.

I 've a weired situation .. my system has zfs root as its file system and now root file system is full at 100% # zfs list NAME USED AVAIL REFER MOUNTPOINT rpool 134G 65.2M 94K /rpool rpool/ROOT ... (1 Reply)
Discussion started by: fugitive
1 Replies

6. Solaris

Need to take snapshot in solaris (using ZFS or ....)

Hi, I am working on Network Management Software product. This is supported both windows and solaris platform. I need to take the snapshot of the solaris server ( which installed our product), like vmware in windows. I think using ZFS files system, we can take the snapshot in solaris 10 but... (2 Replies)
Discussion started by: mgmk.84
2 Replies

7. UNIX for Advanced & Expert Users

Need to take snapshot in solaris (using ZFS or ....)

Hi, I am working on Network Management Software product. This is supported both windows and solaris platform. I need to take the snapshot of the solaris server ( which installed our product), like vmware in windows. I think using ZFS files system, we can take the snapshot in solaris... (1 Reply)
Discussion started by: mgmk.84
1 Replies

8. Linux

Howto clone/migrate a volume in the SAN

Dear Srs, I have a Linux server (linux01) booting from SAN with a volume in a Nexsan SATAbeast storage array (san01). The disk/volume has four ext3 partitions, total size is near to 400GB, but only 20-30GB are in use. I need to move this disk/volume to another Nexsan SATAbeast storage array... (0 Replies)
Discussion started by: Santi
0 Replies

Featured Tech Videos