|
More Resources by
Google: |
|
|
|
|
Gathered
By:
John Kazerooni
The following are a very basic
information about VERTTAS Volume Manager. For more accurate
Information please read complete
VERITAS Volume Manager Manuals.
Please don’t perform any instruction
unless you know what the outcome is.
Important
Notes for Installing VERITAS Volume Manager:
#
pkginfo | grep –i VRTS
#
prtvtoc /dev/rdsk/c0t0d0
#
prtvtoc /dev/rdsk/c0t0d0 > /etc/my_boot_disk_information
#
cd 2location_of_your_packages
#
pkgadd –d . VRTSvxvm VRTSvmman VRTSvmdoc
#
vxlicinst
#
vxinstall
#
PATH=$PATH:/usr/lib/vxvm/bin:/opt/VRTSobgui/bin:/usr/sbin:/opt/VRTSob/bin
#
MANPATH=$MANPATH:/opt/VRTS/man
#
export PATH MANPATH
Important
Notes for how to set up VEA:
#
cd 2location_of_your_packages
#
pkgadd –a ../scripts/VRTSobadmin –d . VRTSob VRTSobgui VRTSvmpro VRTSfspro
#
vxsvc –m (Check or monitor the VEA server is running)
#
vxsvc (Start the VEA server)
#
vea &
The
Most handy Volume Manager commands:
-
# vxdiskadm
-
# vxdctl enable (Force the VxVM
configuration to rescan for the disks. See devfsadm)
-
# vxassist (Assist to
create a VxVM volume.)
-
# vxdisk list rootdisk
(Displays information about the header contents of the root disk.)
-
# vxdg list rootdg (Displays information about the content of the rootdg disk group.)
-
# vxprint –g rootdg –thf |
more (Displays information about volumes in rootdg.)
-
In order to create VERITAS Volume
Manager, you may use the following three methods:
(This article emphases on the CLI
method.)
Steps
to create a disk group:
Steps
to add a disk to a disk group:
#
vxdisk list --or-- #
vxdisk –s list
#
vxdisksetup –i c1t8d0
#
vxdg init accountingdg disk01=c1t8d0
#
vxdg –g accountingdg adddisk disk02=c2t8d0
Steps
to split objects between disk groups:
Steps
to join disk groups:
Steps
to remove a disk from a disk group:
#
vxdg –g accountingdg rmdisk=disk01
Steps
to remove a device from the free disk pool:
#
vxdiskunsetup c2t8d0
Steps
to manage disk group:
#
vxdg deport accountingdg
#
vxdg –C import accountingdg
#
vxdg –h other_hostname deport accountingdg
#
vxdg destroy accountingdg
Steps
to create a VOLUME:
Steps
to mount a VOLUME:
If using ufs:
I
If using VxFS:
Steps
to resize a VOLUME:
Steps
to remove a VOLUME:
Steps
to create a two striped and a mirror VOLUME:
Steps
to create a raid5 VOLUME:
Display
the VOLUME layout:
Add
or remove a mirror to an existing VOLUME:
Add
a dirty region log to an existing VOLUME and specify the disk to use for the drl:
Move
an existing VOLUME from its disk group to another disk group:
To
start a VOLUME:
Steps
to encapsulate and Root Disk Mirroring
# eeprom use-nvramrc?=true
# vxmend off
rootvol-01 (disable the boot disk)
# init 6
OK> devalias
(check available boot disk aliases)
OK> boot
vx-disk01
Write a script to use the “for”
statement to do some work.
# for i in 0 1 2 3 4
>do
>cp –r /usr/sbin
/mydir${i}
>mkfile 5m /mydir${i}
>dd if=/mydir/my_input_file of=/myother_dir/my_output_file
&
>done
|