Solaris


Tags:

These commands are meant to be used for testing, or to learn the stat commands. I would not run these on a production box and I would recommend having another shell open to the same box to allow for quick kills.

To saturate CPU:
(CAUTION! This will lay a heavy load on your CPU!)

------------------------------------------------------
while :; do :; done &
------------------------------------------------------


Tags:

To disable that annoying beep:

/usr/openwin/bin/xset b off



Tags:

Solaris Run-Levels
------------------

     0     Go into firmware.

     1     Put the system in system administrator mode. All local
           file  systems  are mounted. Only a small set of essen-
           tial kernel processes are left running. This  mode  is
           for  administrative  tasks such as installing optional
           utility packages. All  files  are  accessible  and  no
           users are logged in on the system.

     2     Put the system  in  multi-user  mode.  All  multi-user
           environment   terminal   processes   and  daemons  are

Tags:

                                  

Soft Partitioning with Disksuite (Solaris Volume Manager):
---------------------------------

to create mirrored, soft-partitions:

using these disks:
c0t2d0 (36g)
c0t3d0 (36g)

(this example assumes that these two disks are non-root, and that disksuite is already
installed and the required number of metadatabases already exist on the root disk(s).)


# create 20gb soft-partition on c0t2d0s0 called d79
metainit d79 -p c0t2d0s0 20gb

# encapsulate d79 and call that device d89
metainit d89 1 1 d79


Tags:

To Show Inode Usage:

df -F ufs -o i



Tags:

                                  

Replacing a Disk with DiskSuite (Solaris Volume Manager)

1.
Check the status using metastat or metdb.

2.
Record the disk partition layout:
# prtvtoc /dev/rdsk/c1t3d0s0 > /var/tmp/c1t3d0s0.vtoc
or
# format
specify disk (enter its number0: 10
format> partition
parition> name
Enter table name (remember quotes): "SDS ssa disk format"
partition>
format> save
Saving new partition definition
Enter file name["./format.dat"]: /etc/format.dat
format> q

3.
Shutdown the system and replace the disk.

Tags:

                                  

OpenBoot Commands
-----------------

# banner
        this command shows the following  systems hardware informatiion :
        Model, architecture, processor,keyboard, openboot version, Serial no. ethernet  address & host id.

# test floppy
        test floppy disk drive

# test net
        test network loopbacks

# test scsi
        test scsi interface

# test-all
        test for all devices with selftest method

# probe-scsi
        Show attached SCSI devices

# probe-scsi-all

Tags:

Mounting CDROM on remote server
===============================

For the server:

   1. # vi /etc/dfs/dfstab
      share -F nfs -o ro /cdrom/cdrom0
   2. # shareall
   3. # share
   4. # /etc/init.d/nfs.server stop
   5. # /etc/init.d/nfs.server start

For the client:

   1. When automountd is NOT running:
   2. # mount -F nfs servername:/cdrom/cdrom0 /mnt/cdmount
   3. # cd /mnt/cdmount
   4. # ls

   1. When automountd is running:
   2. # cd /mnt/servername/cdrom/cdrom0



Tags:

                                  
Mirroring with Solaris Disksuite
--------------------------------

To enable DiskSuite, you must configure one partition as the database partition,
and it only needs to be 20-30 meg.

You then will use the command <metadb> to create the database, Also may use the
full path /usr/sbin/meta*


to create the initial metadb (in this example, s3 is the db slice):
-------------------------------------------------------------------

metadb -af c0t0d0s3
metadb -af c0t1d0s3



Tags:

Kyle Reynolds 2006