Re: need help with understanding NIS and Installation of Solaris 10



learner wrote:
Hi there,
I am brand new with unix and Solaris 10. I have to start building up
server in a couple of months and I am preparing myself by reading and
getting as much resources as I can in order to do this job
successfully. My major concerns are
How do we mount a CDROM and LUN on Solaris 10?

Put the CDROM in the drive!

How do we copy data from old SAN to the new SAN array?

I just chucked a hand grenade into your computer room and scored a bullseye on the SAN. Where are your backup tapes? How would you restore them to your new SAN?

Sorry about your old SAN but you need to think about this sort of thing!

Step by step instructions on Solaris 10 installation?
Read relevant docs from docs.sun.com.

Think hard about how you want to partition your boot disk!!!! Here's how I set up a 20GB disk on an Ultra 10 running Solaris 10.
Part Tag Flag Cylinders Size Blocks
0 root wm 16543 - 38789 10.69GB (22247/0/0) 22424976
1 swap wu 0 - 2079 1023.75MB (2080/0/0) 2096640
2 backup wm 0 - 38789 18.64GB (38790/0/0) 39100320
3 var wm 2224 - 6384 2.00GB (4161/0/0) 4194288
4 unassigned wm 2081 - 2223 70.38MB (143/0/0) 144144
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 home wm 6385 - 16542 4.88GB (10158/0/0) 10239264

YMMV!!!! Slice 4 was intended to hold state databases if I ever get around to mirroring the disk. I would not allocate much less space to / and /var than that. Every patch and every O/S upgrade is going to nibble away at both / and /var. Be generous and save yourself the trouble of backing up the whole disk and repartitioning. Disk is cheap. An hour of your time probably costs your employer enough to buy an 80GB IDE disk or maybe even two!!!!!!

Insert first Solaris CD in drive
boot CDROM
Answer questions about node name, time zone, network stuff, etc. Wait. Insert additional CDs when called for.

how do we make user home directories to be on SAN array?
Don't know, never had a SAN I was allowed to play with.

How do I setup NIS and NFS?
Get a copy of Infodoc #?????? (I don't have the number handy) if you can find one, for NIS. If you can't find a copy (rare, out of print. . . ..), try this script:

#! /bin/sh -v
#
# Set up a YP master server
# Richard B. Gilbert
# 25-MAR-2004
#
# If all files from which NIS maps are to be made
# live in their default directories, simply execute
# this script to configure an NIS Master Server.
#
# For security reasons some sites prefer to use copies
# of the /etc/passwd and /etc/shadow files rather than
# the originals, in order to protect the root account.
# If you wish to do this, you must edit /var/yp/Makefile
# to specify the directory to specify PWDIR. Copy passwd
# and shadow to the chosen directory. Edit the copies to
# remove references to root and any other accounts which
# should not be available to NIS clients.
#
domainname $1
echo `domainname` >/etc/defaultdomain
cp /etc/nsswitch.files /etc/nsswitch.conf
/usr/sbin/ypinit -m # Should ask for addresses of slave servers
cp /etc/nsswitch.nis /etc/nsswitch.conf
# Start the NIS server.
/usr/lib/netsvc/yp/ypstart


That should set up your NIS/YP Master.

For an NIS client:
#!/bin/sh -v
#
# Set up an NIS client system. The domainname and the masterserver's name and
# IP address are passed as parameters.
#
# We use a modified version of /etc/nsswitch.files for nsswitch.conf.
# The passwd and group lines have been modified by appending " nis" and
# the hosts line has been modified by appending " dns". We copy the
# desired nsswitch.conf file from floppy disk.
#
domainname $1
echo `domainname` > /etc/defaultdomain
echo $2 >> /etc/inet/hosts
cp /etc/nsswitch.nis /etc/nsswitch.conf
#
# This bit matches the string contained in the second argument to this
# script in /etc/inet/hosts, extracts the second field, the hostname,
# and passes it via a pipe to ypinit.
#
/usr/sbin/ypinit -c `nawk "/$2/ {print \$2}" /etc/inet/hosts`
# Start the yp daemon.
/usr/lib/netsvc/yp/ypstart
#
# Done! Now verify that it works. This should output a list of
# all the NIS maps together with the name of the server each came
# from; e.g.
# mail.aliases thcmp01
# netid.byname thcmp01
# mail.byaddr thcmp01
# . . .
#
ypwhich -m

.



Relevant Pages

  • hai...find me a solution in M5000 server
    ... series server. ... B B B B B i want to do install one more solaris Over there. ... Solaris cannot see all drives on Areca RAID controller ... popped it (a single disk at this point) into machine1. ...
    (SunManagers)
  • Re: sunmanagers Digest, Vol 22, Issue 12
    ... series server. ... B B B B B i want to do install one more solaris Over there. ... Solaris cannot see all drives on Areca RAID controller ... popped it (a single disk at this point) into machine1. ...
    (SunManagers)
  • RE: sunmanagers Digest, Vol 20, Issue 34
    ... EMAIL SERVER SOFTWARE ... Solaris 8 to 9 upgrade problem with disk space ... My test device was not recognized as a disk in format, ... During the upgrade process installation I am always asked to provide ...
    (SunManagers)
  • Best Approach for migrating NIS from HPUX to Solaris
    ... We are planing to migrate the NIS environment running at our site from HPUX ... to Solaris 8, presently we are having a master server and three slave ...
    (SunManagers)
  • still need logdaemon?
    ... I've searched the Sun Mangers archives for this and spent considerable time ... I'm in the process of configuring a new Sun Fire v240 server running ... replacing an Ultra 5 running Solaris 2.6 serving the same purposes. ... NIS maps I want to restrict NIS logon on this server to myself and a couple ...
    (SunManagers)