ZFS Slice disk

Hi,

How to to make a slice and define as ufs from zpool? Please advice me.

Thanks.

---------- Post updated at 01:53 AM ---------- Previous update was at 12:24 AM ----------

Before slice:

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0                0         (0/0/0)             0
  1       swap    wu       0                0         (0/0/0)             0
  2     backup    wu       0 - 14086      136.71GB    (14087/0/0) 286698624
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6        usr    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0

After slice:

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0                0         (0/0/0)             0
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wm       0 - 14086      136.71GB    (14087/0/0) 286698624
  3 unassigned    wm       0 -  4121       40.00GB    (4122/0/0)   83890944
  4 unassigned    wm    4122 -  6182       20.00GB    (2061/0/0)   41945472
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm    6183 - 14086       76.71GB    (7904/0/0)  160862208
  7 unassigned    wm       0                0         (0/0/0)             0

Then i got error no datasets available. Any idea what wrong?

You want to make a slice from disk and create zpool and UFS filesystem on separate slices same disk ?

When creating zpool or UFS filesystem/metadevice you will use /dev/dsk/cxtxdxs3 (40 GB slice from example below, but starting from 1 not 0)
You can use all eight, just make sure they don't overlap or start from 0.

For instance (after the slice is properly created) :

zpool create mypool cxtxdxs3

or in case UFS just create a filesystem over a desired slice using /dev/rdsk/cxtxdxs3 and newfs with options you require, but you are better use Solaris SVM if you will use UFS (you will find that fairly well documented)
Above is a non redundant configuration.

Be sure to mirror either using another disk same sized slice for zpool and/or solaris SVM, since if that disk dies all is lost,if it is not externally redundant lun from storage.

Disk should not be in use before these actions (format should warn if parts or whole disk is used by zpools or metadbs), since you will lose the layout and probably data.

Regards
Peasant.

I thought using format. Because when i use format and slice same disk, i got error no datasets available.