Tag Archives: create

Create a Storage Pool

This will create a pool named “gpool” using RAIDZ (raid5) with member drives  c8t1d0 c8t2d0 c8t3d0 c8t4d0 c8t5d0

[email protected]erver:~# zpool create gpool raidz c8t1d0 c8t2d0 c8t3d0 c8t4d0 c8t5d0
[email protected]:~# zpool status
pool: gpool
state: ONLINE
scrub: none requested
config:

NAME        STATE     READ WRITE CKSUM
gpool       ONLINE       0     0     0
raidz1    ONLINE       0     0     0
c8t1d0  ONLINE       0     0     0
c8t2d0  ONLINE       0     0     0
c8t3d0  ONLINE       0     0     0
c8t4d0  ONLINE       0     0     0
c8t5d0  ONLINE       0     0     0

errors: No known data errors

pool: rpool
state: ONLINE
scrub: none requested
config:

NAME        STATE     READ WRITE CKSUM
rpool       ONLINE       0     0     0
c8t0d0s0  ONLINE       0     0     0

errors: No known data errors
[email protected]:~#

OK.

How to view available SATA hard drives

You will be able to view hardware ID’s for hard drives using ‘format’

Giovann[email protected]:~# format
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c8t0d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 252>
/[email protected],0/pci15d9,[email protected],2/[email protected],0
1. c8t1d0 <ATA-Hitachi HDS72202-A3EA-1.82TB>
/[email protected],0/pci15d9,[email protected],2/[email protected],0
2. c8t2d0 <ATA-Hitachi HDS72202-A28A-1.82TB>
/[email protected],0/pci15d9,[email protected],2/[email protected],0
3. c8t3d0 <ATA-Hitachi HDS72202-A3EA-1.82TB>
/[email protected],0/pci15d9,[email protected],2/[email protected],0
4. c8t4d0 <ATA-Hitachi HDS72202-A3EA-1.82TB>
/[email protected],0/pci15d9,[email protected],2/[email protected],0
5. c8t5d0 <ATA-Hitachi HDS72202-A3EA-1.82TB>
/[email protected],0/pci15d9,[email protected],2/[email protected],0
Specify disk (enter its number):

Hard drives are located on /dev/dsk in Opensolaris. Compare to the zpool status and add drives that are new to the system (not yet in any storage pools)