Changing the WWN on a SPARCstorage Array
There are times when it is advantageous to change the World-Wide Number (WWN) for a particular SPARCstorage Array (SSA), such as after replacing the array controller.
Until the release of Solaris 2.4 HW 3/95 this entailed a delicate sequence of steps to modify the device tree enough to recognize the new array controller, download the old address and then restore the original devices and links to the array disks.
Now that the SSA drivers are bundled in the O/S (Sol2.4 3/95 and higher), this operation can be completed much more easily using the cdrom shell. The only difficulties are obtaining the old WWN and the fact that the cdrom shell does not include the ssaadm(1M) or ssacli(1M) utilities. Not to worry, we can do this.
UPDATE: As of Solaris 2.5 HW 1/96 and Solaris 2.5.1, the
ssaadm commandis available in the cdrom shell in /usr/sbin. If booted from these releases of the O/S, you no longer need to mount /usr or /opt to gain access to these tools. You will still need to mount / if you do not know the old WWN for the SSA.
- Boot from the cdrom and mount O/S
ok> boot cdrom -sw ; boot the single-user cdrom shell # mount -o ro /dev/dsk/c0t0d0s0 /a ; provides RO access to rootNOTE:
- In the case of a single large / (no separate /usr, /opt, etc) this is all you need to mount. Otherwise, also mount 'usr' and 'opt' on /a/usr and /a/opt. Use the /a/etc/vfstab for reference.
- Use of the "-o ro" mount will prevent superblock consistency problems in the case of mirrored system disks.>
- Obtain the old WWN value.
List one (any one) of the disks in the storage array. For example:
# cd /a/dev/rdsk # ls -l c2t1d3s0In this example, the "c2" is the OLD controller. You will get an output that looks like the following:
lrwxrwxrwx 1 root root 94 Mar 19 10:28 c2t1d3s0 -> ../../devices/iommu@0,10000000/sbus@0,10001000/SUNW,soc@2,0/ SUNW,pln@a0008000,78cf18/ssd@1,3:a ^^^^ ^^^^^^ xxxx yyyyyyThe WWN is 12 digits long, and is in the form xxxx00yyyyyy. The 4 characters immediately before the comma are the first 4 characters of the WWN. The 6 numbers after the comma are the last 6 digits of the WWN. Place two zeros between these values. For the above example, the WWN would be
- Locate the new array controller.
# ls -l /dev/dsk/c*t0d0s2 | grep NWWNwhere NWWN is the four digits appearing in the SSA display a match will come from controller N
- Download the old address to the new controller.
# /a/opt/SUNWssa/bin/ssacli -s -w 80000078cf18 download cNOR
# /a/usr/sbin/ssaadm download -w 80000078cf18 cNUPDATE: If booting from Solaris 2.5 HW 1/96 or higher
# /usr/sbin/ssaadm download -w 80000078cf18 cN
- Reset the system.
# umount <anything mounted under /a> # haltThe old school of thought was that pushing Reset on the back of the SSA would be sufficient at this point. However, experience has proven that the best way to assure that the change has registered is to power cycle the array. Therefore, please power cycle the array at this point.
ok> bootThis should NOT require a reconfiguration, and should have you right back where you started before the SSA controller was replaced.