• English"
  • fran├žais"

vxvm disks

Command vxdisk list
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootdisk     rootdg       online
c1t1d0s2     auto:sliced     rootmir      rootdg       online
c1t2d0s2     auto:none       -            -            online invalid
c1t3d0s2     auto:none       -            -            online invalid
c2t50060E80004340B0d1s2 auto:cdsdisk    datadg02     datadg       online
c2t50060E80004340B0d2s2 auto:cdsdisk    datadg03     datadg       online
c2t50060E80004340B0d3s2 auto:cdsdisk    datadg04     datadg       online
c3t50060E80004340B1d0s2 auto:cdsdisk    datadg01     datadg       online

Initiate a vxvm disk

Command vxdisksetup -i device format=type
type sliced,simple,cds,none
# vxdisksetup -i c1t1d0 format=sliced

The binary vxdisksetup is on the directory /etc/vx/bin/

Encapsulate a vxvm disk

Command vxencap -c -g diskgroup disk=device
# vxencap -c -g rootdg rootdisk=c1t0d0

Add a vxvm disk into a diskgroup

Command vxdg -g diskgroup adddisk disk=device
# vxdg -g datadg adddisk datadg01=c4t2d16s2

Add a disk into VXVM

  • si le disque physique est en erreur sous vxdisk list, il faut alors taper vxdctl enable
# vxdiskadd c2t50060E80004340B1d3

Add or initialize disks
Menu: VolumeManager/Disk/AddDisks
  Here is the disk selected.  Output format: [Device_Name]

  c2t50060E80004340B1d3

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) list

NAME         STATE           ID
rootdg       enabled              1224585528.6.pa-srv44
oracledg     enabled,cds          1226670004.17.pa-srv44

Which disk group [<group>,none,list,q,?] (default: none) oracledg

Use a default disk name for the disk? [y,n,q,?] (default: y) y

Add disk as a spare disk for oracledg? [y,n,q,?] (default: n) n

Exclude disk from hot-relocation use? [y,n,q,?] (default: n)
  The selected disks will be added to the disk group oracledg with
  default disk names.

  c2t50060E80004340B1d3

Continue with operation? [y,n,q,?] (default: y)
  The following disk device has a valid VTOC, but does not appear to have
  been initialized for the Volume Manager.  If there is data on the disk
  that should NOT be destroyed you should encapsulate the existing disk
  partitions as volumes instead of adding the disk as a new disk.
  Output format: [Device_Name]

  c2t50060E80004340B1d3

Encapsulate this device? [y,n,q,?] (default: y) n

  c2t50060E80004340B1d3

Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
  Initializing device c2t50060E80004340B1d3.

Enter desired private region length
[<privlen>,q,?] (default: 2048)
  VxVM  NOTICE V-5-2-88
Adding disk device c2t50060E80004340B1d3 to disk group oracledg with disk
  name oracledg04.

Goodbye.
#
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootdisk     rootdg       online
c1t1d0s2     auto:sliced     rootmir      rootdg       online
c2t50060E80004340B1d0s2 auto:cdsdisk    oracledg01   oracledg     online
c2t50060E80004340B1d1s2 auto:cdsdisk    oracledg02   oracledg     online
c2t50060E80004340B1d2s2 auto:cdsdisk    oracledg03   oracledg     online
c2t50060E80004340B1d3s2 auto:cdsdisk    oracledg04   oracledg     online

grow a LUN

Command vxdisk -g diskgroup resize diskname length=taille
taille example= 8G

Suppress a vxvm disk

Command vxdg -g diskgroup rmdisk diskname
# vxdg -g geddg rmdisk geddg02

You cannot suppress the last disk of a diskgroup.

# vxdg -g geddg rmdisk geddg01
VxVM vxdg ERROR V-5-1-10127 disassociating disk-media geddg01:
        Cannot remove last disk in disk group
# vxprint -g geddg -htr
% 
......
%

dg geddg        default      default  30000    1226501623.79.freyr2b

dm geddg01      c5t50060E80004340B3d11s2 auto 2048 461911296 -
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootdisk     rootdg       online
c1t1d0s2     auto:sliced     rootmir      rootdg       online
c5t50060E80004340B3d11s2 auto:cdsdisk    geddg01      geddg        online
c5t50060E80004340B3d12s2 auto:cdsdisk    produitsdg01  produitsdg   online
c5t50060E80004340B3d13s2 auto:cdsdisk    -            -            online
c5t50060E80004340B3d16s2 auto:cdsdisk    oracledg01   oracledg     online
c5t50060E80004340B3d18s2 auto:cdsdisk    datadg01     datadg       online
  • Suppress the diskgroup

Suppress the physical disk of VXVM control

Command vxdiskunsetup device
# vxdiskunsetup c5t50060E80004340B3d13
# vxdiskunsetup c5t50060E80004340B3d11
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootdisk     rootdg       online
c1t1d0s2     auto:sliced     rootmir      rootdg       online
c5t50060E80004340B3d11s2 auto:none       -            -            online invalid
c5t50060E80004340B3d12s2 auto:cdsdisk    produitsdg01  produitsdg   online
c5t50060E80004340B3d13s2 auto:none       -            -            online invalid
c5t50060E80004340B3d16s2 auto:cdsdisk    oracledg01   oracledg     online
c5t50060E80004340B3d18s2 auto:cdsdisk    datadg01     datadg       online
# devfsadm -C
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootdisk     rootdg       online
c1t1d0s2     auto:sliced     rootmir      rootdg       online
c5t50060E80004340B3d11s2 auto            -            -            error
c5t50060E80004340B3d12s2 auto:cdsdisk    produitsdg01  produitsdg   online
c5t50060E80004340B3d13s2 auto            -            -            error
c5t50060E80004340B3d16s2 auto:cdsdisk    oracledg01   oracledg     online
c5t50060E80004340B3d18s2 auto:cdsdisk    datadg01     datadg       online
Command vxdisk rm device
# vxdisk rm c5t50060E80004340B3d11s2
# vxdisk rm c5t50060E80004340B3d13s2
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootdisk     rootdg       online
c1t1d0s2     auto:sliced     rootmir      rootdg       online
c5t50060E80004340B3d12s2 auto:cdsdisk    produitsdg01  produitsdg   online
c5t50060E80004340B3d16s2 auto:cdsdisk    oracledg01   oracledg     online
c5t50060E80004340B3d18s2 auto:cdsdisk    datadg01     datadg       online
  • Bookmark "vxvm disks" at del.icio.us
  • Bookmark "vxvm disks" at Google
  • Bookmark "vxvm disks" at Technorati
  • Bookmark "vxvm disks" at Live Bookmarks
  • Bookmark "vxvm disks" at Facebook
  • Bookmark "vxvm disks" at Twitter

en/solaris/veritas/disk.txt · Last modified: 2010/05/14 14:44 by admin