Today let’s deal with Solaris.
Unexpected problem happens today. the QA Server which should host an Oracle Instance for simulate parallel job processing is Hang neither too slow to response. We had to move the process on another server.
the problem is. I don’t have another server which is 500 Gb ready. the best I can give is a M4000 with internal 300Gb with Solaris. I had to run another FC cables , and mounting available LUN on SAN Storage to the that server.
Let’s skip with the wiring things.
here is the case : I had 1 M4000 with only 1 FC ports, on the other side I had 1 LUN 1.9 Tb Storages needed to mount. (fast, the DBA need it.)
lucky, I don’t need to deal with multipath today.
I’m gonna write how to mount the LUN to the Solaris.
1. First you have to make sure the FC connected.
you can find with luxadm – e port
root@cargo # luxadm -e port
if the it’s not connected please check the cables, or zoning.
another useful command on this ste
root@cargo # fcinfo hba-port -l |grep HBA
HBA Port WWN: 21000024ff0xxxxx
this is your server WWN
2. now let’s find the disk with
root@cargo # cfgadm -al
c1::201700a0b86e556e disk connected configured unknown
c1::203700a0b86e556e disk connected configured unknown
c1::206600a0b86e556e disk connected configured unknown
c1::208600a0b86e556e disk connected configured unknown
if the SAN Storage configured correctly you can see the disk in here.
(cmiiw) the command above show the devices connected in bus data.
please configure with this command if the state is not configured
cfgadm -c c1
3. now let’s configure the disk
on Solaris you need label it so the disk can be configured , we can configure it with format command
Searching for disks…done
c1t201700A0B86E556Ed31: configured with capacity of 16.00MB
c1t203700A0B86E556Ed31: configured with capacity of 16.00MB
c1t206600A0B86E556Ed1: configured with capacity of 1949.94GB
c1t206600A0B86E556Ed31: configured with capacity of 16.00MB
c1t208600A0B86E556Ed1: configured with capacity of 1949.94GB
c1t208600A0B86E556Ed31: configured with capacity of 16.00MB
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625> solaris
1. c0t1d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625> solaris
2. c1t201700A0B86E556Ed0 <IBM-1818 FAStT-0730 cyl 63637 alt 2 hd 255 sec 252> CARGOVG
3. c1t201700A0B86E556Ed1 <drive type unknown>
4. c1t201700A0B86E556Ed31 <IBM-UniversalXport-0730 cyl 8 alt 2 hd 64 sec 64>
5. c1t203700A0B86E556Ed0 <IBM-1818 FAStT-0730 cyl 63637 alt 2 hd 255 sec 252> CARGOVG
6. c1t203700A0B86E556Ed1 <drive type unknown>
7. c1t203700A0B86E556Ed31 <IBM-UniversalXport-0730 cyl 8 alt 2 hd 64 sec
Specify disk (enter its number):
pay attention on above.
the first bold line. it’s your information the storage found on server
the 2nd bold line. it’s the disk you will format. ( on my case, I labeled to CARGOVG)
now follow this step :
choose the Disk (on my case, 2 )
select type 19
Enter 8-character volume name (remember quotes)[“”]:”export”
Ready to label disk, continue? y
Saving new disk and partition definitions
Enter file name[“./format.dat”]:
4. now the last step. create new file system and mount it
find the path to the storage you format before,
and create the file system on the disk,
root@cargo # newfs /dev/rdsk/c1t202700A0B86E556Ed0s2
newfs: construct a new file system /dev/rdsk/c1t202700A0B86E556Ed0s2: (y/n)? y
/dev/rdsk/c1t202700A0B86E556Ed0s2: 4089313616 sectors in 1014215 cylinders of 16 tracks, 252 sectors
1996735.1MB in 6673 cyl groups (152 c/g, 299.25MB/g, 320 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 613152, 1226272, 1839392, 2452512, 3065632, 3678752, 4291872, 4904992,
Initializing cylinder groups:
super-block backups for last 10 cylinder groups at:
4083514656, 4084127776, 4084740896, 4085354016, 4085967136, 4086580256,
4087193376, 4087806496, 4088419616, 4089028640
the last let’s mount it.
add it on /etc/vfstab, so it will mount every time the server started
/dev/dsk/c1t202700A0B86E556Ed0s2 /dev/rdsk/c1t202700A0B86E556Ed0s2 /mnt/data ufs 1 yes logging
and mount it
your server is ready to go