Solaris dump

Solaris - boot/reboot/shutdown

shutdown -g0 -y -i6 # shutdown
init 5 # turn off machine
init 0 # boot into ok prompt
init 6 # reboot
uadmin 2 6 # turn of machine
uadmin 2 0 # boot into ok prompt
uadmin 2 1 # reboot

Automatic reboot of a SUN after power loss

cd /usr/platform/`uname -i`/sbin
./scadm set sc_powerstatememory true
./scadm set sc_powerondelay true
./scadm show sc_powerstatememory
./scadm show sc_powerondelay

Solaris Explorer

suncheckup -e ENPACKTER_EXPLORER_SNAPSHOT -n -v -f

add IP address

ifconfig bge0 removeif XXX.XXX.XXX.XXX
nohup /etc/init.d/network restart
ifconfig bge0 addif XXX.XXX.XXX.XXX netmask + broadcast +
root@test # cat /etc/hostname.bge0
test netmask + broadcast + up
      addif XXX.XXX.XXX.XXX netmask + broadcast + up
      addif XXX.XXX.XXX.XXX netmask + broadcast + up
      addif XXX.XXX.XXX.XXX netmask + broadcast + up

Solaris 7, virtual interface:

ifconfig hme0:2 XXX.XXX.XXX.XXX netmask XXX.XXX.XXX.XXX broadcast XXX.XXX.XXX.XXX

Find package to installed file

grep FILE /var/sadm/install/contents

Zones

zlogin -C ZONE

Serverinfo - Hardware - V210

psrinfo -v ; prtconf | head ; format

logadm - Apache example

'/var/log/httpd/{web,www,ssl}*{log,err}' -A 90d \
  -a '/opt/apache/bin/apachectl graceful >/dev/null 2>&1' -p 1d -z 1

Create RAID1 with Solaris*

  • Create metadb
root@mo # metadb -a -f -c 3 /dev/dsk/c0t0d0s7
root@mo # metadb
        flags           first blk       block count
     a        u         16              8192            /dev/dsk/c0t0d0s7
     a        u         8208            8192            /dev/dsk/c0t0d0s7
     a        u         16400           8192            /dev/dsk/c0t0d0s7
  • Create a on concatenation of one volume (RAID0). '-f' is necessary if partition is mounted.
root@mo # metainit -f d11 1 1 c0t0d0s0
d11: Concat/Stripe is setup
root@mo # metastat -p
d11 1 1 c0t0d0s0
  • Create a one-way mirror (RAID1)
root@mo # metainit d10 -m d11
d10: Mirror is setup
root@mo # metastat -p
d10 -m d11 1
d11 1 1 c0t0d0s0
  • metaroot
metaroot d10
Add to /etc/system
set md_mirror:md_resync_bufsz=2048
linux/solaris.txt · Last modified: 2008/01/17 12:24 (external edit)
GNU Free Documentation License 1.2
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0