Page tree
Skip to end of metadata
Go to start of metadata

Installing on an x4500

  • The disks come up in a different configuration. The boot disks are on channel 9
  • Install OpenSolaris on c9t0d0 as this is the primary boot disk.
  • Mirror the boot disks
    • disk layout from the root disk onto the new mirror:

      ~# prtvtoc /dev/rdsk/c7t0d0s0 | fmthard -s - /dev/rdsk/c7t4d0s0
      
    • c7t0d0s0 was the current root disk, and c7t4d0 is the second boot disk.
  • Attach with a -f

                            source   destination
    # zpool attach -f rpool c7t0d0s0 c7t4d0s0
    
  • Make the second disk bootable

    # cd /boot/grub
    # installgrub stage1 stage2 /dev/rdsk/c7t4d0s0
    Solaris boot partition inactive.
    stage1 written to partition 0 sector 0 (abs 16065)
    stage2 written to partition 0, 267 sectors starting at 50 (abs 16115)
    

Create dataPool

zpool create -f dataPool \
raidz2 c4t0d0 c5t0d0 c8t0d0 c10t0d0 c11t0d0 c4t1d0 c5t1d0 c8t1d0 c9t1d0 c10t1d0 c11t1d0 \
raidz2 c4t2d0 c5t2d0 c8t2d0 c9t2d0  c10t2d0 c11t2d0 c4t3d0 c5t3d0 c8t3d0 c9t3d0 c10t3d0 \
raidz2 c11t3d0 c4t4d0 c5t4d0 c8t4d0 c10t4d0 c11t4d0 c4t5d0 c5t5d0 c8t5d0 c9t5d0 c10t5d0 \
raidz2 c11t5d0 c4t6d0 c5t6d0 c8t6d0 c9t6d0  c10t6d0 c11t6d0 c4t7d0 c5t7d0 c8t7d0 c9t7d0 \
spare c10t7d0 c11t7d0
~# zfs set mountpoint=/array0 dataPool
~# zfs create dataPool/filesys1

Login and Root Specifications

During the OpenSolaris 2008.05 installation, you are prompted to create a user account and a root password for your system.

Root login is not enabled either on the Live CD or on the installed system. You must log in as the user that you created during the installation. After you log in, you can then become superuser to configure the system. Because root is a role, open a terminal window and use the su command to assume the role, or the pfexec sh command to run commands in a privileged shell.

Note - If you try to log in to the installed system as root, an error message displays. Click OK and log in as the local user that you created during the installation.

Root is a role per Role-Based Access Control (RBAC) specifications. However, if you do not create a user account during the installation, root is set up as a normal account on the installed system, instead of as a role. This is the only situation where you can log in to the installed system as root without manually changing the role assignment for root.

After you install the OpenSolaris 2008.05 release, if you wish to manually change the installed system to permit root logins, remove root as an assigned role for users. Then, type the following at the command line:

      # rolemod -K type=normal root

This command converts root to a normal account.

Using pkg

Read here about important update instructions.

Installing the latest SUNWipkg

# pkg refresh
# pkg install SUNWipkg
# pkg image-update

... time passes...

...success!
Searching a package
pkg search doesn't search package names and descriptions but rather, file contents.

# pkg search -r httpd
basename   file      usr/apache2/bin/httpd     pkg:/SUNWapch2@2.2.3-0.75
pkg install SUNWapch2
...success!

So now I have apache; import the manifest and enable the service and away we go!

If you want to try the latest development build, upgrade to the latest (snv_nnn) kernel and associated goodies.

Not recommended in a production environment

pkg set-authority -O -P http://pkg.opensolaris.org/dev/ development
pkg image-update

It dowloads for a couple of hours, and finally announces that it's made me a new boot environment.

Well, blastwave and the SFW repositories would be nice:

# pkg set-authority -O http://pkg.sunfreeware.com:9000 sunfreeware
# pkg set-authority -O http://blastwave.network.com:10000 blastwave
# pkg refresh
# pkg search -r wget
INDEX      ACTION    VALUE                     PACKAGE
basename   file      opt/csw/bin/wget          pkg:/IPSwget@0.5.11-2.6
basename   link      usr/bin/wget              pkg:/SUNWwget@1.10.2-0.93
basename   link      usr/bin/wget              pkg:/SUNWwget@1.10.2-0.94
............
-bash-3.2# pkg install IPSwget
PHASE                                          ITEMS
Indexing Packages                            526/526
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    3/3       62/62   13.21/13.21

PHASE                                        ACTIONS
Install Phase                                254/254
Reading Existing Index                           8/8
Indexing Packages                                3/3

Disable Gnome desktop

svcadm disable gdm

Disable the splash screen

  • Find the default entry in /rpool/boot/grub/menu.list.
  • Comment out the splashimage /boot/solaris.xpm line
  • Remove console=graphics from the end of the line starting with kernel

Get rid of "en_US.UTF-8: unknown locale" message when installing packages in a zone

  • Install SUNWlang-enUS

     zlogin $zone "pkg install SUNWlang-enUS"
    

Add verbose logging on bootup

To turn on verbose logging, type the following:

# /usr/sbin/svccfg -s system/svc/restarter:default
svc:/system/svc/restarter:default> addpg options application
svc:/system/svc/restarter:default> setprop options/logging = astring: verbose
svc:/system/svc/restarter:default> exit

This request will take effect on the next restart of svc.startd

Enable Jumbo frames

Changed sometime between snv_111 and snv_118.
You no longer enable jumbo frames in /kernel/drv/nxge.conf, you use dladm

dladm set-linkprop -p mtu=9194 nxge1

credential problems with Linux NFSv3

As of snv_108 the bugfix for Bug 6790413 causes Linux to mount with AUTH_NONE instead of AUTH_SYS when doing NFSv3 mounts. This is reportedly fixed in kernel 2.6.31.
A `snoop` will show something like:

solaris-client -> linux-server MOUNT3 C Mount /v3-server-test
linux-server -> solaris-client MOUNT3 R Mount OK FH=5F67 Auth=none,unix,390003,390004,390005

The workaround is to stop openSolaris boxes offering AUTH_NONE by commenting out the following line in /etc/nfssec.conf

#none           0       -       -       -       # AUTH_NONE

Set number of nfs server processes

sharectl set -p servers=1024 nfs
  • No labels