Unable to add disk to VG group.

Hi,

I am new to solaris administration. I have scan the new EMC SAN disk. I am able to see the disk when i run the powermt display dev=all command o/p. I want to format the disk and add file system to that disk.

Can have formated the disk. and this the o/p of my format

bash-3.00# prtvtoc /dev/rdsk/emcpower65c
* /dev/rdsk/emcpower65c partition map
*
* Dimensions:
*     512 bytes/sector
*     128 sectors/track
*      15 tracks/cylinder
*    1920 sectors/cylinder
*   36828 cylinders
*   36826 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00          0    263040    263039
       1      3    01     263040    263040    526079
       2      5    01          0  70705920  70705919
       6      4    00     526080  70179840  70705919

I want to add this disk to veritas volume manager.
When I run the command vxdisk -o alldgs list
I see my disk listed as online

emcpower65s2 auto:none       -            -            online invalid

It is erroring out when I am trying to create a disk group.

bash-3.00# vxdg init mytestdg mytestdg01=emcpower65s2
VxVM vxdg ERROR V-5-1-585 Disk group mytestdg: cannot create: Disk private region contents are invalid

I tried to use vxdisksetup -ie emcpower65s2 . It saying that unable to find the disk.
it has to be CTDS format
I tried even that it is not working out. Can you please let me know how to clear this error and how to get CTDS values.

Thanks in advance.

Hi,
Online invalid means the disk is visible to OS but it is not in control of VxVM
you need to run

vxdisksetup -i <diskname> --- to get the disk in control of VxVm

observer the change after this command
vxdisk list

too add the disk in DG

vxdg init diskgroup diskname=newdiskname
vxdg -g diskgroup adddisk diskname=newdiskname

observer change
vxdisk list or vxlist disk

saurabh84g thanks for the reply. I am able to see the disk on vxdisk list.
But the thing is When I am trying to initialize the disk using /etc/vx/bin/vxdisksetup -i emcpower65s2 I am
I am getting error. following error.
bash-3.00# vxdisksetup -i emcpower65s2
VxVM vxdisksetup ERROR V-5-2-2206 emcpower65s2: An invalid device address was specified; it must be of
the form cCtTdD, mcCtTdD or <enclosurename>_<diskno> where

C = host bus adapter controller number
T = target device controller number, if used
D = logical unit \(disk\) number within target device controller

&lt;enclosurename&gt; is the logical name of the enclosure to which the
                disk belongs
&lt;diskno&gt; is the logical number of the disk

bash-3.00#

Please let me know if I am doing it the right way. I think I am missing the correct disk ip. Please help in finding the correct disk id.

In old versions of VXVm you cannot use emcpower devices with vxdisksetup.

use vxdisk -e list to view the the cXtYdZ name related to emcpower.

For example

in this case the emcpower0 is c4t50060E800043BBE0d4s2

you can try

vxdisksetup -i c4t50060E800043BBE0d4

Note that I exclude the "s2" at end of command

I hope that useful for you.