Sabtu, 07 Maret 2015

Backup O/S solaris 10 using Flar Archive

Creating Flar Archive for Recovery

Activity

Preparation
collect explorer
# /opt/SUNWexplo/bin/explorer
#collect explorer file in /opt/SUNWexplo/output

Create Flar Archive
Create flar archive
flarcreate -n "sol10u7" -c -S -R / -x /flarname.flar


Recovering the System Image From a FLAR Image

Begin the boot process using one of the following options
Use the initial boot media (installation CD/DVD)
Use the netinstall service
ok> boot cdrom

Choose install FLASH methode to restore flar archive


Reff
http://docs.oracle.com/cd/E23823_01/html/E23803/flashinstall-201.html#scrolltoc
http://docs.oracle.com/cd/E23823_01/html/E23803/gkcay.html

Problem ppar can not poweron in M10

problem
'-------


XSCF> poweron -p 1
PPAR-IDs to power on :01
Continue? [y|n] :y
01 : Not powering on : The current configuration does not support this operation.
XSCF>

XSCF> showboards -a
PSB PPAR-ID(LSB) Assignment Pwr Conn Conf Test Fault
---- ------------ ----------- ---- ---- ---- ------- --------
00-0 00(00) Assigned y y y Passed Normal
01-0 00(255) Assigned y n n Passed Normal
02-0 00(255) Assigned y n n Passed Normal

solution
'--------




run testsb

xscf> testsb -v -p -s -y 01-0
xscf> testsb -v -p -s -y 02-0

Execute the testsb command to perform a diagnosis test.
Specify the PSB number of the diagnosis target PSB in XX-Y. XX is a BB-ID, and Y is fixed at 0.
An initial diagnosis and connection I/O check are performed on the diagnosis target PSB.
-v: Additionally displays detailed messages of the initial diagnosis
-p: Executes the "probe-scsi-all" command of OpenBoot PROM and displays the results while a diagnosis is being processed
-s: Executes the "show-devs" command of OpenBoot PROM and displays the results while a diagnosis is being processed
-y: Automatically responds with "y" to a query

Sabtu, 03 Agustus 2013

How to install sun solaris cluster 3.2 software

copy source software cluster to host
-------------------------------------
file cluster software : p10264415_320_SOLARIS64.zip

unzip file
--------------
unzip p10264415_320_SOLARIS64.zip

result unzip
------------
license_agreement1.html
readme.html
suncluster-3_2u3-ga-iso.zip
suncluster-3_2u3-ga-solaris-sparc.zip

unzip file ---> for sparc
--------------------------
unzip suncluster-3_2u3-ga-solaris-sparc.zip

result unzip
------------
Solaris_sparc
#cd Solaris_sparc

file-filenya
-------------
.install
installer
Product
release_info


install cluster software
---------------------------
# ./installer -nodisplay

root@panoramix1 # ./installer -nodisplay


   Welcome to the Sun Java(TM) Availability Suite; serious software made
   simple...

   Before you begin, please refer to the Release Notes and Installation Guide
   for the products that you are installing. This documentation is available at
   http://docs.sun.com/app/docs/prod/solaris.cluster .

   You can install any or all of the Services provided by the Java Availability
   Suite.


   Copyright 2009 Sun Microsystems, Inc. All rights reserved.
   Use is subject to license terms.

   
   Before you install this product, you must read and accept the entire
   Software License Agreement under which this product is licensed for your use
   .

   
Sun Microsystems, Inc. ("Sun")
SOFTWARE LICENSE AGREEMENT ("SLA")
READ THE TERMS OF THIS AGREEMENT ("AGREEMENT") CAREFULLY BEFORE OPENING
SOFTWARE MEDIA PACKAGE. BY OPENING SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE
TERMS OF THIS AGREEMENT. IF YOU ARE ACCESSING SOFTWARE ELECTRONICALLY, INDICATE
YOUR ACCEPTANCE OF THESE TERMS BY SELECTING THE "ACCEPT" (OR EQUIVALENT) BUTTON
AT THE END OF THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS, PROMPTLY
RETURN THE UNUSED SOFTWARE TO YOUR PLACE OF PURCHASE FOR A REFUND OR, IF
SOFTWARE IS ACCESSED ELECTRONICALLY, SELECT THE "DECLINE" (OR EQUIVALENT)
BUTTON AT THE END OF THIS AGREEMENT. IF YOU HAVE SEPARATELY AGREED TO LICENSE
TERMS ("MASTER TERMS") FOR YOUR LICENSE TO THIS SOFTWARE, THEN SECTIONS 1-6 OF
THIS AGREEMENT ("SUPPLEMENTAL LICENSE TERMS") SHALL SUPPLEMENT AND SUPERSEDE
THE MASTER TERMS IN RELATION TO THIS SOFTWARE.

-----> sniped


   If you have read and accept all the terms of the entire Software License
   Agreement, answer 'Yes', and the installation will continue.
   If you do not accept all the terms of the Software License Agreement, answer
   'No', and the installation program will end without installing the product.
   Have you read, and do you accept, all of the terms of the preceding Software
   License Agreement [No] {"<" goes back, "!" exits}? yes


Installation Type
-----------------

   Do you want to install the full set of Sun Java(TM) Availability Suite
   Products and Services? (Yes/No) [Yes] {"<" goes back, "!" exits} yes


   Install multilingual package(s) for all selected components [Yes] {"<" goes
   back, "!" exits}: no

Do you want to add multilanguage support now?

1. Yes
2. No

   Enter your choice [1] {"<" goes back, "!" exits} 2


Shared Component Upgrades Required
-----------------------------------

The shared components listed below are currently installed. They will be
upgraded for compatibility with the products you chose to install.

Component    Package
--------------------
Ant       SUNWant
        11.10.0:PATCHES:144994-01,138892-02,800102-01,800156-06 (installed)
        11.12.0 (required)
JavaActivationFramework       SUNWjaf
        8.0.0.0 (installed)
        8.1 (required)
JavaMail       SUNWjmail
        8.0.0.0 (installed)
        8.1 (required)
JSS       SUNWjss
        4.0.0:PATCHES:119213-23,119213-26 (installed)
        4.2.4 (required)
SunWebConsole       SUNWmctag
        3.0.2 (installed)
        3.1 (required)
SunWebConsole       SUNWmconr
        3.0.2 (installed)
        3.1 (required)
SunWebConsole       SUNWmcon
        3.0.2 (installed)
        3.1 (required)
SunWebConsole       SUNWmcosx
        3.0.3 (installed)
        3.1 (required)
SunWebConsole       SUNWmcos
        3.0.2 (installed)
        3.1 (required)
MFWK       SUNWservicetagu
        2.0.0:PATCHES:138195-04 (installed)
        2.0.1 (required)
MFWK       SUNWstosreg
        2.0.0:PATCHES:138195-04 (installed)
        2.0.1 (required)
MFWK       SUNWservicetagr
        2.0.0:PATCHES:138195-04 (installed)
        2.0.1 (required)

   Enter 1 to upgrade these shared components and 2 to cancel [1] {"<" goes
   back, "!" exits}:

=====> Enter

Checking System Status

    Available disk space...        : Checking .... OK

    Memory installed...            : Checking .... OK

    Swap space installed...        : Checking .... OK

    Operating system patches...    : Checking .... OK

    Operating system resources...  : Checking .... OK


System ready for installation



   Enter 1 to continue [1] {"<" goes back, "!" exits}


=====> Enter

Screen for selecting Type of Configuration

1. Configure Now - Selectively override defaults or express through

2. Configure Later - Manually configure following installation


   Select Type of Configuration [1] {"<" goes back, "!" exits} 2


======> cuma install software saja, pilih 2, karena konfig nya belakangan

Ready to Install
----------------
The following components will be installed.

Product: Java Availability Suite
Uninstall Location: /var/sadm/prod/SUNWentsyssc32u3
Space Required: 344.22 MB
---------------------------------------------------
        Java DB
           Java DB Server
           Java DB Client
        Sun Cluster 3.2 11/09
           Sun Cluster Core
           Sun Cluster Manager
        Sun Cluster Agents 3.2 11/09
           Sun Cluster HA for Sun Java(TM) System Application Server
           Sun Cluster HA for Sun Java(TM) System Message Queue
           Sun Cluster HA for Sun Java(TM) System Messaging Server
           Sun Cluster HA for Sun Java(TM) System Calendar Server
           Sun Cluster HA for Sun Java(TM) System Directory Server
           Sun Cluster HA for Sun Java(TM) System Application Server EE (HADB)
           Sun Cluster HA for Instant Messaging
           Sun Cluster HA/Scalable for Sun Java(TM) System Web Server
           Sun Cluster HA for Apache Tomcat
           Sun Cluster HA for Apache
           Sun Cluster HA for DHCP
           Sun Cluster HA for DNS
           Sun Cluster HA for MySQL
           Sun Cluster HA for Sun N1 Service Provisioning System
           Sun Cluster HA for NFS
           Sun Cluster HA for Oracle
           Sun Cluster HA for Samba
           Sun Cluster HA for Sun N1 Grid Engine
           Sun Cluster HA for Solaris Containers
           Sun Cluster Support for Oracle RAC
           Sun Cluster HA for Oracle E-Business Suite
           Sun Cluster HA for SAP liveCache
           Sun Cluster HA for WebSphere Message Broker
           Sun Cluster HA for WebSphere MQ
           Sun Cluster HA for Oracle 9iAS
           Sun Cluster HA for SAPDB
           Sun Cluster HA for SAP Web Application Server
           Sun Cluster HA for SAP
           Sun Cluster HA for PostgreSQL
           Sun Cluster HA for Sybase ASE
           Sun Cluster HA for BEA WebLogic Server
           Sun Cluster HA for Siebel
           Sun Cluster HA for Kerberos
           Sun Cluster HA for Swift Alliance Access
           Sun Cluster HA for Swift Alliance Gateway
           Sun Cluster HA for Informix
           Sun Cluster HA for xVM Server SPARC Guest Domains
        Sun Cluster Geographic Edition 3.2 11/09
           Sun Cluster Geographic Edition Core Components
           Sun Cluster Geographic Edition Manager
           Sun StorEdge Availability Suite Data Replication Support
           Hitachi Truecopy Data Replication Support
           SRDF Data Replication Support
           Oracle Data Guard Data Replication Support
           Sun Cluster Geographic Edition Script-Based Plugin Replication Support
        Quorum Server
        Sun Java(TM) System High Availability Session Store 4.4.3
        All Shared Components
        Sun Java(TM) System Monitoring Console 1.0 Update 1


1. Install
2. Start Over
3. Exit Installation

   What would you like to do [1] {"<" goes back, "!" exits}? 1



Java Availability Suite
|-1%--------------25%-----------------50%-----------------75%--------------100%|


Installation Complete

Software installation has completed successfully. You can view the installation
summary and log by using the choices below. Summary and log files are available
in /var/sadm/install/logs/.

Your next step is to perform the postinstallation configuration and
verification tasks documented in the Postinstallation Configuration and Startup
Chapter of the Sun Java(TM) Enterprise System Installation Guide. See: http:
//docs.sun.com/doc/820-2827.

   Enter 1 to view installation summary and Enter 2 to view installation logs
   [1] {"!" exits}
Installation Summary Report
Install Summary
Java Availability Suite : Installed
Java DB : Installed, Configure After Install
Sun Cluster 3.2 11/09 : Installed, Configure After Install
Sun Cluster Agents 3.2 11/09 : Installed, Configure After Install
Sun Cluster Geographic Edition 3.2 11/09 : Installed, Configure After Install
Quorum Server : Installed, Configure After Install
Sun Java(TM) System High Availability Session Store 4.4.3 : Installed
All Shared Components : Installed, Configure After Install
Sun Java(TM) System Monitoring Console 1.0 Update 1 : Installed, Configure
After Install
Configuration Data
The configuration log is saved in :  /var/sadm/install/logs/JavaES_Install_log.
937842513
   Enter 1 to view installation summary and Enter 2 to view installation logs
   [1] {"!" exits}


   Enter 1 to view installation summary and Enter 2 to view installation logs
   [1] {"!" exits} !
In order to notify you of potential updates, we need to confirm an internet connection. Do you want to proceed [Y/N] : N



=======> done

Kamis, 19 April 2012

Live Upgrade Solaris 10

Ugrade O/S Solaris 10: Methode : Live Upgrade
Upgrade : From Solaris 10 update 9 (Solaris 10 9/10) to Solaris 10 update 10 (Solaris 10 8/11)

----------------------------------
info
------
d0 -- 20gb -- 20480 -- /
d1 -- 32gb -- 32768 -- swap
d3 -- 15gb -- 15360 -- /oracle
d4 -- 20gb -- 20480 -- /SQLLOADER
d5 -- 20gb -- 20480 -- /BDI_SMSUPLOAD
d6 -- 29gb -- 29696 -- /export/home

Step Mirror
-----------------------------
c0t5000CCA01297AE1Cd0 ---> mirr disk
c0t5000CCA012971518d0 ---> prim disk

cp -p /etc/system /etc/system.orig.14042012
cp -p /etc/vfstab /etc/vfstab.orig.14042012

prtvtoc /dev/rdsk/c0t5000CCA012971518d0s2 | fmthard -s - /dev/rdsk/c0t5000CCA01297AE1Cd0s2

metadb -a -f -c3 /dev/dsk/c0t5000CCA01297AE1Cd0s7 /dev/dsk/c0t5000CCA012971518d0s7

Mirror the root slice
# metainit -f d10 1 1 c0t5000CCA012971518d0s0
# metainit -f d20 1 1 c0t5000CCA01297AE1Cd0s0
# metainit d0 -m d10
# metaroot d0

Mirror the swap slice.
# metainit -f d11 1 1 c0t5000CCA012971518d0s1
# metainit -f d21 1 1 c0t5000CCA01297AE1Cd0s1
# metainit d1 -m d11

Mirror the slice 3
# metainit -f d13 1 1 c0t5000CCA012971518d0s3
# metainit -f d23 1 1 c0t5000CCA01297AE1Cd0s3
# metainit d3 -m d13

Mirror the slice 4
# metainit -f d14 1 1 c0t5000CCA012971518d0s4
# metainit -f d24 1 1 c0t5000CCA01297AE1Cd0s4
# metainit d4 -m d14

Mirror the slice 5
# metainit -f d15 1 1 c0t5000CCA012971518d0s5
# metainit -f d25 1 1 c0t5000CCA01297AE1Cd0s5
# metainit d5 -m d15

Mirror the slice 6
# metainit -f d16 1 1 c0t5000CCA012971518d0s6
# metainit -f d26 1 1 c0t5000CCA01297AE1Cd0s6
# metainit d6 -m d16


# lockfs -fa
# init 6

attach
# metattach d0 d20
# metattach d1 d21
# metattach d3 d23
# metattach d4 d24
# metattach d5 d25
# metattach d6 d26

check OS version and update
==============================
bash-3.00# cat /etc/release
Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 11 August 2010


Requirement to apply the Solaris 10 Live Upgrade patch to preexisting ABEs
---------------------------------------------------------------------------

root@lab1 # showrev -p |grep 121430
Patch: 121430-53 Obsoletes: 121435-04, 121437-02 Requires: Incompatibles: Packages: SUNWlucfg, SUNWlur, SUNWluu
Patch: 121428-13 Obsoletes: Requires: 120235-01, 121430-16 Incompatibles: Packages: SUNWluzone
root@lab1 #


latest version patch of 121430 is 121430-74

patchadd -d 121430-74
----------------------

root@lab1 # patchadd -d 121430-74
Validating patches...

Loading patches installed on the system...

Done!

Loading patches requested to install.

Done!

Checking patches that you specified for installation.

Done!


Approved patches will be installed in this order:

121430-74


Checking installed patches...
Executing prepatch script...
Installing patch packages...

Patch 121430-74 has been successfully installed.
See /var/sadm/patch/121430-74/log for details
Executing postpatch script...

Patch packages installed:
SUNWlucfg
SUNWlur
SUNWluu

root@lab1 #

Solaris Live Upgrade Software Patch Requirements
================================================
Solaris 10 5/08 (Update 5) or later:

SPARC:

119254-LR Install and Patch Utilities Patch -----> 119254-83 latest patch
121430-57 Live Upgrade patch -----> 121430-74 latest patch
121428-LR SUNWluzone required patches -----> 121428-15 latest patch
138130-01 vold patch -----> 141444-09

showrev -p |grep 119254-83
showrev -p |grep 121430-74
showrev -p |grep 121428-15
showrev -p |grep 141444-09


patchadd -d 119254-83
--------------------------
root@lab1 # patchadd -d 119254-83
Validating patches...

Loading patches installed on the system...

Done!

Loading patches requested to install.

Done!

Checking patches that you specified for installation.

Done!


Approved patches will be installed in this order:

119254-83


Checking installed patches...
Executing prepatch script...
Installing patch packages...

Patch 119254-83 has been successfully installed.
See /var/sadm/patch/119254-83/log for details
Executing postpatch script...

Patch packages installed:
SUNWinstall-patch-utils-root
SUNWpkgcmdsr
SUNWpkgcmdsu
SUNWswmt

root@lab1 #

patchadd -d 121428-15
========================================

root@lab1 # patchadd -d 121428-15
Validating patches...

Loading patches installed on the system...

Done!

Loading patches requested to install.

Done!

Checking patches that you specified for installation.

Done!


Approved patches will be installed in this order:

121428-15


Checking installed patches...
Executing prepatch script...
Installing patch packages...

Patch 121428-15 has been successfully installed.
See /var/sadm/patch/121428-15/log for details
Executing postpatch script...

Patch packages installed:
SUNWluzone


How to upgrade using Solaris Live Upgrade on host with root drive encapsulated in Disksuite or logical volume manager
=====================================================================================================================


1. Take a full backup of the data on the host for disaster recovery purposes

flarcreate -n "solaris10u9" -c -x /lu-prepare -R / /lu-prepare/solaris10u9.flar

2) Take the backup of metadevice configuration (An explorer from the host would be preferable)

metastat -p > metastat_config.out

3) Break the metamirrors for root (/), /usr, and /var metamirrors.

info
--------
root@lab1 # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 20G 6.5G 13G 34% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 58G 1.7M 58G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
swap 58G 64K 58G 1% /tmp
swap 58G 56K 58G 1% /var/run
/dev/md/dsk/d4 20G 20M 19G 1% /SQLLOADER
/dev/md/dsk/d5 20G 20M 19G 1% /BDI_SMSUPLOAD
/dev/md/dsk/d3 15G 15M 15G 1% /oracle
/dev/md/dsk/d6 29G 29M 28G 1% /export/home
/platform/sun4v/lib/libc_psr/libc_psr_hwcap2.so.1
20G 6.5G 13G 34% /platform/sun4v/lib/libc_psr.so.1
/platform/sun4v/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
20G 6.5G 13G 34% /platform/sun4v/lib/sparcv9/libc_psr.so.1
root@lab1 # metastat -p
d6 -m d16 d26 1
d16 1 1 /dev/dsk/c0t5000CCA012971518d0s6
d26 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s6
d5 -m d15 d25 1
d15 1 1 /dev/dsk/c0t5000CCA012971518d0s5
d25 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s5
d4 -m d14 d24 1
d14 1 1 /dev/dsk/c0t5000CCA012971518d0s4
d24 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s4
d3 -m d13 d23 1
d13 1 1 /dev/dsk/c0t5000CCA012971518d0s3
d23 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s3
d1 -m d11 d21 1
d11 1 1 /dev/dsk/c0t5000CCA012971518d0s1
d21 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s1
d0 -m d10 d20 1
d10 1 1 /dev/dsk/c0t5000CCA012971518d0s0
d20 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s0
# metadetach d0 d20

4) notedown the the physical device path name of the root disk & root-mirror disks

ls -la /dev/rdsk/c0t5000CCA012971518d0s2 ---> prim disk
ls -la /dev/rdsk/c0t5000CCA012971518d0s0
ls -la /dev/rdsk/c0t5000CCA01297AE1Cd0s2 ---> mir disk
ls -la /dev/rdsk/c0t5000CCA01297AE1Cd0s0

prim disk
---------
root@lab1 # ls -la /dev/rdsk/c0t5000CCA012971518d0s2
lrwxrwxrwx 1 root root 52 Apr 15 18:41 /dev/rdsk/c0t5000CCA012971518d0s2 -> ../../devices/scsi_vhci/disk@g5000cca012971518:c,raw
root@lab1 #
root@lab1 # ls -la /dev/rdsk/c0t5000CCA012971518d0s0
lrwxrwxrwx 1 root root 52 Apr 15 18:41 /dev/rdsk/c0t5000CCA012971518d0s0 -> ../../devices/scsi_vhci/disk@g5000cca012971518:a,raw
root@lab1 #

mirr disk
----------
root@lab1 # ls -la /dev/rdsk/c0t5000CCA01297AE1Cd0s2
lrwxrwxrwx 1 root root 52 Apr 15 18:41 /dev/rdsk/c0t5000CCA01297AE1Cd0s2 -> ../../devices/scsi_vhci/disk@g5000cca01297ae1c:c,raw
root@lab1 #
root@lab1 # ls -la /dev/rdsk/c0t5000CCA01297AE1Cd0s0
lrwxrwxrwx 1 root root 52 Apr 15 18:41 /dev/rdsk/c0t5000CCA01297AE1Cd0s0 -> ../../devices/scsi_vhci/disk@g5000cca01297ae1c:a,raw
root@lab1 #

5) Backup /etc/vfstab and /etc/system files

root@lab1 # cp /etc/vfstab /etc/vfstab.15052012
root@lab1 # cp /etc/system /etc/system.15042012

Use the metaroot command or manually edit the /etc/vfstab and change the device paths for root (/), /usr and /var to represent the c#t#d#s# path names instead of metadevice device paths

vi /etc/vfstab
vi /etc/system



6) Bring the system to ok prompt

init 0

7) Boot with the physical disk path of root disk noted earlier in step 4

ok boot

info
-----
/pci@400/pci@2/pci@0/pci@4/scsi@0/disk@w5000cca012971519,0:a



info
---

root@lab1 # df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t5000CCA012971518d0s0
20G 6.6G 13G 34% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 58G 1.7M 58G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/sun4v/lib/libc_psr/libc_psr_hwcap2.so.1
20G 6.6G 13G 34% /platform/sun4v/lib/libc_psr .so.1
/platform/sun4v/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
20G 6.6G 13G 34% /platform/sun4v/lib/sparcv9/ libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
swap 58G 48K 58G 1% /tmp
swap 58G 40K 58G 1% /var/run
/dev/md/dsk/d4 20G 20M 19G 1% /SQLLOADER
/dev/md/dsk/d5 20G 20M 19G 1% /BDI_SMSUPLOAD
/dev/md/dsk/d3 15G 15M 15G 1% /oracle
/dev/md/dsk/d6 29G 29M 28G 1% /export/home



8) Once the system is back in multiuser mode, clear all the metadevices and submirrors for root (/), /usr and /var:

metaclear -r -f d0

root@lab1 # metaclear -r -f d0
d0: Mirror is cleared
d10: Concat/Stripe is cleared
root@lab1 #

9) List the existing state databases on the system

metadb -i


root@lab1 # metadb -i
flags first blk block count
a m pc luo 16 8192 /dev/dsk/c0t5000CCA012971518d0s7
a pc luo 8208 8192 /dev/dsk/c0t5000CCA012971518d0s7
a pc luo 16400 8192 /dev/dsk/c0t5000CCA012971518d0s7
a pc luo 16 8192 /dev/dsk/c0t5000CCA01297AE1Cd0s7
a pc luo 8208 8192 /dev/dsk/c0t5000CCA01297AE1Cd0s7
a pc luo 16400 8192 /dev/dsk/c0t5000CCA01297AE1Cd0s7
r - replica does not have device relocation information
o - replica active prior to last mddb configuration change
u - replica is up to date
l - locator for this replica was read successfully
c - replica's location was in /etc/lvm/mddb.cf
p - replica's location was patched in kernel
m - replica is master, this is replica selected as input
W - replica has device write errors
a - replica is active, commits are occurring to this replica
M - replica had problem with master blocks
D - replica had problem with data blocks
F - replica had format problems
S - replica is too small to hold current data base
R - replica had device read errors
root@lab1 #


10) Remove the state databases (the -f switch is only required for removing the last DB). This command needs to be completed for all state databases

root@lab1 # metadb -d /dev/dsk/c0t5000CCA012971518d0s7
root@lab1 # metadb -d /dev/dsk/c0t5000CCA01297AE1Cd0s7
metadb: lab1: must have at least 1 database (-f overrides)

root@lab1 # metadb -f -d /dev/dsk/c0t5000CCA01297AE1Cd0s7
root@lab1 #

11) Upgrade the OS using luupgrade

lucreate
=========================
# lucreate -c origbe -m /:/dev/dsk/c0t5000CCA01297AE1Cd0s0:ufs -n newbe


root@lab1 # lucreate -c origbe -m /:/dev/dsk/c0t5000CCA01297AE1Cd0s0:ufs -n newbe
Determining types of file systems supported
Validating file system requests
Preparing logical storage devices
Preparing physical storage devices
Configuring physical storage devices
Configuring logical storage devices
Analyzing system configuration.
No name for current boot environment.
Current boot environment is named .
Creating initial configuration for primary boot environment .
INFORMATION: No BEs are configured on this system.
The device is not a root device for any boot environment; cannot get BE ID.
PBE configuration successful: PBE name PBE Boot Device .
Updating boot environment description database on all BEs.
Updating system configuration files.
The device is not a root device for any boot environment; cannot get BE ID.
Creating configuration for boot environment .
Source boot environment is .
Creating file systems on boot environment .
Creating file system for in zone on .
Mounting file systems for boot environment .
Calculating required sizes of file systems for boot environment .
Populating file systems on boot environment .
Analyzing zones.
Mounting ABE .
Generating file list.
Copying data from PBE to ABE .
100% of filenames transferred
Finalizing ABE.
Fixing zonepaths in ABE.
Unmounting ABE .
Fixing properties on ZFS datasets in ABE.
Reverting state of zones in PBE .
Making boot environment bootable.
Population of boot environment successful.
Creation of boot environment successful.
root@lab1 #

check LU status
======================

root@lab1 # lustatus
Boot Environment Is Active Active Can Copy
Name Complete Now On Reboot Delete Status
-------------------------- -------- ------ --------- ------ ----------
origbe yes yes yes no -
newbe yes no no yes -
root@lab1 #

luupgrade
================================
luupgrade -u -n newbe -s /cdrom/sol_10_811_sparc


luupgrade in progress
================================
root@lab1 # luupgrade -u -n newbe -s /cdrom/sol_10_811_sparc

64459 blocks
miniroot filesystem is
Mounting miniroot at
INFORMATION: Auto Registration already done for this BE .
Validating the contents of the media .
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains version <10>.
Constructing upgrade profile to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE .
Determining packages to install or upgrade for BE .
Performing the operating system upgrade of the BE .
CAUTION: Interrupting this process may leave the boot environment unstable
or unbootable.
Upgrading Solaris: 6% completed

luupgrade complete
========================
root@lab1 # luupgrade -u -n newbe -s /cdrom/sol_10_811_sparc

64459 blocks
miniroot filesystem is
Mounting miniroot at
INFORMATION: Auto Registration already done for this BE .
Validating the contents of the media .
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains version <10>.
Constructing upgrade profile to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE .
Determining packages to install or upgrade for BE .
Performing the operating system upgrade of the BE .
CAUTION: Interrupting this process may leave the boot environment unstable
or unbootable.
Upgrading Solaris: 100% completed
Installation of the packages from this media is complete.
Updating package information on boot environment .
Package information successfully updated on boot environment .
Adding operating system patches to the BE .
The operating system patch installation is complete.
INFORMATION: The file on boot
environment contains a log of the upgrade operation.
INFORMATION: The file on boot
environment contains a log of cleanup operations required.
INFORMATION: Review the files listed above. Remember that all of the files
are located on boot environment . Before you activate boot
environment , determine if any additional system maintenance is
required or if additional media of the software distribution must be
installed.
The Solaris upgrade of the boot environment is complete.
Installing failsafe
Failsafe install is complete.

Mount target disk and check
=================================
root@lab1 # lumount newbe
/.alt.newbe
root@lab1 #

df -h

root@lab1 # df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t5000CCA012971518d0s0
20G 6.6G 13G 34% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 58G 1.7M 58G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/sun4v/lib/libc_psr/libc_psr_hwcap2.so.1
20G 6.6G 13G 34% /platform/sun4v/lib/libc_psr.so.1
/platform/sun4v/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
20G 6.6G 13G 34% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
swap 58G 400K 58G 1% /tmp
swap 58G 48K 58G 1% /var/run
/dev/md/dsk/d4 20G 20M 19G 1% /SQLLOADER
/dev/md/dsk/d5 20G 20M 19G 1% /BDI_SMSUPLOAD
/dev/md/dsk/d3 15G 15M 15G 1% /oracle
/vol/dev/dsk/c1t6d0/sol_10_811_sparc
2.1G 2.1G 0K 100% /cdrom/sol_10_811_sparc
/dev/dsk/c0t5000CCA01297AE1Cd0s0
20G 6.7G 13G 35% /.alt.newbe
/BDI_SMSUPLOAD 20G 20M 19G 1% /.alt.newbe/BDI_SMSUPLOAD
/SQLLOADER 20G 20M 19G 1% /.alt.newbe/SQLLOADER
/oracle 15G 15M 15G 1% /.alt.newbe/oracle
swap 58G 0K 58G 0% /.alt.newbe/var/run
swap 58G 0K 58G 0% /.alt.newbe/tmp


boot from 2nd disk
------------------
{0} ok boot /pci@400/pci@1/pci@0/pci@4/scsi@0/disk@w5000cca01297ae1d,0

SPARC T4-1, No Keyboard
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.33.1, 32256 MB memory available, Serial #99184308.
Ethernet address 0:21:28:e9:6e:b4, Host ID: 85e96eb4.



Boot device: /pci@400/pci@1/pci@0/pci@4/scsi@0/disk@w5000cca01297ae1d,0 File and args:
|
| / - \ | / - \ | / - \ | / - \ | /
SunOS Release 5.10 Version Generic_147440-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
- \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - Hostname: lab1
Configuring devices.
Loading smf(5) service descriptions: 1/26 2/26 3/26 4/26 5/26 6/26 7/26 8/26 9/26 10/26 11/26 12/26 13/26 14/26 15/26 16/26 17/26 18/26 19/26 20/26 21/26 22/26 23/26 24/26 25/26 26/26

WARNING - Unable to repair one or more filesystems.
Run fsck manually (fsck filesystem...).

checking ufs filesystems
/dev/md/rdsk/d3: No such file or directory
fsck: could not stat /dev/md/rdsk/d3: No such file or directory
/dev/md/rdsk/d4: No such file or directory
fsck: could not stat /dev/md/rdsk/d4: No such file or directory
/dev/md/rdsk/d5: No such file or directory
fsck: could not stat /dev/md/rdsk/d5: No such file or directory
fsckall failed with exit code 1.
mount: /dev/md/dsk/d3 or /oracle, no such file or directory
mount: /dev/md/dsk/d5 or /BDI_SMSUPLOAD, no such file or directory
mount: /dev/md/dsk/d4 or /SQLLOADER, no such file or directory
svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 1
Apr 16 14:43:26 svc.startd[8]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.

Apr 16 14:43:26 svc.startd[8]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)

Apr 16 14:43:26 ldmad: agent agent-device registered

Apr 16 14:43:26 ldmad: a


after from boot 2nd / mirrdisk
=========================================
root@lab1 # df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t5000CCA01297AE1Cd0s0
20G 6.8G 13G 35% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 26G 1.5M 26G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/sun4v/lib/libc_psr/libc_psr_hwcap2.so.1
20G 6.8G 13G 35% /platform/sun4v/lib/libc_psr
.so.1
/platform/sun4v/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
20G 6.8G 13G 35% /platform/sun4v/lib/sparcv9/
libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
swap 26G 0K 26G 0% /tmp
swap 26G 16K 26G 1% /var/run
root@lab1 #


recreate metadevice
==================================
root@lab1 # metadb -a -f -c3 /dev/dsk/c0t5000CCA01297AE1Cd0s7 /dev/dsk/c0t5000CCA012971518d0s7

Mirror the root slice
# metainit -f d10 1 1 c0t5000CCA01297AE1Cd0s0
# metainit -f d20 1 1 c0t5000CCA012971518d0s0
# metainit d0 -m d10
# metaroot d0

Mirror the swap slice.
# metainit -f d11 1 1 c0t5000CCA01297AE1Cd0s1
# metainit -f d21 1 1 c0t5000CCA012971518d0s1
# metainit d1 -m d11

Mirror the slice 3
# metainit -f d13 1 1 c0t5000CCA01297AE1Cd0s3
# metainit -f d23 1 1 c0t5000CCA012971518d0s3
# metainit d3 -m d13

Mirror the slice 4
# metainit -f d14 1 1 c0t5000CCA01297AE1Cd0s4
# metainit -f d24 1 1 c0t5000CCA012971518d0s4
# metainit d4 -m d14

Mirror the slice 5
# metainit -f d15 1 1 c0t5000CCA01297AE1Cd0s5
# metainit -f d25 1 1 c0t5000CCA012971518d0s5
# metainit d5 -m d15

Mirror the slice 6
# metainit -f d16 1 1 c0t5000CCA01297AE1Cd0s6
# metainit -f d26 1 1 c0t5000CCA012971518d0s6
# metainit d6 -m d16


root@lab1 # uname -a
SunOS lab1 5.10 Generic_147440-01 sun4v sparc sun4v

root@lab1 # cat /etc/release
Oracle Solaris 10 8/11 s10s_u10wos_17b SPARC
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011

# lockfs -fa
# init 6

attach
# metattach d0 d20
# metattach d1 d21
# metattach d3 d23
# metattach d4 d24
# metattach d5 d25
# metattach d6 d26

root@lab1 # metastat -p
d6 -m d16 d26 1
d16 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s6
d26 1 1 /dev/dsk/c0t5000CCA012971518d0s6
d5 -m d15 d25 1
d15 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s5
d25 1 1 /dev/dsk/c0t5000CCA012971518d0s5
d4 -m d14 d24 1
d14 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s4
d24 1 1 /dev/dsk/c0t5000CCA012971518d0s4
d3 -m d13 d23 1
d13 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s3
d23 1 1 /dev/dsk/c0t5000CCA012971518d0s3
d1 -m d11 d21 1
d11 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s1
d21 1 1 /dev/dsk/c0t5000CCA012971518d0s1
d0 -m d10 d20 1
d10 1 1 /dev/dsk/c0t5000CCA01297AE1Cd0s0
d20 1 1 /dev/dsk/c0t5000CCA012971518d0s0
root@lab1 #

root@lab1 # metastat -c
d6 m 29GB d16 d26 (resync-0%)
d16 s 29GB /dev/dsk/c0t5000CCA01297AE1Cd0s6
d26 s 29GB /dev/dsk/c0t5000CCA012971518d0s6
d5 m 20GB d15 d25 (resync-0%)
d15 s 20GB /dev/dsk/c0t5000CCA01297AE1Cd0s5
d25 s 20GB /dev/dsk/c0t5000CCA012971518d0s5
d4 m 20GB d14 d24 (resync-0%)
d14 s 20GB /dev/dsk/c0t5000CCA01297AE1Cd0s4
d24 s 20GB /dev/dsk/c0t5000CCA012971518d0s4
d3 m 15GB d13 d23 (resync-1%)
d13 s 15GB /dev/dsk/c0t5000CCA01297AE1Cd0s3
d23 s 15GB /dev/dsk/c0t5000CCA012971518d0s3
d1 m 32GB d11 d21 (resync-0%)
d11 s 32GB /dev/dsk/c0t5000CCA01297AE1Cd0s1
d21 s 32GB /dev/dsk/c0t5000CCA012971518d0s1
d0 m 20GB d10 d20 (resync-1%)
d10 s 20GB /dev/dsk/c0t5000CCA01297AE1Cd0s0
d20 s 20GB /dev/dsk/c0t5000CCA012971518d0s0



referensi :

Solaris Live Upgrade Software Patch Requirements [ID 1004881.1]
How to Use Solaris Live Upgrade to Upgrade From Solaris 8 to Solaris 10 05/08 (or Later Solaris Releases) [ID 1019995.1]
How to Confirm Solaris Live Upgrade Meets Minimum Patch Requirements [ID 1020045.1]
How to upgrade using Solaris Live Upgrade on host with root drive encapsulated in Disksuite or logical volume manager [ID 1005582.1]
Oracle Solaris Live Upgrade Document Index [ID 1364077.1]

Sabtu, 25 Februari 2012

How to install Solaris 10 using JET (Jumpstart Enterprise Toolkit) (SUNWjet) (Jumpstart)

in Jumpstart server
=====================
* Install SUNWjet
Copy JET-EIS.pkg.bz2 to the server (e.g. into /tmp).
#cp /tmp/JET-EIS.pkg.bz2
Unpack JET-EIS.pkg.bz2 file
#bunzip2 JET-EIS.pkg.bz2
install JEPT.pkg
#pkgadd -d JET.pkg 20

* setup NFS server
* edit file /etc/dfs/dfstab, below detail :
share -F nfs -o ro,anon=0 -d "JET Framework" /opt/SUNWjet
share -F nfs -o ro,anon=0
share -F nfs -o ro,anon=0
share -F nfs -o ro,anon=0 /export/install
* enable nfs server
#svcadm enble /network/nfs/server
* setup client
#cd /opt/SUNWjet/bin
#./copy_solaris_media -d target_dir -n osname media_dir
ex: #./copy_solaris_media -d /data/media -n sol10u20 /cdrom/cdrom0
#./make_template -A -E
ex: #./make_template -A sun4u -E 0:21:33:22:11:e M5000
note : see mac address client in ok prompt with command "banner"
* go to /opt/SUNWjet/Template
* edit template
ex : vi ../Template/M5000
* insert : IP address client dan hostnamenya di /etc/hosts ---> netmask should be same with IP server (infcofing -a)
* go to directory /opt/SUNWjet/bin
#./make_client
ex : #./make_client M5000
successfully if :
-->passed




in Client
==========

* In ok promt :
set value property "local-mac-address? false"
ok> setenv local-mac-address? false
set value property "auto-boot> false"
ok> setenv auto-boot? false

* For instalation process, type command below:
ok> boot net - install

Minggu, 08 Mei 2011

how to set turn off expiry user password UNIX

example :

root@a1zursum01 # passwd -x 99999 ys061114
passwd: password information changed for ys061114


root@a1zursum01 # logins -x -l ys061114
ys061114 1100 other 1 Yudhya Sudarmadi,SA, 26-April 2010
/export/home/ys061114
/usr/bin/bash
LK 082410 7 99999 7

command to view user information in Unix

command to view user information .

#logins -x -l (user_name) will show the details

example :

root@a1zursum01 # logins -x -l ys061114
ys061114 1100 other 1 Yudhya Sudarmadi,SA, 26-April 2010
/export/home/ys061114
/usr/bin/bash
LK 082410 7 42 7