Monday, August 29, 2005

Create main meta dev (d11)

metainit -f d11 1 1 c0t0d0s6

Create redundant meta dev (d12)

metainit d12 1 1 c0t0d0s7

Create mirror (d10)

metainit d10 -m d11

Attach meta dev d12 to mirror d10

metaattach d10 d12

status:
metastat | grep %

Boot from RAID

metaroot

*updates /etc/system & /etc/vfstab

New RAID root in vfstab

/dev/md/dsk/d10

Sunday, August 28, 2005

Write partition

label

Why not booting?

boot -av

Who is there?

rusers

Where is MAC?

banner
ifconfig -a (only as root)
.enet-addr

User and group info

id -a

Three meta dev replicas

metadb -a -f -c3 c0t0d0s4

syslogd uses

loghost in /etc/inet/hosts

SMC toolbox

smc edit &

SMC service

/etc/init.d/init.wbem

SMC port

898

Show NFS shares

dfshares

Setup non-interactive server

1. mkdir /export/config
2. sysidcfg, rules, and class files
3. check rules -> rules.ok (copy from MISC)
4. add_install_client
-c server:/export/config
-p server:/export/config
`uname -n` `uname -m`

Setup interactive server

1. setup_install_server
2. add_to_install_server
3. share -F nfs -o ro,anon=0
4. /etc/ethers & /etc/inet/hosts
5. add_install_client sun4u

Send auth.crit to /var/adm/messages

logger -p auth.crit Hello World!

Save crashdump

savecore -L

root logins

/etc/default/login

Reread autofs config

automount

RAID info

metastat

ping replies

host unreachable - I'm down
no answer from - other host

PID for NFS

pgrep -l nfs

No core files

ulimit -c

NFS read only

share -o ro=d11:d12

*no access to others

Network non-interactive install

boot net - install

Network interactive install

boot net

Name service cache daemon

/etc/nscd.conf

Mount all remote

mountall -r

MAC in PROM

local-mac-address?
If true, MACs are diff

List swap

swap -l

List passwd file

getent passwd
getent passwd sergey

Graphical kill

xkill

Delete swap

swap -d

Automount all NFS shares on d12

cd /net/d12

auto_home

* d12:/export/home/&

Allow NFS root

anon=0

Add swap

swap -a

ACL mask

gets reset when chmod on group is applied.

4 RBAC commands

roles
auths
profiles
profiles -l

3 RBAC shells

pfsh
pfcsh
pfksh

/- in auto_master

means that auto_direct will provide dir name