On Thu, 2007-06-21 at 06:16 -0700, satish s nandihalli wrote:
> Part      Tag    Flag     Cylinders         Size            Blocks
> 7       home    wm    3814 - 49769       63.11GB    (45956/0/0) 132353280
> 
> --- If i run the command zpool create <pool name>  <7th slice> (shown
> above which is mounted as home), will it cause any harm to the
> existing contents in home.

If you use "zpool create -f <pool name> <7th slice>", yes, it'll destroy
the filesystem that's on that slice and you won't be able to access any
of the data presently on it.

If you do "zpool create pool <7th slice>"

where <slice> has a UFS filesystem, and is mounted, it should print an
error message, saying that

a) there's a filesystem present
b) it's mounted

 - so you need to unmount it, and use the -f flag.

        cheers,
                        tim

In more detail:

(snip newfs of c2t1d0s1 to put a UFS filesystem on it)

# mount /dev/dsk/c2t1d0s1 /tmp/a
# zpool create pool c2t1d0s1
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c2t1d0s1 is currently mounted on /tmp/a. Please see umount(1M).
# umount /tmp/a
#  zpool create pool c2t1d0s1
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c2t1d0s1 contains a ufs filesystem.
# zpool create -f pool c2t1d0s1
# 

-- 
Tim Foster, Sun Microsystems Inc, Solaris Engineering Ops
http://blogs.sun.com/timf

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to