Overview:
- Two Sun Fire V240 servers are present.
Server Hostnames
· RADBAN1
· RADBAN2
Both nodes have the same configuration one will be active server & other will be passive for Redundant purpose.
- Two Radware switches are there. Its active-passive configuration.
Server Configuration:
- O.S solaris 9/05
- HDD 73 x 2 SCSI
- Processor 2
Network:
- IPMP configured in bge0 & bge1
- Static routes have been added in /etc/init.d/inetinit.
- Bharat network is connected in bge2 & bge3.
RAID:
RAID 1 (Root-mirroring have been configured)
Procedures to install the O.S:
- Insert the OS media in the CDROM and type boot cdrom from ok prompt.
- partition details should be
Slice details:
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 2060 10.00GB (2061/0/0) 20972736
1 swap wu 2061 - 3709 8.00GB (1649/0/0) 16780224
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 3710 - 5358 8.00GB (1649/0/0) 16780224
4 unassigned wm 5359 - 14013 42.00GB (8655/0/0) 88073280
5 unassigned wu 0 0 (0/0/0) 0
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wm 14014 - 14034 104.34MB (21/0/0) 213696
partition>
(slice7 don’t create filesystem as it is used for metadb )
Bge0 ip: RADBAN2 192.168.1.2
Netmask: 255.255.255.0
Gateway: 192.168.1.254
Install The latest patch:
- cd /cdrom/eid-dvd
- cd sun
- cd install
- ./setup-standard.sh - follow the wizard
- cd ..
- cd patch
- cd 9
- /opt/sun/bin/unpack-patches /var
- eject the media
- init 1
- cd /var/9
- ./install_all_patches.
Ip configuration.
# ifconfig bge1 plumb
# ifconfig bge2 plumb
# ifconfig bge3 plumb
# vi /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.1.2 RADBAN2 loghost
192.168.1.20 RADBAN2-bge0
192.168.1.21 RADBAN2-bge1
10.89.15.44 RADBAN2-bge2
10.89.15.46 RADBAN2-bge3
IPMP Configuration:
# vi /etc/hostname.bge0
RADBAN2 netmask + broadcast + group ipmp0 up \
addif RADBAN2-bge0 deprecated -failover netmask + broadcast + up
# vi /etc/hostname.bge1
RADBAN2-bge1 deprecated -failover netmask + broadcast + group ipmp0 up
# vi /etc/hostname.bge2
RADBAN2-bge2
# vi /etc/hostname.bge3
RADBAN2-bge3
# vi /etc/defaultrouter
192.168.1.254
# vi /etc/netmasks
10.89.0.0 255.255.255.0
192.168.0.0 255.255.255.0
# vi /etc/init.d/inetinit
#Static routes
route add net 100.1.0.0 10.89.15.33
route add host 10.89.15.40 192.168.1.254
route add host 10.89.15.41 192.168.1.254
route add host 10.89.15.42 192.168.1.254
route add net 10.89.0.0 10.89.15.33
route add host 100.1.200.99 10.89.15.33
route add host 10.151.1.26 10.89.15.33
route add host 10.151.1.18 10.89.15.33
route add net 10.64.12.0 10.89.15.33
route add net 10.2.10.0/24 10.89.15.33
route add net 10.89.15.0/27 10.89.15.37
route add net 10.2.94.0/24 10.89.15.33
route add net 10.133.32.0/24 10.89.15.33
RAID CONFIGURATION:
Root mirroring:
Both the HDD should have same partition details so copy the prtvtoc from 1st HDD to 2nd HDD.
# prtvtoc /dev/rdsk/c1t0d0s2 fmthard –s - /dev/rdsk/c1t1d0s2
Create metadb and start root mirroring:
- # metadb -afc3 /dev/dsk/c1t0d0s7 /dev/dsk/c1t1d0s7
- # metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c1t0d0s7
a p luo 8208 8192 /dev/dsk/c1t0d0s7
a p luo 16400 8192 /dev/dsk/c1t0d0s7
a p luo 16 8192 /dev/dsk/c1t1d0s7
a p luo 8208 8192 /dev/dsk/c1t1d0s7
a p luo 16400 8192 /dev/dsk/c1t1d0s7
Defining meta devices
- Root slice
# metainit –f d10 1 1 c1t0d0s0
# metainit –f d20 1 1 c1t1d0s0
# metainit d30 –m d10
Swap
# metainit –f d11 1 1 c1t0d0s1
# metainit –f d21 1 1 c1t1d0s1
# metainit d31 –m d11
/var
# metainit –f d13 1 1 c1t0d0s3
# metainit –f d23 1 1 c1t1d0s3
# metainit d33 –m d13
/opt
# metainit –f d14 1 1 c1t0d0s4
# metainit –f d24 1 1 c1t1d0s4
# metainit d34 –m d14
# metaroot d30 (edits vfstab & system files automatically)
Before rebooting edit vfstab as:
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d31 - - swap - no -
/dev/md/dsk/d30 /dev/md/rdsk/d30 / ufs 1 no -
/dev/md/dsk/d33 /dev/md/rdsk/d33 /var ufs 1 no -
/dev/md/dsk/d34 /dev/md/rdsk/d34 /opt ufs 2 yes -
swap - /tmp tmpfs - yes
One way mirroring is over now so we have to reboot now.
# lockfs -fa
# sync;sync;sync;
# init 6
Now the system should come up with metadevices (/dev/md/d30 / )
Then attach the sub-mirrors to the respective main mirror.
# metattach d30 d20
# metattach d31 d21
# metattach d33 d23
# metattach d34 d24
Install the boot block in 2nd HDD too
# installboot /usr/platform/sun4u/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0
· Change the boot-device as disk, disk1 in ok prompt .
· Change use-nvramrc? True
· Boot the server normally