View source for solaris

== Tips & Tricks for solaris ==

=== How do I find out the list of running services (networking, time, etc.), and whether any of them failed to start? ===

svcs -v

=== Password Policy on solaris ===

more /etc/default/passwd

=== Check of password expiration ===

passwd -as

=== Logs ===

tail -f /var/adm/messages

=== Disks ===

Εάν ο δίσκος είναι σε μηχάνημα x86 τότε θα είναι της μορφής:

%%(html)
c0d0 ----> 1ος IDE - 1ος Δίσκος
c0d1 ----> 1ος IDE - 2ος Δίσκος
c1d0 ----> 2ος IDE - 1ος Δίσκος
c1d1 ----> 2ος IDE - 2ος Δίσκος
%%

http://docs.sun.com/source/817-5093/images/dev_access.fig2091.gif

df -h

man devfsadm

πως βλέπω τους δίσκους 

format

Αφού επιλέξω τον δίσκο που θέλω για να επεξεργαστώ 

partition

Και για να δω τον πίνακα κατατμήσεων 

print


cfgadm -al

poweroff
shutdown -y -i 0 -g 0

=== ZFS ==

Πως βλέπω τα διάφορα pool

zpool list

Πως διαβάζω πληροφορίες για ένα pool

zpool status syspool

Πως βλέπω το history ενός pool

zpool history syspool

Πρώτα δημιουργώ ένα νέο pool με όνομα ebal01 και του δίνω εάν ολόκληρο δίσκο

zpool create ebal01 c0d1

Πως καταστρέφω ένα pool

zpool destroy ebal01

Πως προσθέτω έναν νέο δίσκο σε ένα ήδη υπάρχον pool

zpool add syspool c0d1

%%(code)
root@nexent:~# zpool list
NAME      SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
syspool  7.44G  1.78G  5.66G    23%  ONLINE  -

root@nexent:~# zpool create ebal01 c0d1

root@nexent:~# zpool list
NAME      SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
ebal01   7.94G    94K  7.94G     0%  ONLINE  -
syspool  7.44G  1.78G  5.66G    23%  ONLINE  -

root@nexent:~# zpool destroy ebal01

root@nexent:~# zpool list
NAME      SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
syspool  7.44G  1.78G  5.66G    23%  ONLINE  -
%%