ZFS - Dataset / pool name are the same...cannot destroy


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS - Dataset / pool name are the same...cannot destroy
# 1  
Old 06-18-2012
Error ZFS - Dataset / pool name are the same...cannot destroy

I messed up my pool by doing zfs send...recive So I got the following :

zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 928G 17.3G 911G 1% 1.00x ONLINE -
tank1 928G 35.8G 892G 3% 1.00x ONLINE -

So I have "tank1" pool.

zfs get all tank1
NAME PROPERTY VALUE SOURCE
tank1 type volume -

Haa...I also have "tank1" as a volume....

So I wanted to delete the volume :

zfs destroy tank1
cannot destroy 'tank1': dataset already exists

So let me delete the pool...Please...

zpool destroy tank1
cannot open 'tank1': operation not applicable to datasets of this type

Another try : (just want to rename...)

zfs rename tank1 tank1/kuku
cannot create 'tank1/kuku': parent is not a filesystem

So how can I resolve this issue ?
# 2  
Old 06-18-2012
Try
Code:
zpool export tank1
zpool import tank1 new_name

# 3  
Old 06-18-2012
This is what I am getting :

zpool export tank1
zpool import tank1 kuku
Assertion failed: !ZFS_IS_VOLUME(zhp), file ../common/libzfs_mount.c, line 446, function zfs_share
Abort (core dumped)
# 4  
Old 06-18-2012
Try create new zpool using disks from "tank1" with:
Code:
zpool create -f new_pool disks

# 5  
Old 06-18-2012
Thanks, but I am still getting :

zpool create -f tank1 mirror c1t50000F000B114807d0 c1t50000F000B114817d0
invalid vdev specification
the following errors must be manually repaired:
/dev/dsk/c1t50000F000B114807d0s0 is part of active ZFS pool kuku. Please see zpool(1M).
# 6  
Old 06-18-2012
OK, so try zpool export kuku first, then zpool create.
# 7  
Old 06-18-2012
Sorry I didn'nt understand your last message.

I tried again :

root@storage01:~# zfs destroy kuku
cannot destroy 'kuku': dataset already exists
root@storage01:~# zpool destroy kuku
cannot open 'kuku': operation not applicable to datasets of this type

So inspite the fact that the name was changed the OS still one time thinks that the object is a volume and one time is a pool.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Need to remove a disk from zfs pool

I accidently added a disk in different zpool instead of pool, where I want. root@prtdrd21:/# zpool status cvfdb2_app_pool pool: cvfdb2_app_pool state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM cvfdb2_app_pool ONLINE 0 0 0... (1 Reply)
Discussion started by: solaris_1977
1 Replies

2. BSD

Unable to create zfs zpool in FreeBSD 8.2: no such pool or dataset

I am trying to test simple zfs functionality on a FreeBSD 8.2 VM. When I try to run a 'zpool create' I receive the following error: # zpool create zfspool /dev/da0s1a cannot create 'zfspool': no such pool or dataset # zpool create zfspool /dev/da0 cannot create 'zfspool': no such pool or... (3 Replies)
Discussion started by: bstring
3 Replies

3. Solaris

reassign zfs pool lun

I have a branded zone txdjintra that utilizes a pool named Pool_djintra that is no longer required. There is a 150 Gig Lun assigned to the pool that I need to reassign to another branded zone txpsrsrv07 with a pool named Pool_txpsrsrv07 on the same sun blade. What is the process to do this? ... (0 Replies)
Discussion started by: jeffsr
0 Replies

4. Solaris

ZFS - overfilled pool

installed Solaris 11 Express on my server machine a while ago. I created a Z2 RAID over five HDDs and created a few ZFS filesystems on it. Once I (unintentionally) managed to fill the pool completely with data and (to my surprise) the filesystems stopped working - I could not read/delete any... (3 Replies)
Discussion started by: RychnD
3 Replies

5. Solaris

flarecreate for zfs root dataset and ignore multiple dataset

Hi All, I want to write a script to create flar images on multiple servers. In non zfs filesystem I am using -X option to refer a file to exclude mounts on different servers. but on ZFS -X option is not working. I want multiple mounts to be ignore on ZFS base system during flarecreate. I... (0 Replies)
Discussion started by: uxravi
0 Replies

6. Solaris

Best way to rename a ZFS Pool?

Other than export/import, is there a cleaner way to rename a pool without unmounting de FS? Something like, say "zpool rename a b"? Thanks. (2 Replies)
Discussion started by: verdepollo
2 Replies

7. Solaris

zfs pool migration

I need to migrate an existing raidz pool to a new raidz pool with larger disks. I need the mount points and attributes to migrate as well. What is the best procedure to accomplish this. The current pool is 6x36GB disks 202GB capacity and I am migrating to 5x 72GB disks 340GB capacity. (2 Replies)
Discussion started by: jac
2 Replies

8. Solaris

ZFS pool question

I created a pool the other day. I created a 10 gig files just for a test, then deleted it. I proceeded to create a few files systems. But for some reason the pool shows 10% full, but the files systems are both at 1%? Both files systems share the same pool. When I ls -al the pool I just... (6 Replies)
Discussion started by: mrlayance
6 Replies

9. Infrastructure Monitoring

zfs - migrate from pool to pool

Here are the details. cnjr-opennms>root$ zfs list NAME USED AVAIL REFER MOUNTPOINT openpool 20.6G 46.3G 35.5K /openpool openpool/ROOT 15.4G 46.3G 18K legacy openpool/ROOT/rds 15.4G 46.3G 15.3G / openpool/ROOT/rds/var 102M ... (3 Replies)
Discussion started by: pupp
3 Replies

10. Solaris

ZFS Pool Mix-up

Hi all I plan to install Solaris 10U6 on some SPARC server using ZFS as root pool, whereas I would like to keep the current setup done by VxVM: - 2 internal disks: c0t0d0 and c0t1d0 - bootable root-volume (mirrored, both disks) - 1 non-mirrored swap slice - 1 non-mirrored slices for Live... (1 Reply)
Discussion started by: blicki
1 Replies
Login or Register to Ask a Question