ZFS Slice disk


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS Slice disk
# 1  
Old 04-29-2015
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:
Code:
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:
Code:
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?
# 2  
Old 04-29-2015
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) :
Code:
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.
# 3  
Old 04-29-2015
I thought using format. Because when i use format and slice same disk, i got error no datasets available.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Trying to create ZFS slice on rpool

I have a 240GB disk as rpool. I have installed Solaris 11.3 to a partition which is 110GB. Now I have another 130GB which is unallocated. I want to use that additional space as a temporary folder to be shared between Solaris and Linux. The additional space had no /dev/dsk/c2t4... entry so I used... (8 Replies)
Discussion started by: kebabbert
8 Replies

2. Solaris

Trouble creating a disk partition slice (EFI)

Hi all, I am using SPARC Solaris 11.1 with EFI labelled disks. I am new to ZFS file systems and slightly stuck when trying to create a partition (slice) on one of my LUNs. EFI labels use sectors and blocks and I am not sure how exactly it works. From here I can try and create a... (2 Replies)
Discussion started by: selectstar
2 Replies

3. Solaris

ZFS - whole disk Vs slice

we have a ZFS file system that was created as a pool of just one disk (raid on a SAN) when this was created it was done as a whole disk, and so EFI label. now we want to mount this file system into an LDOM. my understanding of how ldom's and disk works this is that we can only do this as a... (1 Reply)
Discussion started by: robsonde
1 Replies

4. Solaris

label a slice on disk erorr

Hi there, I am trying to do root volume mirroring on SunFire V210 server. I have two disks in it.First one is c1t0do and second one is c1t1do. Both disks already have partitions in them so I am deleting the partitions of second disk(c1t1do) using format command and selecting cylinder start 0... (2 Replies)
Discussion started by: newbi8321
2 Replies

5. Shell Programming and Scripting

Looking for help with script to assign all disk space to slice#0 on multiple disks of varying sizes

Hi Folks, I am trying to make a script to assign all diskspace to slice 0, on multiple sized disks. Since the disks are new they may need to be labelled also to avoid the error: Cannot get disk geometry Below is my code struggling with logic which doesn't seem to be producing the desired... (0 Replies)
Discussion started by: momin
0 Replies

6. UNIX for Dummies Questions & Answers

Does formatting slice 2 (backup) destroy disk geometry?

I am a new Unix Sys Admin who is learning mostly from books with minimal classroom training (ie: no certificates, training is largely hands-on, conducted at work). I work with Solaris 8 through 10, and with some fairly outdated hardware. In my work restoring old workstations I have been instructed... (2 Replies)
Discussion started by: mia-chan
2 Replies

7. Solaris

Ways to analyse root disk slice

Hi, Recently I faced with need of analyze root disk. I figured out two possible ways to do it: 1. Practical. Boot from CD and run format 2. Theoretical. Create live upgrade boot environment on another disk, activate it, reboot, unmont all root disk partitions and run format. I've already... (3 Replies)
Discussion started by: Sapfeer
3 Replies

8. Solaris

zfs mirror disk

Is it possible to create a Mirror with zfs ?? I'm experimented user with Solstice Disk suite. Or Sun Volume manager or veritas volume manager. But, i would like switch from Disksuite to Zfs. All my mirrored disks. (1 Reply)
Discussion started by: simquest
1 Replies

9. Solaris

mirroring the boot slice (slice 8) on x86

Hi there I am about to mirror a Solaris 10 x86 box (SunFire X4100) onto a secondary disk using svm (current system is one disk). My question is this, on X86 boxes there is a slice 8 defined as boot partition (and also a slice 9, dunno what its used for tho). Do I need to mirror this boot slice... (0 Replies)
Discussion started by: hcclnoodles
0 Replies
Login or Register to Ask a Question