We were rebuilding a server we'd moved two additional disks into the T3-1 to make a total of four.
The original two were configured as the root pool via Jumpstart.
Prior to releasing the server to the DBA team for their work we had to configure the second set of disks into another mirror for application install.
Only having done this once before I started off with the basics.
Does the server see the disks?
# format
AVAILABLE DISK SELECTIONS:
0. c0t5000C50031F8E1E7d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
/scsi_vhci/disk@g5000c50031f8e1e7
1. c0t5000C50031FC06C3d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
/scsi_vhci/disk@g5000c50031fc06c3
2. c0t5000C50031FC1377d0 <SEAGATE-ST930003SSUN300G-0B70-279.40GB>
/scsi_vhci/disk@g5000c50031fc1377
3. c0t5000C50031FC1577d0 <SEAGATE-ST930003SSUN300G-0B70-279.40GB>
/scsi_vhci/disk@g5000c50031fc1577
4 disks are seen - great! (If they weren't picked up I'm reliably informed that a devfsadm will do the trick..).
NOTE: To check which disks are already in a pool run:
# zfs list
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c0t5000C50031F8E1E7d0s0 ONLINE 0 0 0
c0t5000C50031FC06C3d0s0 ONLINE 0 0 0
First of all I tried the following
# zpool create pool2 c0t5000C50031FC1377d0 c0t5000C50031FC1577d0
/dev/dsk/c0t5000C50031FC1577d0s2 is part of exported or potentially active ZFS pool rpool
So I had to rerun with a -f (I know I could do this without causing any issues as I had taken the disks out of a server that had been decommissioned)
# zpool create -f pool2 c0t5000C50031FC1377d0 c0t5000C50031FC1577d0
# zpool status
pool: pool2
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
pool2 ONLINE 0 0 0
c0t5000C50031FC1377d0 ONLINE 0 0 0
c0t5000C50031FC1577d0 ONLINE 0 0 0
# zpool list
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
pool2 556G 94K 556G 0% ONLINE -
Which was great apart form I wanted a mirror configuration....
# zpool destroy pool2
# zpool create pool2 mirror c0t5000C50031FC1377d0 c0t5000C50031FC1577d0
# zpool status
pool: pool2
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
pool2 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c0t5000C50031FC1377d0 ONLINE 0 0 0
c0t5000C50031FC1577d0 ONLINE 0 0 0
# zpool list
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
pool2 278G 92.5K 278G 0% ONLINE -
Job done!
No comments:
Post a Comment