Monday, 6 January 2014

VERITAS DISK INITIALIZATION

====================Veritas disk admin===================
1)to list disk
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
NOTE:- virtual disks which r created from zfs volumes are not available under veritas but these r identified
in veritas device discovery layer.
-bash-4.1# vxddladm list
Devices discovered on the system
===================================
hba -
        port -
                target -
                        device c2d1s2
                        device c2d4
                        device c2d6
                        device c2d8s2
                        device c2d10s2
                        device c2d2s2
                        device c2d3
                        device c2d5
                        device c2d7
                        device c2d9s2
                        device c2d11s2
                        device c2d0s2

2)i assigned slice as disk but these are failed to initialize under veritas control
-bash-4.1# vxdisksetup -i c2d11
VxVM vxdisksetup ERROR V-5-2-1814 c2d11: Invalid disk device for 'cdsdisk' format
-bash-4.1# vxdisksetup -i c2d11 format=sliced
VxVM vxedvtoc ERROR V-5-1-8300 UNKNOWN ERROR WHILE WRITTING VTOC
-bash-4.1# vxdisk init c2d11
VxVM vxdisk ERROR V-5-1-5433 Device c2d11: init failed:
        Disk device cannot be used as a CDS disk

3)to bring newly added disk under control of veritas
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
-bash-4.1# vxdisk scandisks new
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d12s2      auto:none       -            -            online invalid
c2d13s2      auto:none       -            -            online invalid

4)i assigned file as disk but these are failed to initialize under veritas control

-bash-4.1# vxdisksetup -i c2d13
VxVM vxdisksetup ERROR V-5-2-1814 c2d13: Invalid disk device for 'cdsdisk' format
-bash-4.1# vxdisk init c2d13
VxVM vxdisk ERROR V-5-1-5433 Device c2d13: init failed:
        Disk device cannot be used as a CDS disk

5)to convert disk which is used in zfs to conver vxvm
-bash-4.1# dd  if=/dev/zero of=/dev/rdsk/c2d16s2  oseek=18 bs=512 count=1
1+0 records in
1+0 records out

-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:none       -            -            online invalid
c2d17s2      auto:none       -            -            online invalid
c2d18s2      auto:none       -            -            online invalid

6)to initialize disk
-bash-4.1# vxdisk init c2d18
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:none       -            -            online invalid
c2d17s2      auto:none       -            -            online invalid
c2d18s2      auto:cdsdisk    -            -            online

-bash-4.1# vxdisksetup -i c2d17
-bash-4.1# vxdisksetup -i c2d16 format=sliced
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:sliced     -            -            online
c2d17s2      auto:cdsdisk    -            -            online
c2d18s2      auto:cdsdisk    -            -            online

-bash-4.1# vxdisksetup -i c2d15 format=simple
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:simple     -            -            online
c2d16s2      auto:sliced     -            -            online
c2d17s2      auto:cdsdisk    -            -            online
c2d18s2      auto:cdsdisk    -            -            online

-bash-4.1# vxdisk -s list c2d15s2
Disk:   c2d15s2
type:   auto
flags:  online ready private autoconfig autoimport
guid:   -
udid:   DGC%5FRAID%205%5FCK200073400372%5F60060160B7061F00556071F947BFDC11
site:    -
diskid: 1388687300.51.solaris2
dgname:
dgid:
hostid:
info:   format=simple,privoffset=1,pubslice=3,privslice=3
-bash-4.1# vxdisk -s list c2d16s2
Disk:   c2d16s2
type:   auto
flags:  online ready private autoconfig autoimport
guid:   -
udid:   DGC%5FRAID%205%5FCK200073400372%5F60060160B7061F004674C20148BFDC11
site:    -
diskid: 1388687192.50.solaris2
dgname:
dgid:
hostid:
info:   format=sliced,privoffset=1,pubslice=4,privslice=3
-bash-4.1# vxdisk -s list c2d17s2
Disk:   c2d17s2
type:   auto
flags:  online ready private autoconfig autoimport
guid:   {572ee1a0-73db-11e3-a1f6-00144ff8e18d}
udid:   DGC%5FRAID%205%5FCK200073400372%5F60060160B7061F004774C20148BFDC11
site:    -
diskid: 1388687165.49.solaris2
dgname:
dgid:
hostid:
info:   format=cdsdisk,privoffset=256,pubslice=2,privslice=2

sliced                public                   private

sliced                 4                           3
simple                 3                           3
cds                    2/7                         2/7
[[[  or ]]]
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:none       -            -            online invalid
c2d17s2      auto:none       -            -            online invalid
c2d18s2      auto:none       -            -            online invalid
-bash-4.1# vxdiskadd c2d18
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
  Here is the disk selected.  Output format: [Device_Name]
  c2d18
Continue operation? [y,n,q,?]  (default: y) y
  You can choose to add this disk to an existing disk group, a
  new disk group, or leave the disk available for use by future
  add or replacement operations.  To create a new disk group,
  select a disk group name that does not yet exist.  To leave
  the disk available for future use, specify a disk group name
  of "none".
Which disk group [<group>,none,list,q,?]  (default: none)
Add site tag to disk? [y,n,q,?]  (default: n)
  The disk will be initialized and left free for use as a replacement
  disk.
  c2d18
Continue with operation? [y,n,q,?]  (default: y)
  Initializing device c2d18.
Enter the desired format
[cdsdisk,sliced,simple,q,?]  (default: cdsdisk)
Enter desired private region length
[<privlen>,q,?]  (default: 65536)
Goodbye.
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:none       -            -            online invalid
c2d17s2      auto:none       -            -            online invalid
c2d18s2      auto:cdsdisk    -            -            online

[[[[[ or ]]]]]
-bash-4.1# vxdiskadm
Volume Manager Support Operations
Menu: VolumeManager/Disk
 1      Add or initialize one or more disks
 2      Encapsulate one or more disks
 3      Remove a disk
 4      Remove a disk for replacement
 5      Replace a failed or removed disk
 6      Mirror volumes on a disk
 7      Move volumes from a disk
 8      Enable access to (import) a disk group
 9      Remove access to (deport) a disk group
 10     Enable (online) a disk device
 11     Disable (offline) a disk device
 12     Mark a disk as a spare for a disk group
 13     Turn off the spare flag on a disk
 14     Unrelocate subdisks back to a disk
 15     Exclude a disk from hot-relocation use
 16     Make a disk available for hot-relocation use
 17     Prevent multipathing/Suppress devices from VxVM's view
 18     Allow multipathing/Unsuppress devices from VxVM's view
 19     List currently suppressed/non-multipathed devices
 20     Change the disk naming scheme
 21     Get the newly connected/zoned disks in VxVM view
 22     Change/Display the default disk layouts
 23     Dynamic Reconfiguration Operations
 list   List disk information

 ?      Display help about menu
 ??     Display help about the menuing system
 q      Exit from menus
Select an operation to perform: 1
Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
  Use this operation to add one or more disks to a disk group.  You can
  add the selected disks to an existing disk group or to a new disk group
  that will be created as a part of the operation. The selected disks may
  also be added to a disk group as spares. Or they may be added as
  nohotuses to be excluded from hot-relocation use. The selected
  disks may also be initialized without adding them to a disk group
  leaving the disks available for use as replacement disks.
  More than one disk or pattern may be entered at the prompt.  Here are
  some disk selection examples:
  all:          all disks
  c3 c4t2:      all disks on both controller 3 and controller 4, target 2
  c3t4d2:       a single disk (in the c#t#d# naming scheme)
  xyz_0 :       a single disk (in the enclosure based naming scheme)
  xyz_ :        all disks on the enclosure whose name is xyz
Select disk devices to add: [<pattern-list>,all,list,q,?] list
DEVICE       DISK         GROUP        STATUS
c2d0         -            -            ZFS
c2d1         -            -            ZFS
c2d8         -            -            online invalid
c2d9         -            -            online invalid
c2d10        -            -            online invalid
c2d11        -            -            online invalid
c2d15        -            -            online invalid
c2d16        -            -            online invalid
c2d17        -            -            online invalid
c2d18        -            -            online
Select disk devices to add: [<pattern-list>,all,list,q,?] c2d17
  Here is the disk selected.  Output format: [Device_Name]
  c2d17
Continue operation? [y,n,q,?]  (default: y)
  You can choose to add this disk to an existing disk group, a
  new disk group, or leave the disk available for use by future
  add or replacement operations.  To create a new disk group,
  select a disk group name that does not yet exist.  To leave
  the disk available for future use, specify a disk group name
  of "none".
Which disk group [<group>,none,list,q,?]  (default: none)
Add site tag to disk? [y,n,q,?]  (default: n)
  The disk will be initialized and left free for use as a replacement
  disk.
  c2d17
Continue with operation? [y,n,q,?]  (default: y)
  Initializing device c2d17.
Enter the desired format
[cdsdisk,sliced,simple,q,?]  (default: cdsdisk)
Enter desired private region length
[<privlen>,q,?]  (default: 65536)
Add or initialize other disks? [y,n,q,?]  (default: n)
Volume Manager Support Operations
Menu: VolumeManager/Disk
 1      Add or initialize one or more disks
 2      Encapsulate one or more disks
 3      Remove a disk
 4      Remove a disk for replacement
 5      Replace a failed or removed disk
 6      Mirror volumes on a disk
 7      Move volumes from a disk
 8      Enable access to (import) a disk group
 9      Remove access to (deport) a disk group
 10     Enable (online) a disk device
 11     Disable (offline) a disk device
 12     Mark a disk as a spare for a disk group
 13     Turn off the spare flag on a disk
 14     Unrelocate subdisks back to a disk
 15     Exclude a disk from hot-relocation use
 16     Make a disk available for hot-relocation use
 17     Prevent multipathing/Suppress devices from VxVM's view
 18     Allow multipathing/Unsuppress devices from VxVM's view
 19     List currently suppressed/non-multipathed devices
 20     Change the disk naming scheme
 21     Get the newly connected/zoned disks in VxVM view
 22     Change/Display the default disk layouts
 23     Dynamic Reconfiguration Operations
 list   List disk information

 ?      Display help about menu
 ??     Display help about the menuing system
 q      Exit from menus
Select an operation to perform: q
Goodbye.
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:none       -            -            online invalid
c2d17s2      auto:cdsdisk    -            -            online
c2d18s2      auto:cdsdisk    -            -            online

 [[[[[[[[[ or ]]]]]]]]]]
-bash-4.1# vxdisk init c2d16
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:cdsdisk    -            -            online
c2d17s2      auto:cdsdisk    -            -            online
c2d18s2      auto:cdsdisk    -            -            online

7)to unset device form veritas
-bash-4.1# vxdisk destroy c2d17
vxdisk list-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:cdsdisk    -            -            online
c2d17s2      auto:none       -            -            online invalid
c2d18s2      auto:none       -            -            online invalid
-bash-4.1# vxdiskunsetup -C c2d16
-bash-4.1# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:ZFS        -            -            ZFS
c2d8s2       auto:none       -            -            online invalid
c2d9s2       auto:none       -            -            online invalid
c2d10s2      auto:none       -            -            online invalid
c2d11s2      auto:none       -            -            online invalid
c2d15s2      auto:none       -            -            online invalid
c2d16s2      auto:none       -            -            online invalid
c2d17s2      auto:none       -            -            online invalid
c2d18s2      auto:none       -            -            online invalid

No comments:

Post a Comment