I have a some experience on Linux and now I am learning Oracle Solaris. I installed Oracle Solaris 11.3 on the first partition sized 120G of 720G disk. After that I added second 720G disk and created the same partition table as on the first disk. Successfully attached first partition of second disk to mirror rpool.
Now I have to create second zpool for data on second partitions of disks. Please help me to do it. I reading Oracle docs many times but all information is about creating root zpool on the whole disk. I suppose I need to determine exact slice name or maybe to update disk VTOC labels. Another opinion - I am using linux way that wrong on Solaris and I have to resize first partition?
Another task is mounting new zpool to /export mountpoint.
Here is my disks:
# cfgadm -s "select=type(disk)"
Ap_Id Type Receptacle Occupant Condition
sata0/0::dsk/c2t0d0 disk connected configured ok
sata0/1::dsk/c2t1d0 disk connected configured ok
Here is my zpool:
# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 119G 21.1G 97.9G 17% 1.00x ONLINE -
# zpool status
pool: rpool
state: ONLINE
scan: resilvered 13.3G in 2m26s with 0 errors ...
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c2t0d0s0 ONLINE 0 0 0
c2t1d0s0 ONLINE 0 0 0
fdisk output of the second disk:
# fdisk -v -W - /dev/rdsk/c2t1d0p0
Total disk size is 45600 cylinders
Cylinder size is 32130 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 7832 7832 17
2 Solaris2 7833 45224 37392 82
Partition output of format command:
# format /dev/rdsk/c2t0d0p0
Part Tag Flag Cylinders Size Blocks
0 root wm 1 - 7831 119.98GB (7831/0/0) 251610030
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 7831 119.99GB (7832/0/0) 251642160
3 unassigned wu 0 0 (0/0/0) 0
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wu 0 0 (0/0/0) 0
8 boot wu 0 - 0 15.69MB (1/0/0) 32130
9 unassigned wu 0 0 (0/0/0) 0
# prtvtoc /dev/rdsk/c2t1d0p0 | tail -5
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 32130 251610030 251642159
2 5 01 0 251642160 251642159
8 1 01 0 32130 32129