Archive for the ‘Solaris’ Category
Setting Static IP Address on Solaris 11
Solaris 11 coming with new feature and enhancement, one of it is NWAM (Network automagic) with NWAM you can create and save the network profile. In this post, I’ll blogging about how to configure your Solaris 11 Systems to used static IP Address.
Ok let’s start :
1. Switch From Automatic Network Configuration Mode to Manual Network Configuration Mode
# netadm enable -p ncp DefaultFixed
2. Verify that DefaultFixed profile is applied
# netadm list netadm: DefaultFixed NCP is enabled; automatic network management is not available. 'netadm list' is only supported when automatic network management is active.
3. Determine the interface that you want to configure
# dladm show-phys
4. I’ll configure the net0 interface
# ipadm create-ip net0 # ipadm create-addr -T static -a 192.168.56.200/24 net0/v4
5. Verify
# ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/v4 static ok 192.168.56.200/24 lo0/v6 static ok ::1/128
root@solaris:~# dladm show-link LINK CLASS MTU STATE OVER net0 phys 1500 up -- net1 phys 1500 unknown --
6. Add default route
# route -p add default 12.34.56.1
7. Add DNS Name Server
root@solaris:~# svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (8.8.8.8 8.8.4.4) svc:/network/dns/client> listprop config config application config/value_authorization astring solaris.smf.value.name-service.dns.client config/nameserver net_address 8.8.8.8 8.8.4.4 svc:/network/dns/client> exit root@solaris:~# root@solaris:~# svcadm refresh dns/client root@solaris:~# svcadm restart dns/client
8. Set name service switch
root@solaris:~# svccfg -s name-service/switch svc:/system/name-service/switch> setprop config/host = "files dns" svc:/system/name-service/switch> listprop config config application config/default astring files config/value_authorization astring solaris.smf.value.name-service.switch config/printer astring "user files" config/host astring "files dns" svc:/system/name-service/switch> exit
9. Testing
root@solaris:~# ping google.com google.com is alive
That’s it..
In the next post I’ll blogging about how to configure IPMP on Solaris 11.
Oracle Solaris 11 Features & Ehancement
Oracle Solaris 11 Features & Ehancement
1. New Installation features
- AI (automatic installer)
- Live cd installer for x86 better for desktop
2. New Software package updating features
- IPS Image packagin systems
3. Oracle Solaris 10 zone features
- Solaris10 branded zone
- No Longer have to choose between different zone type
4. New networking features and enhancement
- NWAM (network automagic)
- IPMP monitoring (ipmpstat)
- Network socket enhancement no longer uses the STREAMS module (performance improvement)
- Integrated L3/L4 load balancer
- bridgin and tunneling
- ipadm – configure Internet Protocol network interfaces and TCP/IP tunables
5. Storage Enhancement
- ZFS default root filesystems (ufs available as non root fs)
- deduplication mean duplicate data block are remove(only store unique data)
- ZFS diff
- ZFS Shadow migration
- Comstar & CIFS support
6. User environment enhancement
- enhanced desktop environmnet
- time slider snapshot management
- command line facility
default user path /usr/gnu/bin before /usr/bin
default bash shell environment & ksh93 replace ksh
- CUPS printing
7. Systems security enhancment
- secure by default
- Root treated as role
- Robust data encryption
- Driver support for trusted platform module (TPM)
- trusted extention enhancement
Source : http://docs.oracle.com/cd/E23824_01/html/E24456/docinfo.html
Register Webcast : Oracle Solaris 11 Launch
Build Your Next-Generation Datacenter in the Cloud
Reserve your seat today at the Oracle Solaris 11 launch event in New York on November 9 to:
- Hear directly from Oracle executives Mark Hurd and John Fowler.
- Learn from an elite panel from Oracle Solaris 11 engineers, led by Markus Flierl, Vice President of Solaris Engineering, Oracle.
- Benefit from the insight of leading enterprises already using Oracle Solaris 11.
- Test drive Oracle Solaris 11 and engineered systems in hands-on demos.
- Meet key technologists and network with your peers during an exclusive luncheon.
You’ll take away knowledge of how to build your infrastructure with Oracle Solaris 11 to accelerate internal, public, and hybrid cloud applications, optimize application deployment with built-in virtualization and achieve top performance and cost advantages with Oracle Solaris 11–based engineered systems.
Wednesday, November 09, 2011
9:00 a.m. – 1:30 p.m. ET / 09:00 p.m – 1:30 am Jakarta Time
Gotham Hall
1356 Broadway at 36th Street
New York, NY 10018
Unable to join us in New York? Register for the webcast
Oracle Launch Event: Application-Driven Virtualization
As enterprises embrace cloud computing and pressure mounts to serve global businesses around the clock, traditional server consolidation-focused virtualization is no longer sufficient. Virtualization needs to focus on making applications easier to deploy, manage, and support. Join us on August 23, 2011, to discover how you can benefit from application-driven virtualization.
Learn more about Oracle Virtualization.
Add a filesystem to my non-global Solaris zone
How do I add a filesystem to my non-global zone?
* Use a LOFS mount:
global# newfs /dev/rdsk/c1t0d0s0 global# mount /dev/dsk/c1t0d0s0 /mystuff global# zonecfg -z my-zone zonecfg:my-zone> add fs zonecfg:my-zone:fs> set dir=/usr/mystuff zonecfg:my-zone:fs> set special=/mystuff zonecfg:my-zone:fs> set type=lofs zonecfg:my-zone:fs> end
* Use a UFS mount:
global# newfs /dev/rdsk/c1t0d0s0 global# zonecfg -z my-zone zonecfg:my-zone> add fs zonecfg:my-zone:fs> set dir=/usr/mystuff zonecfg:my-zone:fs> set special=/dev/dsk/c1t0d0s0 zonecfg:my-zone:fs> set raw=/dev/rdsk/c1t0d0s0 zonecfg:my-zone:fs> set type=ufs zonecfg:my-zone:fs> end
* Export the device node and mount from the non-global zone:
global# zonecfg -z my-zone zonecfg:my-zone> add device zonecfg:my-zone:device> set match=/dev/rdsk/c1t0d0s0 zonecfg:my-zone:device> end zonecfg:my-zone> add device zonecfg:my-zone:device> set match=/dev/dsk/c1t0d0s0 zonecfg:my-zone:device> end my-zone# newfs /dev/rdsk/c1t0d0s0 my-zone# mount /dev/dsk/c1t0d0s0 /usr/mystuff
* Mount the FS directly from the Global zone when the non-global zone is running:
global# mount /dev/dsk/c1t0d0s0 /export/zones/zone1/root/mnt
* Using lofiadm
Upgrade Firefox 5.0 on Solaris 10 x86
Updating your browser to firefox 5.0 in Solaris 10 is easy, one thing you must do is to remove the old package. Oke, Here the steps :
Requirement :
- Firefox 5.0 binary can be downloaded from sunfreeware :
http://www.sunfreeware.com/mozilla.html
1. Remove the old package :
# pkgrm SUNWfirefox
2. Unzip and installing the package that you’ve downloaded :
# bunzip2 firefox-5.0.en-US.opensolaris-i386-pkg.bz2 # pkgadd -d firefox-5.0.en-US.opensolaris-i386-pkg
The default install location would be /opt/sfw/lib/firefox
3. Enable Flash Player Plugins :
cd /path/to<firefox install location>/plugins
Typically the plugins directory is not found, you need to create if the directory doesn’t exist.
# mkdir /opt/sfw/lib/firefox/plugins # cd /opt/sfw/lib/firefox/plugins # ln -s /usr/sfw/lib/mozilla/plugins/libflashplayer.so
4. Enable Java Plugins :
cd /path/to<firefox install location>/plugins
# cd /opt/sfw/lib/firefox/plugins # ln -s /usr/jdk/jdk1.6.0_24/jre/plugin/i386/ns4/libjavaplugin.so
5. Run Firefox, if necessary add the path into your variable path :
$ /opt/sfw/bin/firefox &
check the plugins is installed by typing : “about plugins” without quote in your firefox bar address. Enjoy!
Troubleshooting the lost diskset on Sun Cluster
In middle of night I check my cluster labs, and it show my apache resource group is not running… I re-check it, and I found that the cluster node didn’t mount the webds /global/web. My webds diskset is gone, I don’t know the root cause of this problem…
maybe I’m doing another lab in the same node, and did not consciously change its configuration.
if i check the metaset of the webds status, it show no node that own this diskset
bash-3.00# metaset -s webds Set name = webds, Set number = 2 Host Owner clnode-01 clnode-02 Mediator Host(s) Aliases clnode-01 clnode-02 Driv Dbase d6 Yes
and if I running the metastat status for webds it coming up with error :
bash-3.00# metastat -s webds metastat: clnode-01: webds: must be owner of the set for this command
The resolution is simple, below my troubleshooting :
1. boot your node-1 & node-2 in non cluster mode
2. comment out the share device at /etc/vfstab
3. boot your node-1 & node-2 in cluster mode
4. on node-2 :
force purge the lost disket :
metaset -s <setname> -P -f
5. on node-1 :
force purge the lost disket :
metaset -s <setname> -P -f
re-recreate your metaset disket :
metaset -s <setname> -a -h NodeA NodeB metaset -s <setname> -a <diskpath0> <diskpath1> ... <diskpathN> metaset -s <setname> -a -m NodeA NodeB metaset
(should show new set and ownership)
Note : because my webds disket is set of the svm disk, I re-create the soft partition on it..
bash-3.00# metainit -s webds d1 1 1 /dev/did/rdsk/d6s0
webds/d1: Concat/Stripe is setup
bash-3.00# metainit -s webds d200 -p d1 3g
d200: Soft Partition is setup
bash-3.00# metastat -s webds
webds/d200: Soft Partition
Device: webds/d1
State: Okay
Size: 6291456 blocks (3.0 GB)
Extent Start Block Block count
0 32 6291456
webds/d1: Concat/Stripe
Size: 10457088 blocks (5.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
d6s0 0 No Okay No
Device Relocation Information:
Device Reloc Device ID
d6 No -
testing mount, and ls direcory :
bash-3.00# mount /dev/md/webds/dsk/d200 /global/web bash-3.00# ls -l /global/web total 24 drwxr-xr-x 2 root root 512 May 31 21:55 bin drwxr-xr-x 2 root bin 512 May 25 06:22 cgi-bin drwxr-xr-x 2 root root 512 May 31 21:59 conf drwxr-xr-x 2 root bin 1024 May 25 06:22 htdocs drwx------ 2 root root 8192 May 31 20:56 lost+found
in theory, And you should be happy, your cluster resource group is running again.
bash-3.00# clrg status
=== Cluster Resource Groups ===
Group Name Node Name Suspended Status
---------- --------- --------- ------
nfs-rg clnode-01 No Online
clnode-02 No Offline
apache-rg clnode-01:webapp-01 No Online
clnode-01:webapp-02 No Offline
bash-3.00# clrs status
=== Cluster Resources ===
Resource Name Node Name State Status Message
------------- --------- ----- --------------
nfs-res clnode-01 Online Online - Service is online.
clnode-02 Offline Offline
nfs-stor clnode-01 Online Online
clnode-02 Offline Offline
mycluster-nfs clnode-01 Online Online - LogicalHostname online.
clnode-02 Offline Offline
apache-res clnode-01:webapp-01 Online Online - Service is online.
clnode-01:webapp-02 Offline Offline
apache-stor clnode-01:webapp-01 Online Online
clnode-01:webapp-02 Offline Offline
mycluster-webapp clnode-01:webapp-01 Online Online - LogicalHostname online.
clnode-01:webapp-02 Offline Offline
reboot your node if needed.
Java, Solaris and Mysql Certification Updates
Effective June 1, 2011 – Java, Oracle Solaris, MySQL, and NetBeans certification exams are being delivered through our new test delivery vendor — Pearson VUE — and are no longer available through Prometric. This consolidates all Oracle Certification exams within the operations of a single testing vendor, allowing us to best streamline our processes and service. Pearson VUE currently offers certification testing in more than 5,000 test centers worldwide, and we believe this will provide excellent service and global testing coverage for these Oracle certification exams.
Candidates can now visit Pearson VUE to find more information, register for an exam or locate a testing center in their area. Note that existing Oracle exam vouchers will continue to be valid as long as they have not expired.
ACTION REQUIRED
It is important that you create a Pearson VUE account now so that you can continue to register for Oracle Certification exams:
- Go to MyAccount on Pearson VUE and select Create A New Web Account and follow the prompts to create a profile and enter your contact information. See our tutorial video as well as these detailed steps for reference.
- Please note that your Prometric exam history will not show in your Pearson VUE account. Sun Certification history will soon be available to candidates at CertView. Please visit the Oracle Certification Blog for continued updates.
- IMPORTANT: Be sure to enter your profile and contact information on the next screens as it exists in your Oracle profile at CertManager, as the system will perform an automated process to match the record you are creating with the record that was uploaded from Oracle.
- If Pearson VUE is not able to match your record, you will be placed in a queue and will be contacted by Pearson VUE within 72 hours for verification.
Also, if you schedule a Java, Oracle Solaris (Cluster), MySQL, or NetBeans exam with Pearson VUE between May 16, 2011 and August 1, 2011, you will receive access to a set of practice questions at no cost. For more information, view our full announcement and Frequently Asked Questions online at certification.oracle.com.
Reference : http://blogs.oracle.com/certification/entry/0419?sf1658851=1
Memory & CPU Capping Solaris Zone
Zone merupakan virtualisasi OS instance di sistem operasi solaris, dengan zone anda bisa mempunyai beberapa OS solaris instance dalam satu mesin. keunggulan zone adalah low overhead virtualization dan resource management pool. anda dapat membagi-bagi resource cpu & memory dan mendedikasikannya untuk sebuah zone. Pada tulisan ini saya akan membagikan tips bagaimana management resource pada zone dengan membagi-bagi resource memory dan cpus untuk solaris zone. berikut konfigurasi yang akan saya buat :
Note : untuk membuat raid 1 (mirror) dan raid 5 saya tidak jelaskan disini karena keterbatasan waktu dan space… LoL
Mesin : SUN T5140 Core : 2 x 4 cores cpu Memory : 32Gb Hardisk : - 2 x 146Gb - 3 x 300Gb Global Zone : ------------- Raid 1 2x146Gb. (disk 0, disk1) Total Memory = 32Gb hostname = Globalzone ip : 172.27.254.174/24 gw : 172.27.254.254 / s0 remaining swap 64Gb Containers: ---------- Raid 5 600Gb. 3x300Gb (disk2, disk3, disk4) ~>hostname : dbzone ip : 10.25.130.161/24 gw : 10.25.130.254 Memory = 16Gb Swap = 32Gb Processor = 3 cores /zones/dbzone / 400gb ~>hostname : appzone ip : 10.25.122.151/24 gw : 10.25.122.254 Memory = 4Gb Swap = 8Gb Processor = 2 cores /zone/appzone / 100gb ~>hostname : wbzone ip : 10.25.112.133/24 gw : 10.25.112.254 Memory = 4Gb Swap = 8Gb Processor = 1 cores /zone/wbzone / 100Gb (remaining)
1. Buat permissionnya jadi 700 :
# chmod 700 /zones/dbzone # chmod 700 /zones/appzone # chmod 700 /zones/wbzone
2. membuat zone db zone :
# zonecfg -z dbzone bpgcimb03: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:dbzone> create zonecfg:dbzone> set zonepath=/zones/dbzone zonecfg:dbzone> set autoboot=true zonecfg:dbzone> add net zonecfg:dbzone:net> set physical=nxge1 zonecfg:dbzone:net> set address=10.25.130.161/24 zonecfg:dbzone:net> set defrouter=10.25.130.254 zonecfg:dbzone:net> end zonecfg:dbzone> add capped-cpu zonecfg:dbzone:capped-cpu> set ncpus=3 zonecfg:dbzone:capped-cpu> end zonecfg:dbzone> add capped-memory zonecfg:dbzone:capped-memory> set physical=16G zonecfg:dbzone:capped-memory> set swap=32G zonecfg:dbzone:capped-memory> end zonecfg:dbzone> add attr zonecfg:dbzone:attr> set name=comment zonecfg:dbzone:attr> set type=string zonecfg:dbzone:attr> set value="DB Zone" zonecfg:dbzone:attr> end
hasilnya :
zonecfg:dbzone> info
zonename: dbzone
zonepath: /zones/dbzone
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.25.130.161/24
physical: nxge1
defrouter: 10.25.130.254
capped-cpu:
[ncpus: 3.00]
capped-memory:
physical: 16G
[swap: 32G]
attr:
name: comment
type: string
value: "DB Zone"
rctl:
name: zone.cpu-cap
value: (priv=privileged,limit=300,action=deny)
rctl:
name: zone.max-swap
value: (priv=privileged,limit=34359738368,action=deny)
3. Installasi Zone :
# zoneadm -z dbzone install Preparing to install zone <dbzone>. Creating list of files to copy from the global zone. Copying <2995> files to the zone. Initializing zone product registry. Determining zone package initialization order. Preparing to initialize <1177> packages on the zone. Initializing package <211> of <1177>: percent complete: 17%
4. setelah proses diatas selesai, anda dapat mem-boot zone tersebut :
# zoneadm -z dbzone boot
5. Login ke zone dari Global zone, anda juga dapat login melalui ssh.
# zlogin -C dbzone
untuk pertama kali login, anda harus mengisikan prompt yang diminta seperti password untuk root, language, dll.
6. Melihat zone yang sudah terinstall :
# zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / native shared 1 dbzone running /zones/dbzone native shared 2 appzone running /zones/appzone native shared 3 wbzone running /zones/wbzone native shared
Note : untuk membuat zone yang lainnya sama langkahnya seperti membuat dbzone.
More resource :
1. http://hub.opensolaris.org/bin/view/Community+Group+zones/WebHome
2. http://hub.opensolaris.org/bin/view/Project+rm/WebHome
3. http://www.oracle.com/technetwork/systems/containers/index.html
4. http://blogs.sun.com/robertlor/entry/virtualization_and_resource_management_in
Comments (2)







