Showing posts with label Lem. Show all posts
Showing posts with label Lem. Show all posts

Wednesday, September 16, 2009

Sun Cluster Data Service for ClearCase. Solaris

Mit trivialen Science-Fiction-Romanen hat "Solaris" nichts gemeinsam.
("Solaris" has nothing common with trivial Science-Fiction.)
Comment on German about Roman Solaris by Stanisław Lem

"Solaris" raises deep questions about science and the nature of human consciousness,
and lets the viewer draw his own conclusions.
MDb user comment about Film Solaris (1972) by Andrei Tarkovsky


I like Stanisław Lem's Solaris. Most of his Science-Fiction books I read already in late 80th on Russian. But Solaris did not impress me that time (I was 14). F.e. The Invincible was much more interesting for teen. Solaris really impressed me in 2002 when I read it the second time. Unfortunately it stayed my favorite Lem's book only for a little while. Because just after Solaris I read his philosophical essays "Summa Technologiae" and they secure the first position in my favorite books list. Written in 1964 "Summa" stays actual nowadays as never before. It is a big shame that English translation does not exist till now! There are only some chapters translated by Frank Prengel.

But back to Solaris. Sun Solaris I mean. Automation of Solaris OS installation was part of my job during last 8 year. Therefore I did not expect any difficulties with it. The only thing to pay attention is a disk layouts:
  • 32 Mb on root disk for Solaris Volume Manager replicas
  • 512 Mb /globaldevices slice
  • 2 Gb swap space (cluster software needs more swap)
I've put Solaris U7 DVD in karblade drive and ... faced the first problem. DVD drive does not work. I've seen the same situation a lot of times in the lab. What could you ever expect from optical drive that was not used for years? I did not want to plug it out and clean and decided to set up a boot and install server on my gentoo workstation. When I started with karu60, I realized that it was a correct choice - Ultra 60 has (I forget about) only CD-ROM drive.

The second problem I got was on-board Ethernet NIC on karu60. It is working but when I tried to use it as a boot device, strange error raised. Briefly search in Internet shows that it might be a corrupted EEPROM. Does not matter, I've plugged the cable in one of the Gigabit NIC and plugged it back after installation.

Operation system post configuration:
  1. Put missed entries in /etc/hosts (loghost entry should refer to local IP address)
  2. 192.168.10.41   karblade
    192.168.10.42   karu60
    192.168.10.46   karc-cc
    
  3. Prepare ssh inter connection on both machines
  4. root@[both]:/ # vi /etc/ssh/sshd_config (set PermitRootLogin yes)
    root@[both]:/ # svcadm refresh ssh
    root@[both]:/ # mkdir ~/.ssh
    root@[both]:/ # chmod 700 ~/.ssh
    root@[both]:/ # cd ~/.ssh
    
    on karblade
    root@karblade://.ssh # ssh-keygen -t dsa
    root@karblade://.ssh # cat id_dsa.pub > authorized_keys
    root@karblade://.ssh # chmod 600 authorized_keys
    root@karblade://.ssh # scp * karu60:/.ssh/
    
  5. Switch public network connection back to hme0 on karu60.
  6. root@karu60:/ # cd /etc
    root@karu60:/etc # mv hostname.ce1 hostname.hme0
    root@karu60:/etc # ifconfig hme0 plumb
    root@karu60:/etc # ifconfig ce1 unplumb
    (plug in public network patch cord back in on-board connector)
    root@karu60:/etc # ifconfig hme0 inet 192.168.10.42 netmask + broadcast + up
    Setting netmask of hme0 to 255.255.255.0
    root@karu60:/ # ping karblade
    karblade is alive
    
  7. Add entries in /etc/system on both hosts
  8. root@[both]:/ # cat <<EOS >> /etc/system 
    > set ce:ce_taskq_disable=1
    > exclude:lofs
    > set rstchown=0
    > EOS
    
  9. Disable nfs4 on both host
  10. root@[both]:/ # echo NFS_SERVER_VERSMAX=3 >> /etc/default/nfs
    
  11. Create Solaris Volume Manager replicas
  12. root@karblade:/ # metadb -af -c 3 c0t0d0s7
    root@karu60:/ # metadb -af -c 3 c0t0d0s7
    
  13. Set some environment variables.
  14. root@[both]:/ # cat <<EOP >> /etc/profile 
    > if [ -n "$PATH" ]; then
    >   PATH=/usr/cluster/bin:$PATH
    > else
    >   PATH=/usr/cluster/bin
    > fi
    > 
    > if [ -n "$MANPATH" ]; then
    >   MANPATH=/usr/cluster/man:$MANPATH
    > else
    >   MANPATH=/usr/cluster/man:/usr/man
    > fi
    > 
    > PAGER=less
    > export PATH MANPATH PAGER
    > EOP
    
  15. Reboot with reconfigure. (I've installed OS with StorEdge switched off. Now we need disk entries in devfs).
  16. root@[both]:/ # touch /reconfigure
    (switch StorEdge on)
    root@[both]:/ # init 6
    
  17. Check the disks
  18. root@karblade:/ # ls -la /dev/dsk/*s2
    lrwxrwxrwx   1 root     root          38 Sep 16 11:58 /dev/dsk/c0t0d0s2 -> ../../devices/pci@1f,0/ide@d/dad@0,0:c
    lrwxrwxrwx   1 root     root          37 Sep 16 11:58 /dev/dsk/c0t1d0s2 -> ../../devices/pci@1f,0/ide@d/sd@1,0:c
    lrwxrwxrwx   1 root     root          57 Sep 16 13:35 /dev/dsk/c3t1d0s2 -> ../../devices/pci@1f,0/pci@5/pci@1/SUNW,isptwo@4/sd@1,0:c
    lrwxrwxrwx   1 root     root          57 Sep 16 13:35 /dev/dsk/c3t4d0s2 -> ../../devices/pci@1f,0/pci@5/pci@1/SUNW,isptwo@4/sd@4,0:c
    
    root@karu60:/ # ls -la /dev/dsk/*s2
    lrwxrwxrwx   1 root     root          41 Sep 16 12:24 /dev/dsk/c0t0d0s2 -> ../../devices/pci@1f,4000/scsi@3/sd@0,0:c
    lrwxrwxrwx   1 root     root          41 Sep 16 12:24 /dev/dsk/c0t1d0s2 -> ../../devices/pci@1f,4000/scsi@3/sd@1,0:c
    lrwxrwxrwx   1 root     root          41 Sep 16 12:24 /dev/dsk/c0t6d0s2 -> ../../devices/pci@1f,4000/scsi@3/sd@6,0:c
    lrwxrwxrwx   1 root     root          43 Sep 16 13:36 /dev/dsk/c1t1d0s2 -> ../../devices/pci@1f,4000/scsi@3,1/sd@1,0:c
    lrwxrwxrwx   1 root     root          43 Sep 16 13:36 /dev/dsk/c1t4d0s2 -> ../../devices/pci@1f,4000/scsi@3,1/sd@4,0:c
    
Next: Sun Cluster Software Installation