Replace disks on veritas volume manager and increase filesystem online

It is usual to get a request to increase volume sizes or replace old disk with a new one,with no downtime for the activity.

Task: a mount point (/u03) needs more  200GB space

the (/u03) is mounted on vxvm volume (/dev/vx/oracle_dg/u03_vol)


Steps: create a new LUN from storage and map to server.

First, create a new LUN from storage and map to server.

Now at command line ,do these steps

# vxdisk -oalldgs list <—– list all available  disks
emc_clariion0_20 auto:cdsdisk u01 oracle_dg     online
emc_clariion0_21 auto:cdsdisk u02 oracle_dg     online
emc_clariion0_22 auto:cdsdisk u03 oracle_dg    online <—– old disk
emc_clariion0_23 auto:none       –             –              online  <—– new disk

# /opt/VRTS/bin/vxdisksetup -i emc_clariion0_23    <———— initialize the new disk
# vxdg -g oracle_dg adddisk u03-new=emc_clariion0_23 <——-add to disk group and name it u03-new
# /opt/VRTS/bin/vxevac -g oracle_dg u03  u03-new<——-move data from source (u03) disk to target (u03-new)  disk
# vxtask list         <———wait till it finishes and no tasks are running )
# vxdg -g oracle_dg rmdisk u03   <——–remove source or old disk from disk group
# vxassist -g oracle_dg maxsize u03-new  <——– get exact available space on new disk
# vxresize -g oracle_dg u03_vol +204794m  <— grow /u03 online
# vxedit -g oracle_dg rename u03-new u03  <—–(optional step) rename the new disk with old name so you will maintain same names and no need to change documents

Now , the file system has been increased with 200 GB.

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

Generating Certificate for iLOM and XSCF


To get a certificate, we do these steps:

1- generate private key (myprivkay.key)

2- generate  Certificate Signing Request (CSR ) from private key. (mycsr.csr)

3- Generate a SSL certificate from CSR file (mypubkey.cert)

4- import both private key (myprivkey.key) and public key (mypubkey.cert) into your


Now lets apply for iLOM and XSCF

Part I: iLOM

iLOM doesn’t have tools to generate keys,so we use any third party tool like openssl as following :

openssl genrsa -out myprivkey.key  2048

openssl req -new -key myprivkey.key  -out  mycsr.csr

Now you have CSR , you can send it to Certificate Authority CA to get signed certificate ,or use openssl to create your own certificate as following

openssl x509 -req -days 365 -in mycsr.csr -signkey myprivkey.key -out mypubkey.cert

In the iLOM SSL server page, perform the following;

Load  Private Key  file(myprivkey.key)

Load Certifcate key file (mypubkey.cert)

Click Save to apply the changes.


XSCF has its built-in command (sethttps) to generate (private key ,CSR, and certifcate ).

Option 1: create your own certifcate by single command

XSCF> sethttps -c selfsign EG Hassaan  Mansoura Example DevDept
CA key and CA cert already exist. Do you still wish to update? [y|n]
Enter passphrase: xxxxxxxx (any word i.e.   sarvoor)
Verifying – Enter passphrase: xxxxxxx (the same word entered before : sarvoor )

XSCF> sethttps -c enable

XSCF> rebootxscf 

Option 2: use Certifcate Authority to get signed certificate

Step A (generate private key )

XSCF> sethttps -c genserverkey

Server key already exists. Do you still wish to update? [y|n] :y

Enter passphrase: xxxxxxxx

Verifying – Enter passphrase: xxxxxxxx


Step B : create CSR

XSCF> sethttps -c gencsr EG sarvoor hassaan  Example DevDept  scf_host


Step C

Send the copied CSR to the CA and request the web server certificate


Step D : import certificate (after copy and paste , Please press Enter and press the “Ctrl” and “D” keys)

XSCF> sethttps -c importca

Please import a certificate:


MIIDdTCCAt6gAwIBAgIBATANBgkqhkiG9w0BAQQFADCBgTELMAkGA1UEBhMCamox: R+OpXAVQvb2tjIn3kO99dq+begECo4mwknW1t7QI7A1BkcW2/MkOolIRa6iP1ZwgJ oPmwAbrGyAvGUtdzUoyIH0jl7dRQrVIRA==



Step F

XSCF> sethttps -c enable

XSCF> rebootxscf


References :

1- ILOM Security Guide Firmware Releases 3.0, 3.1, and 3.2.

2- XSCF User’s Guide ( E25381-01).

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

Adding standard(non-cloned-disk) to a disk group

We have a new LUN created and mapped to a solaris machine with Veritas volume manager.

we tried to add the disk to a disk group, but unfortunately we received this error after  the adding disk command (vxdg -g my_dg adddisk disk_07=emcpower7 )

VxVM vxdg ERROR V-5-1-0 Disk Group my_dg has only cloned disks and tyring to add standard disk to diskgroup. Mix of standard and cloned disks in a diskgroup is not allowed. Please follow the vxdg (1M) man page

If we issue the (vxdisk -o alldgs -e list) , the output is telling disk group(my_dg) has non-cloned disk at all.

So ,the work around is to set disk property (clone=on) and add to disk group ,then again set property(clone=off).

# vxdisk  set emcpower7 clone=on

# vxdg -g   my_dg adddisk   disk_07=emcpower7

# vxdisk  -g  my_dg set disk_07  clone=off

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

Red Hat Enterprise Linux to Oracle Solaris 11 Comparison

Linux administrators can kick start their learning experience when planning Oracle Solaris deployments by reviewing the following summary between Oracle Solaris 11 features and Red Hat Enterprise Linux 7 features. For more information about the Oracle Solaris 11 features, be sure to check out the “Key Links”

Full Article On Oracle


Posted in Uncategorized | Tagged , , | Leave a comment

svm on solaris 10 x86 (ufs )


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/
# 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

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


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

Solaris 11.2 Webcast


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

To Download Software and Learn Solaris 11.2


Posted in Uncategorized | 1 Comment