After the Solaris 10 install on the E3000 we need to do a few things to get a somewhat functional system. During the install I've allowed all network services to be open. The E3000 is hidden away on a firewalled LAN.
Creating users in Solaris 10 is easey
# useradd -m -G users USERNAME (replace USERNAME with your username)
This will have a whinge as /home is controlled by the automounter and is not a "real" directory. Create the real user home directory ready for the automounter
# mkdir /export/home/USERNAME # chown USERNAME:GROUP /export/home/USERNAME
As per normal replace USERNAME and GROUP with real entry's Configure the automounter to pick up your new user. Yes you can disable the automounter for /home, lets just assume your really going to use this as networked system! Edit the file :
Do the following changes :-
* Comment out the line "+auto_home" * Add this "USERNAME HOSTNAME:/export/home/USERNAME
Now make the automouter reread its config :
# automount -v
You can now log in as that use or add more.
Time to add some more disks!
Since I added the disks after the install I need to make soalris rescan its H/W and update the /dev tree :
# devfsadm -vC
Use the "format" command to make sure we can see new disks. Unformated/Unlabed disks will appear at the top. You can also search the path /dev/dsk. Lets try the format command :
# format Searching for disks...donec0t1d0: configured with capacity of 16.95GB c0t14d0: configured with capacity of 16.95GB c0t15d0: configured with capacity of 16.95GBAVAILABLE DISK SELECTIONS: 0. c0t0d0 COMPAQ-BD01864552-3B07 cyl 6999 alt 2 hd 20 sec 254 /sbus@3,0/SUNW,fas@3,8800000/sd@0,0 1. c0t1d0 COMPAQ-BD01864552-3B07 cyl 6999 alt 2 hd 20 sec 254 /sbus@3,0/SUNW,fas@3,8800000/sd@1,0 2. c0t3d0 SUN18G cyl 7506 alt 2 hd 19 sec 248 /sbus@3,0/SUNW,fas@3,8800000/sd@3,0 3. c0t14d0 COMPAQ-BD01864552-3B07 cyl 6999 alt 2 hd 20 sec 254 /sbus@3,0/SUNW,fas@3,8800000/sd@e,0 4. c0t15d0 COMPAQ-BD01864552-3B07 cyl 6999 alt 2 hd 20 sec 254 /sbus@3,0/SUNW,fas@3,8800000/sd@f,0
As you can see disk c0t1d0, c0t14d0, c0t15d0 are all unknown to the install. c0t1d0, holds my Gentoo install so i know c0t14d0, c0t15d0 are the two new disks.
Or you can view the /dev/dsk tree :
# ls -la /dev/dsk __SNIP__ lrwxrwxrwx 1 root root 50 Mar 16 18:01 c0t14d0s1 -> ../../devices/sbus@3,0/SUNW,fas@3,8800000/sd@e,0:a lrwxrwxrwx 1 root root 50 Mar 16 18:01 c0t15d0s1 -> ../../devices/sbus@3,0/SUNW,fas@3,8800000/sd@f,0:a __SNIP__
So much nicer don't you think!
Format and the new disks and remove any un-needed partitions. Some knowledge on how solaris "format" works here is assumed, if not read the MAN page.. works for me!
Syntax is :
# format format format format p partition p
Check now for any useless partitions and remove :
partition 1 partition m 0
With your partions done, its time to move to ZFS.
So lets create a new ZFS pool with the two spare disks :
# zpool create store c0t14d0s1 c0t15d0s1
Note the above will create "Raid 0" like pool, For its purpose I don't care. My root volume is in mirror. Check it :
# zpool status pool: boot_vol state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM boot_vol ONLINE 0 0 0 mirror ONLINE 0 0 0 c0t0d0s0 ONLINE 0 0 0 c0t3d0s0 ONLINE 0 0 0 errors: No known data errors pool: store state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM store ONLINE 0 0 0 c0t14d0s1 ONLINE 0 0 0 c0t15d0s1 ONLINE 0 0 0 errors: No known data errors
Now we need to create a ZFS file-system on the new pool.
# zfs create store/store (You can call this what ever you like)
check to see if its mounted, it should auto mount if all is good :
# df -h
Now so hard to add a ZFS pool.
Non Sun apps
# pkgadd -d http://blastwave.network.com/csw/pkgutil_`/sbin/uname -p`.pkg
Select "all" when prompted Select "y" when prompted
# mkdir /etc/opt/csw # cp -p /opt/csw/etc/pkgutil.conf.CSW /etc/opt/csw/pkgutil.conf # /opt/csw/bin/pkgutil --catalog # /opt/csw/bin/pkgutil --install gnupg textutils
Answer "y" to any questions here
# /opt/csw/bin/pkgutil --install wget
Answer "y" to any questions here
# /opt/csw/bin/wget http://www.blastwave.org/gpg_key.txt # /opt/csw/bin/gpg --import gpg_key.txt
Note :- "Method 3" listed on the howto was not working for me at this time
# /opt/csw/bin/gpg --edit-key A1999E90
Now type "Trust" and select Option 5, then "y" , finaly type ">quit<" Edit the following file to make use of the gpg key
Edit the following :-
Uncomment the two above entry's, then save and exit. Last step! Re fetch the catalog :
# /opt/csw/bin/pkgutil --catalog
Now you can use the follwoing command to install anything from blastwave :
# /opt/csw/bin/pkgutil --install PKGNAME
I like to update the path just to make my life a little easer.. Edit the two below files :-
* /etc/default/login * /etc/default/su
Uncomment/change "PATH=" to the following :
This is just a real basic setup. Showing off ZFS and some of my basic tweaks. I've be setting up more services in the next post.
You should be able to connect via SSH and XDMCP.