Hi
Was having a play with creating pools and whilst trying to create a
mirror with two ide disks got the following:
paulj at opensolaris4:~$ pfexec zpool create newpool1 mirror c5d0 c5d1
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c5d0s0 is part of exported or potentially active ZFS pool
mypool1. Please see zpool(1M).
Looking at the disks available
paulj at opensolaris4:~$ pfexec format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c4d0 <DEFAULT cyl 5001 alt 2 hd 255 sec 63>
/pci at 0,0/pci-ide at 11,1/ide at 0/cmdk at 0,0
1. c5d0 <ST380011-5JVS7DE-0001-74.53GB>
/pci at 0,0/pci-ide at 11,1/ide at 1/cmdk at 0,0
2. c5d1 <ST380011-5JVS5GH-0001-74.53GB>
/pci at 0,0/pci-ide at 11,1/ide at 1/cmdk at 1,0
Specify disk (enter its number):
paulj at opensolaris4:~$ pfexec zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
rpool 36.2G 11.9G 24.4G 32% ONLINE -
paulj at opensolaris4:~$ pfexec zpool status mymirror1
cannot open 'mymirror1': no such pool
Or even:
paulj at opensolaris4:~$ pfexec zpool status
pool: rpool
state: ONLINE
status: The pool is formatted using an older on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
pool will no longer be accessible on older software versions.
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c4d0s0 ONLINE 0 0 0
errors: No known data errors
Any ideas about this mypool1 and how to kill it safely?
I used the -f option and created the pool successfully but am rather
curious.
The machine has been quite messed about and it's possible the disk c5d0
may have been used in another config.
Regards Paul