Asset ID: |
1-71-1943762.1 |
Update Date: | 2018-03-26 |
Keywords: | |
Solution Type
Technical Instruction Sure
Solution
1943762.1
:
How To replace a disk on Solaris 10 ZFS with STK Raid INT using Arcconf to re-create the Simple Volume
Related Categories |
- PLA-Support>Sun Systems>x86>Server>SN-x64: SERVER 64bit
|
In this Document
Applies to:
Sun Fire X4150 Server - Version Not Applicable to Not Applicable [Release N/A]
Information in this document applies to any platform.
Goal
Re-enable the disk under solaris OS creating a Simple Volume with the Arcconf
Solution
How To replace a disk on Solaris 10 ZFS with STK Raid INT when we need to recreate a Simple Volume
If you have a machine with the Raid controller STK Raid (SGXPCIESAS-R-INT-Z) we can use the Bios Utility to access to the controller or Use the Arcconf.
Normally the Arcconf is the best utility to avoid problems with the production . So if you need to get the tool , go to :
https://downloadcenter.intel.com/SearchResult.aspx?lang=&ProductID=2875&ProdId=2875
Sun StorageTek* RAID Manager for x86 Solaris* 10
Arcconf Manual :
https://docs.oracle.com/cd/E23383_01/html/820-2145-12/chapter2.html#0_25090
If you have already inserted the new disk into the machine , the controller can see the device but we still need to create the Logical Volume .
Solaris can see the disk only after the creation of the Simple Volume .
Ex.
In this situation we have replaced the disk c0t5d0 :
NAME STATE READ WRITE CKSUM
zpool DEGRADED 0 0 0
raidz1 DEGRADED 0 0 0
c0t1d0 ONLINE 0 0 0
c0t2d0 ONLINE 0 0 0
c0t3d0 ONLINE 0 0 0
c0t4d0 ONLINE 0 0 0
c0t5d0 UNAVAIL 6 2 0 experienced I/O failures =======================>>>>> Failed disk
spares
c0t6d0 AVAIL
After the previous check to the replacement , we have defined that the disk c0t5d0 is the disk in the slot 6
After the physical replacement the disk is no more longer visible under Solaris :
1|c0t0d0|sd1 |/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@0,0|STK RAID INT|Sun |V10 | | |EB24C725|DEFAULT cyl 17830 alt 2 hd 255 sec 63|2 |1 |22 |0 |0 |1 |0 |2 |
2|c0t1d0|sd2 |/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@1,0|STK RAID INT|Sun |V10 | | |CC02C925|Sun-STK RAID INT-V1.0-136.61GB |7 |1 |3 |0 |0 |1 |0 |7 |
3|c0t2d0|sd3 |/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@2,0|STK RAID INT|Sun |V10 | | |8246C925|Sun-STK RAID INT-V1.0-136.61GB |7 |1 |3 |0 |0 |1 |0 |7 |
4|c0t3d0|sd4 |/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@3,0|STK RAID INT|Sun |V10 | | |11AAD925|Sun-STK RAID INT-V1.0-136.61GB |7 |1 |3 |0 |0 |1 |0 |7 |
5|c0t4d0|sd5 |/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@4,0|STK RAID INT|Sun |V10 | | |FC02D925|Sun-STK RAID INT-V1.0-136.61GB |7 |1 |3 |0 |0 |1 |0 |7 |
6|c0t6d0|sd7 |/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@6,0|STK RAID INT|Sun |V10 | | |BEDAE925|Sun-STK RAID INT-V1.0-136.61GB |3 |0 |0 |0 |0 |0 |0 |3 |
c0::dsk/c0t0d0 connected configured unknown Sun STK RAID INT
unavailable disk n /devices/pci@0,0/pci8086,25f8@4/pci108e,286@0:scsi::dsk/c0t0d0
c0::dsk/c0t1d0 connected configured unknown Sun STK RAID INT
unavailable disk n /devices/pci@0,0/pci8086,25f8@4/pci108e,286@0:scsi::dsk/c0t1d0
c0::dsk/c0t2d0 connected configured unknown Sun STK RAID INT
unavailable disk n /devices/pci@0,0/pci8086,25f8@4/pci108e,286@0:scsi::dsk/c0t2d0
c0::dsk/c0t3d0 connected configured unknown Sun STK RAID INT
unavailable disk n /devices/pci@0,0/pci8086,25f8@4/pci108e,286@0:scsi::dsk/c0t3d0
c0::dsk/c0t4d0 connected configured unknown Sun STK RAID INT
unavailable disk n /devices/pci@0,0/pci8086,25f8@4/pci108e,286@0:scsi::dsk/c0t4d0
c0::dsk/c0t6d0 connected configured unknown Sun STK RAID INT
unavailable disk n /devices/pci@0,0/pci8086,25f8@4/pci108e,286@0:scsi::dsk/c0t6d0
So , now we need to check the STK Raid configuration :
./arcconf getconfig 1
Since the disk has not been initialized as Simple Volume , you can't see any logical drive with the disk replaced but you can find it as Physical Device
Device #6
Device is a Hard drive
State : Ready
Supported : Yes
Transfer Speed : SAS 3.0 Gb/s
Reported Channel,Device : 0,6
Reported Location : Enclosure 1, Slot 6
Reported ESD : 2,1
Vendor : HITACHI
Model : H103014SCSUN146G
Firmware : A2A8
Serial number : 000941FWPPKE PCVWPPKE
World-wide name : 5000CCA00A325DDB
Size : 140009 MB
Write Cache : Unknown
FRU : None
S.M.A.R.T. : No
Now you need to create the Simple Volume with the command below :
# ./arcconf create 1 logicaldrive max volume 0,6
And, this is the result :
Logical device number 5
Logical device name : Device 5
RAID level : Simple_volume
Status of logical device : Optimal
Size : 139890 MB
Read-cache mode : Enabled
Write-cache mode : Enabled (write-back)
Write-cache setting : Enabled (write-back)
Partitioned : No
Protected by Hot-Spare : No
Bootable : No
Failed stripes : No
--------------------------------------------------------
Logical device segment information
--------------------------------------------------------
Segment 0 : Present (0,6) 000941FWPPKE PCVWPPKE
In our case we need to change the logical device name and the configuration of the write cache to have the same with the other disks like the example here below:
arcconf setname 1 logicaldrive 5 01-02
arcconf setcache 1 logicaldrive 5 wbb ( you can choose between wt/wb/wbb )
Now we have a clean situation with the New Simple Volume created :
Logical device number 5
Logical device name : 01-02
RAID level : Simple_volume
Status of logical device : Optimal
Size : 139890 MB
Read-cache mode : Enabled
Write-cache mode : Disabled (write-through)
Write-cache setting : Enabled (write-back) when protected by battery
Partitioned : No
Protected by Hot-Spare : No
Bootable : No
Failed stripes : No
--------------------------------------------------------
Logical device segment information
--------------------------------------------------------
Segment 0 : Present (0,6) 000941FWPPKE PCVWPPKE
And now Solaris can show the disk :
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 17830 alt 2 hd 255 sec 63>
/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@0,0
1. c0t1d0 <Sun-STK RAID INT-V1.0-136.61GB>
/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@1,0
2. c0t2d0 <Sun-STK RAID INT-V1.0-136.61GB>
/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@2,0
3. c0t3d0 <Sun-STK RAID INT-V1.0-136.61GB>
/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@3,0
4. c0t4d0 <Sun-STK RAID INT-V1.0-136.61GB>
/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@4,0
5. c0t5d0 <Sun-STK RAID INT-V1.0-136.61GB>
/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@5,0
6. c0t6d0 <Sun-STK RAID INT-V1.0-136.61GB>
/pci@0,0/pci8086,25f8@4/pci108e,286@0/sd@6,0
Now you can proceed with:
zpool replace zpool c0t5d0
If you receive an error, please check the partition table of the disk . In this situation the disk should have the same partition of the other disks.
Note : this procedure is valid also for Linux systems where you can use the Arcconf .
Attachments
This solution has no attachment