Tag Archives: Solaris

Home »  Tag: Solaris

Not the very latest release but certainly still valid for many things. Rolf Kersten from Sun wrote the “The 20% of Solaris knowledge that solves 80% of your needs” guide. Here are 2 links where to get it. 1) Version 1.17e, 24. Jul. 2003 http://www.cse.sc.edu/~okeefe/systemadmin/solaris80.20.pdf Alternative Solaris OE Guide for New System Administrators – The 20% of Solaris knowledge that solves 80% of your needs by Rolf Kersten   Related posts: Solaris: Administrator’s Quick Reference Solaris: SDS: Both Metadevices of a mirror have "State: Needs maintenance" Solaris 11 Cheat Sheet and other Oracle Documentation Sun / Solaris / ALOM : Solaris ILOM / ALOM Cheat Sheet Solaris: Netbackup: bpcd issues Solaris: ZFS encryption with deduplication and compression

In the wake of the current Truecrypt FUD. It seems not too widely known that you can encrypt your data with zfs for quite some while. And it also works along with compression and deduplication. However this applies only to ZFS zpool version 30 onwards (introduced with Solaris 11) while zfs on Linux currently still runs on zpool version 28. So its not running there. To read a bit in detail on how it works you will find here a few interesting posts. How to Manage ZFS Data Encryption Introducing ZFS Crypto in Oracle Solaris 11 Express Having my secured cake and Cloning it too (aka Encryption + Dedup with ZFS) The encryption options are: aes-128-ccm (default) aes-192-ccm aes-256-ccm aes-128-gcm aes-192-gcm aes-256-gcm Only CCM supports encryption along with compression and deduplication so I ditch the GCM and go for (putting my weak half torn tinfoil hat on) aes-256-ccm. I’ll create a new Filesystem […]

I do it on a regular base but everytime need to go back to my cheat sheet to jumpstart my memory. Whenever I need to reach one system from another without asking me for a password: First login on Server Alpha as the user desired to have the password free ssh and generate a pair of authentication keys. I would advise not to enter a passphrase but I leave that to you: user@Alpha:~> ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): Created directory ‘/home/user/.ssh’. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/id_rsa. Your public key has been saved in /home/user/.ssh/id_rsa.pub. The key fingerprint is: xx:xx:xx:xx:xx:xx:xx:xx:… user@Alpha The key’s randomart image is: …..xxxxxx.x.x.x..x.xx.whatever We need to create on the Server Bravo a user’s home subdirectory .ssh. (The directory may already exist, which is […]

Here you get a running NTP client in 1 minute: RedHat/CentOS/Scientific Linux Install NTP in Debian/Ubuntu Solaris (9,10,11) RedHat/CentOS/Scientific Linux sudo yum install ntp chkconfig ntpd on Make saure you have a few server in the ntp.conf # cat /etc/ntp.conf |grep server # Use public servers from the pool.ntp.org project. server 0.centos.pool.ntp.org server 1.centos.pool.ntp.org server 2.centos.pool.ntp.org #or for Redhat server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org check for the servers by using # ntpq -pn remote refid st t when poll reach delay offset jitter ================================================================== 54.247.170.181 194.109.22.18 3 u 8 64 3 36.923 12.195 11.683 94.247.49.238 .GPS. 1 u 6 64 3 27.578 2.822 3.068 46.51.185.173 193.190.230.65 2 u 8 64 3 17.190 3.408 2.773 Set the server and time by selecting one serer to contact: service ntpd stop ntpdate -b 0.rhel.pool.ntp.org service ntpd start check date: date   Install NTP in Debian/Ubuntu #apt-get install ntp ntpdate ntp-server This will […]

Based on this very useful web page http://web.archive.org/web/20121228004700/http://users.wowway.com:80/~captainkirk/computers/SolarisILOMALOMCheatSheet.htm which is unfortunately offline now… so here for reference. Solaris ILOM / ALOM Cheat Sheet ILOM ALOM CMT Command Comparison ALOM: ILOM: setdate set /SP/clock datetime=value value format: MMDDhhmmYYYY setdefaults set /SP reset_to_defaults=all -> reset /SP This resets the SP setkeyswitch set /SYS keyswitch_state=value value= normal, diag, stby, locked setsc set target property=value setupsc No equivalent in ILOM setlocator set /SYS/LOCATE value= Fast_Blink or off setfru -c data set /SYS customer_frudata=data showplatform show /HOST showplatform show /SYS ( to view Serial Number ) showfru No equivalent in ILOM showusers -g # show /SP/users showhost show /HOST showkeyswitch show /SYS keyswitch_state showsc param show target property VIEW DIAG LEVEL show /HOST/diag setsc diag_level set /HOST/diag trigger=All-resets none, normal, User-reset, Power-on-reset, Error-reset showdate show /SP/clock datetime showlogs show /SP/logs/event/list showlogs show /SP/faultmgmt set /SP/logs/event clear=true showenvironment show -o table -level all /SYS shownetwork show […]

Just dusted 2 old V240 and powered them on. Well one of them … Of course no mention of the ALOM passwords but I was able to find out one. Unfortunately the other had of course a different one which I couldn’t guess. Lucky me, that box was able to start the OS so … cd /usr/platform/`uname -i`/sbin #which is /usr/platform/SUNW,Sun-Fire-V240/sbin scadm userpassword admin #to change the password of the SC ALOM And change the password to something to forget the next time again. Note: scadm works on the V series but not on the T series servers. Related posts: Sun / Solaris / ALOM : Solaris ILOM / ALOM Cheat Sheet Solaris: Usefull commands Determine Solaris 32 bit or 64 bit version Solaris 11 Cheat Sheet and other Oracle Documentation RedHat/CentOS/Scientific Linux/Debian/Ubuntu/Solaris: Quick NTP Client config Linux / RedHat /CentOS / Ubuntu / Debian /Solaris : Quick Howto SSH […]

  Solaris 11 Cheat SheetAlways good to have something like this handy. http://www.oracle.com/technetwork/server-storage/solaris11/documentation/solaris-11-cheat-sheet-1556378.pdf Oracle Solaris 11 Express Information Library http://docs.oracle.com/cd/E19963-01/index.html#admin-info Oracle Solaris 11 Documentation http://docs.oracle.com/cd/E26502_01/ Collection of Oracle Documentations http://docs.oracle.com/ Related posts: RedHat/CentOS/Scientific Linux/Debian/Ubuntu/Solaris: Quick NTP Client config Solaris: ZFS encryption with deduplication and compression Solaris: Usefull commands Determine Solaris 32 bit or 64 bit version Linux / RedHat /CentOS / Ubuntu / Debian /Solaris : Quick Howto SSH login without password (SSH Keys) Solaris: Procedure to Re-layout the Solaris OS Disk

How to find out on what kernel version (32 bit or 64 bit) Solaris is configured and running ? # isainfo -kv 64-bit sparcv9 kernel modules   Related posts: Solaris: Operating System Disk Replacement Procedure Solaris: Administrator’s Quick Reference Sun / Solaris / ALOM: Change RSC ALOM Password from the OS Sun / Solaris / ALOM : Solaris ILOM / ALOM Cheat Sheet Solaris: Procedure to Re-layout the Solaris OS Disk Solaris: Netbackup: bpcd issues

Both Metadevices of a mirror have “State: Needs maintenance” Whenever you run into a broken SDS Mirror, beware of the following status:   d1: Mirror Submirror 0: d11 State:Needs maintenance Submirror 1: d10 State:Needs maintenance Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 12584484 blocks (6.0 GB) d11: Submirror of d1 State: Needs maintenance Invoke: after replacing “Maintenance” components:  metareplace d1 c0t1d0s0<new device> Size: 12584484 blocks (6.0 GB) Stripe 0: Device     Start Block  Dbase        State Reloc Hot Spare c0t1d0s0          0     No     Last Erred Yes d10: Submirror of d1 State: Needs maintenance Invoke:metasync d1 Size: 12584484 blocks (6.0 GB) Stripe 0: Device     Start Block  Dbase        State Reloc Hot Spare c0t0d0s0          0     No           Okay Yes       Whenever you have the above status, you will have tofix firstthe submirror thatdoesn’tstateLast Erred. The submirror withLast Erredshould beleft always to be fixed at lastto avoid corruption.     So in the above […]

Usefull Commands for Solaris # scp /home/origin/* user@machine:/home/destination/ Related posts: Solaris: Operating System Disk Replacement Procedure Solaris: Administrator’s Quick Reference Sun / Solaris / ALOM: Change RSC ALOM Password from the OS Sun / Solaris / ALOM : Solaris ILOM / ALOM Cheat Sheet Solaris: Procedure to Re-layout the Solaris OS Disk Solaris: Netbackup: bpcd issues

%d bloggers like this: