[zfs-discuss] Creating zfs filesystem on a partition with ufs - Newbie

2006-12-06 Thread Ian Brown
Hello, 
I try to create a zfs file system according to 
Creating a Basic ZFS File System section of 
Creating a Basic ZFS File System document of SUN.

The problem is that the device has a ufs filesystem the partiotion
I am trying to work with; it is in fact empty and does not contain any 
file which I need.

So:

zpool create tank /dev/dsk/c1d0s6
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c1d0s6 contains a ufs filesystem.
/dev/dsk/c1d0s6 is normally mounted on /MyPartition according to 
  /etc/vfstab. Please remove this entry to use this device.

So I removed this entry from /etc/vfstab and also unmounted the
/MyPartition partition.

than I tried: 

zpool create -f tank /dev/dsk/c1d0s6
internal error: No such device
Abort (core dumped)

But:
 zpool list gives: 
NAMESIZEUSED   AVAILCAP  HEALTH ALTROOT
tank   1.94G   51.5K   1.94G 0%  ONLINE -

is there any reason for this internal error: No such device ?
Is there something wrong here which I should do in a different way ? 


from man zpool create -f
 The command  verifies  that  each  device  specified  is
 accessible  and  not currently in use by another subsys-
 tem. There  are  some  uses,  such  as  being  currently
 mounted, or specified as the dedicated dump device, that
 prevents a device from ever being  used  by  ZFS.  Other
 uses,  such as having a preexisting UFS file system, can
 be overridden with the -f option.
 ...
 ...
  -f

 Forces use of vdevs, even if they appear in  use  or
 specify  a  conflicting  replication  level. Not all
 devices can be overridden in this manner.

Ian
 
 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] Re: Creating zfs filesystem on a partition with ufs - Newbie

2006-12-06 Thread Ian Brown
Hello, 
Thanks.
Here is the needed info: 
zpool status
  pool: tank
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
tankONLINE   0 0 0
  c1d0s6ONLINE   0 0 0

errors: No known data errors

df -h returns:
FilesystemSize  Used Avail Use% Mounted on
/dev/dsk/c1d0s070G   59G   11G  85% /
swap  2.3G  788K  2.3G   1% /etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
   70G   59G   11G  85% /lib/libc.so.1
swap  2.3G   20K  2.3G   1% /tmp
swap  2.3G   32K  2.3G   1% /var/run
/dev/dsk/c1d0s7   251M  1.1M  225M   1% /export/home


prtvtoc /dev/dsk/c1d0s0 returns:
* /dev/dsk/c1d0s0 partition map
*
* Dimensions:
* 512 bytes/sector
*  63 sectors/track
* 255 tracks/cylinder
*   16065 sectors/cylinder
*9728 cylinders
*9726 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*  First SectorLast
* Partition  Tag  FlagsSector CountSector  Mount Directory
   0  2008787555 147460635 156248189   /
   1  301  48195   4096575   4144769
   2  500  0 156248190 156248189
   6  0004690980   4096575   8787554
   7  8004144770546210   4690979   /export/home
   8  101  0 16065 16064
   9  901  16065 32130 48194

I cannot destroy this pool; 
zpool destroy tank returns:
internal error: No such device
Abort (core dumped)
 

Regards,
Ian
 
 
This message posted from opensolaris.org
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss