svm on solaris 10 x86 (ufs )

solaris10-bootbath

while I was playing with a solaris 10 vm under VirtualBox , i changed the disk from port3 to port1 ,this should affect disk path to be (c0t0d0) ,before it was (c0t3d0).

So ,it is ok ,all i need is rebuild (/dev/dsk) and (/dev/rdsk) ,which I did

but still I get that error message and the vm will not boot.

till I found out there is file contains root disk ,this file is (/boot/solaris/bootenv.rc)

So ,I booted solaris in failsafe-mode and root-file-system is mounted under (/a) ,I edited (/a/boot/solaris/bootenv.rc) and corrected the disk as following :

it was

setprop bootpath '/pci@0,0/pci8086,2829@d/disk@3,0:a'

I made it

setprop bootpath '/pci@0,0/pci8086,2829@d/disk@0,0:a'

 

So for any reason on Solaris 10 x86 ,and you changed disk path do these steps

1- boot from cdrom ( or  boot in failsafe mood)
2- delete all under (/dev/dsk/* and /dev/rdsk/* ) ,mostly root will be mounted as (/a)
  #rm /a/dev/dsk/*
  # rm /a/dev/rdsk*
3- delete or rename path_to_inst :
   # mv /a/etc/path_to_inst /a/etc/path_to_inst.org
# touch /a/reconfigure  ( so solaris will rebuild the file during boot )
3- rebuild device tree under affected root filesystem (/a)
devfsadm -r /a
4- check and confirm  parameter (bootpath) inside  file ( /a/boot/solaris/bootenv.rc) and confirm it points to the correct  disk.
for example ls -l /a/dev/dsk/c0t0d0s0 is giving (/devices/pci@0,0/pci8086,2829@d/disk@0,0:a) , you just omit the (/devices) and put the rest inside file.
so , the line will be like
setprop bootpath ‘/pci@0,0/pci8086,2829@d/disk@0,0:a’

Hint: you may also need to edit (menu.lst) ,which is located (/a/boot/grub)to change disk locattion:

title Oracle Solaris 10 x86
root (hd1,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive

example 1: root(hd0,a) <— disk 0 and slice 0 ( slices start with letter a)

example 2: root(hd1,a) <—– disk 1 and slice 0.

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

MegaCli and Solaris

Some SUN servers like (Blade X6270 ) uses lsi raid controller to manage disks.

Important Hint: megacli will not work with lsi 1064 and lsi 1068 controllers

The problem here will come if we have  faulty disk and wants to replace ,DO NOT THINK IT IS STRAIGHT FORWARD AT ALL.

the raid controller will not map disk directly to server ,disk must be in raid-level so the Solaris can detect it and reuse it.

First of all download MegaCli tool from this link http://www.avagotech.com/support/oem/oracle/6gb/sg_x_sas6-r-rem-z

extract the megacli to a folder ,reach that folder and follow this sequence:

1- list all disks ,get the new inserted disk details ( Enlosure ID and Slot Number )

#./MegaCli -PDList -aAll

Adapter #0
………………………output omitted

Enclosure Device ID: 32
Slot Number:  1

2- use Enclosure ID ,Slot number to build raid0 on newly  inserted disk

#./MegaCli -CfgLdAdd -r0 [32:1] -a0

3- do rescan new attached devices

# devfsadm -Cv

you should be able to see the new disk now.

Hint: normally all disks attached to lsi raid will be as raid0 unless another plan was implemented.

Unplugging and plugging back a disk , doesn’t make the controller rebuild the array with that disk,the disk maybe marked as bad and its service LED is on.
Here is what to do:

1- list all disks ,and get EnlosureID and Slot for the Disk with [Foreign State:Foreign ]

# ./MegaCli -PDlist -a0

Hint: I assumed the raid controller is (a0) ,to get list of all available raid controllers (megacli -AdpAllInfo -aAll)

2. mark this disk as good (to switch off service LED )

# ./MegaCli -PDMakeGood -PhysDrv[32:3] -a0

3. scan and assure there is a foreign configuration on the raid controller

# ./MegaCli -CfgForeign -Scan -a0

4. clear this foreign configuration from array

# ./MegaCli -CfgForeign -Clear -a0

Sources :

1- Oracle Doc ID 1671764.1

2- http://hwraid.le-vert.net/wiki/LSIMegaRAIDSAS

Aside | Posted on by | Tagged , , , , , , , | Leave a comment

Solaris 11.2 Webcast

solaris11.2

Today ,there was a big event talking about Solaris 11.2 release

Important Points covered ;
Solaris Life cycle Management
Virtualization and SDN ( Software Driven network)
Solaris Open Stack
Plz don’t miss watching these videos from the following url

http://www.oracle.com/events/us/en/solaris-11-2/index.html

To Download Software and Learn Solaris 11.2

http://www.oracle.com/technetwork/server-storage/solaris11/overview/beta-2182985.html

 

Posted in Uncategorized | 1 Comment

sending email from solaris using mailx

Always use these options with (mailx) command

mailx -v -s “Subject_of_email” recipient@domain.com

then press Enter key on keyboard,then start typing email data,then on a separate line just put (.) and press enter.

if you want to send an  email to john@hotmail.com mthe format is :

#############Start

mailx -v -s “Solarisway” john@hotmail.com (press Enter )

Hi John,(press Enter )

Hope your doing well.(press Enter )

regards.(press Enter )

. (press Enter )

#############End

 

Normally,mailx uses configuration file (/etc/mail/submit.cf) for sending emails,this file is read-only file,so u have to force saving after you finish configuration (:wq!) when using vi editor.

 

Inside that file there is a parameter named (D{MTAHost}),so depending on the value of this parameter,the mailx command will behave as following :

1-if it looks  like D{MTAHost}[127.0.0.1]   , mailx will use IP of (mailhost) which is configured in /etc/hosts

2- if D{MTAHost} has another IP rather than 127.0.0.1,then mailx will use this IP as Relay to send its outgoing emails.

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | Leave a comment

Add SRU to Solaris 11 Repository

How to Update an Oracle Solaris 11.1 Package Repository.

to update your local repositroy directly with new SRU ,you shold do these steps

1-mount the new SRU image from EIS-DVD,or download from oracle

2-sync the directory of local repository with contents from SRU image.

3-Rebuild the search indexes for the repository

4-(option) if you publish your repository over http (means u deployed package server),restart the service

here is commands used to do this :

1. Mount the ISO image as a filesystem.

# mount -F hsfs /root/sru_13   /mnt

2. Import the SRU packages to your existing Oracle Solaris 11.1 repository.

# rsync -aP /mnt/repo/ /rpool/Sol11.1/repo

3. Rebuild the search indexes for the repository.

# pkgrepo rebuild -s /rpool/Sol11.1/repo

4. If the repository is managed by pkgserv, restart the appropriate
service.

# svcadm restart svc:/application/pkg/server:default

So, now you updated your local repository with new patches/updates,your installed packages is not updated yet ,first you can compare between packages installed on your system and the one inside repository

#pkg list -u   —> to list available updates for current installed packages

# pkg update —–> to update all installed packages

or if needed ,you can update a specific package by :

#pkg update pkg_name

Posted in repository, Solaris 11 | Tagged , , , , , , , , | Leave a comment

OVM step by Step

OVM ( Oracle Virtual Machine) environment installation/configuration step by step guide.

In This document,i tried to make it simple as much as I can.

Since,I suffered to understand OVM environment during installation/configuration.

Anyway,to get OVM (Oracle Virtual Machines) ready you need these software:

1- OVM server 3.2.7 ,its size 250 MB

2- OVM Manager 3.2.6 ,its size 2.5 GB.

3- OVM Manager patch 3.2.7,after you install OVM Manager 3.2.6 ,you will apply patch to upgrade it to 3.2.7.

4- Oracle Linux 6.4,its size 3.5 GB,you need it as OVM manager will be installed on Linux.

5- a small package(tightvnc) to be installed on linux after you finish ovm manager installation, link is

https://www.dropbox.com/s/bq8ttdxzd7cx1ak/tightvnc-java-1.3.9-3.noarch.rpm

Use the following link to  download OVM step by step Guide:

https://www.dropbox.com/s/1qwkdb9udi2dku4/OVM_StepByStep.pdf

Posted in OVM | Tagged , , , , , , , , , , , , , , , | 1 Comment

Prepare Oracle Linux or Redhat Linux for Oacle Software

Oracle released an amazing rpm for Linux 5.x and 6.x ,that will do all pre installation tasks to be done on Oracle Linux as well as Redhat Linux.

for both linux(5.x and 6.x) first build your local repository using linux installation image (https://solarisway.wordpress.com/2013/04/22/build-oracle-linux-6-local-repository/ )

for Oracle Linux 5.x :

first get full package name by this command :
# yum list all | grep -i oracle-validated 
output: oracle-validated.x86_64                  1.1.0-17.el5                  installed
# yum install  oracle-validated.x86_64

for Oracle Linux 6.x :

first get full package name by this command :
# yum list all | grep -i oracle-rdbms-server 
then use yum install pkg_name_you_get from_previous_command

 

Posted in Uncategorized | Tagged , , , , , , , , , , , | Leave a comment