Академический Документы
Профессиональный Документы
Культура Документы
# vxdmpadm getctrl all ----->To get information about the physical controller.
To list all volumes on your primary boot disk, use the command:
# vxprint -t -v -e�aslist.aslist.sd_disk="boot_disk"�
To mirror only those file systems on the root disk that are required to boot
the system, run the following command:
# /etc/vx/bin/vxrootmir altboot_disk
ok nvramrc=devalias vx-altboot_disk
or
# eeprom nvramrc=devalias vx-altboot_disk
To remove the mirror from the root disk,remove the plexes from the disks
other than the root disk
First stop the volume and move to some other disk in that dg.
After that remove the disk from the dg by using the command:
# vxdiskunsetup devicename
To move the volume to some other disk in the dg execute the command:
# vxassist move mktg !mktg01--->will move the volume mktg to a disk other than
mktg01
We can use the vxedit command to rename a disk:(It will not rename the
corresponding subdisks)
We can reserve the disk,so the vxassist command will not make use of that
particular disk unless we specifies the disk name while creating the new volume.
To set the DefaultDG for the VXVM we can set the variouble VXVM_DEFAULTDG or
Prior to Vxvm Ver4.0 the system installed with vxvm will automatically
creates a default disk group which is rootdg.But in later versions it is not
necessary to create the diskgroup while installing the vxvm.We need to create the
Dg only at the time of disks are placing under the controll of vxvm.
# vxdg list
# vxdisksetup -i devicename -----will place the disk under the vxvm controll.
To deport a diskgroup
# vxdg -g dgname deport
To import a diskgroup
# vxdg -g dgname import
# vxprint -l
To upgrade a diskgroup
# vxdg upgrade dgname
By default the disk group is created with the highest version available with
that release of the VXVM.In some cases we need to to create the dg with lower
versions:
# vxprint -l subdisk -------> will display the detailed information about the
specified subdisk.
We can also use the vxassist command for attaching the log plex
# vxassist -g dgname addlog volume disk----this will automatically creates the
subdisk and attches to the plex.
We can detach the subdisks from the existing plexes by using the command
vxsd
# vxsd -g dgname dis sdname ---->will remove the subdisk from the associated plex
in dg.
We can also create the attach the while creating the volume
# vxmake -g dgname -U fsgen vol volanme plex=plename1,plexname2
We can dissociate and remove the plex from the volume in a single stretch:
# vxplex -g dgname -o rm dis plexname----This will do the removal in single step
# vxplex -g dgname dis plex
# vxedit -g dgname -r rm plexname
# vxassist -g dgname make volname size----->The default values for the vxassist
will be specified in the /etc/default/vxassist fiel.We can display that by using
the command
# vxassist help showattrs
We can create the volumes on specified disk by specifying the disk name in
the vxassist.
While we creating the volumes using the vxassist it will initiate the
volumes after creating(we can disable this by specifying the init=none).Using the
-b option with the vxassist will do the initialisation of the volumes in
background.We can use the init=active option also for the same purpose.It will
prevent the empty data plexes in a mirror from syncing.
we can create the plex without specifying the subdisks and later we can add
sd by using the vxsd command:
Now we can create the new volume and attach the plexes to the volume:
# vxtask list---->To list all the vxvm tasks running on the system.-h option cna
be used to display the information about the child tasks also.
# vxtask -p list----->For listing the paused tasks
# vxtask -i tagnamw list ----> will list the tasks with the tagname
# vxtask resume taskid(or tasktag)---->will resume the paused task.
# vxtask pause taskid---> will pause the task.
# vxtask monitor taskid----->will monitor the process
# vxtask abort revoerall---->will abort the process
# vxvol stop volumename ------>will stop the volume.
# vxvol stopall------WIll stop all the volume
# vxvol -g dgname maint volume ------>will put the volume offline
# vxvol start volname ----->will start the volume.
# vxvol startall ---->will start all the volumes
# vxrecover -s volname ----> will also start the volume.
# vxrecover -s -----> to start all the disabled volumes
To mirror a disk:
# vxprint -l diskname -----will display the details of the diskname,from that we
will get the private and public lenght of the disk.
# vxdisk list diskname ----> will also gives the details.
# vxdisksetup -i devicename prioffset=0 privlen=xxxx publen=xxxx----This will add
the disk into the controll of the VXVM.
# vxdg -g dgname adddisk diskname=devicename----->will add the disk into the
particular DG.
# vxmirror -g dgname disk1 disk2--->will mirror the disk1 to disk2
To remove a mirror:
# vxassist -g dgname remove mirror volname----This will remove the mirror from the
volume.
# vxplex -g dgname -o rm dis plexname -----will also remove the mirror plex from
the volume
# vxplex -g dgname dis plexname ------dissociate the plex from the volume
# vxedit -g dgname -r rm plexname ----->will remove the plex from the volume
# vxedit -g dg -v set user=user------> volumeChange ownership of a volume
# vxplex -g dg dis plex-------->Remove Mirror
# vxedit -g dg -r rm plex------>Remove plex.
# vxplex -g dg -o rm dis plex-------------> Remove Mirror and delete plex
# vxassist -g dg convert volume layout=mirror-concat---->To convert the layout to
mirror-concat.
# vxstat -g newdg -i 5 -c 5 -p vol04-02-------Will display the plex iostat(i-
interval,c-count)
# vxevac -g <dg> disk03 disk02----->To move all the subdisks from one disk to
another.
# vxedit -fr rm vol01----------to remove the volume.
# vxmend clear tutil0 vol01-01------to clear the tutil on plex.
# vxedit set failing=off disk05-----To clear the failing flag from a disk.
# vxprint -t -v -e 'aslist.aslist.sd_disk="boot_disk_name"'----->To list all
volumes on the primary boot disk
# vxdg list disk_group_name----to display the version number of the vxvm
# vxdg [-T version] upgrade disk_group_name-----to upgrade the version of the disk
group
# vxdmpadm listctlr all----->To list the controllers attached to the disk which
are attached to the system.
# vxdmpadm getsubpaths ctlr=c1---->To display all paths that are connected to
controller.
# vxprint -l disk03
Disk group: rootdg
Disk: disk03
info: diskid=1234567890.59.vm250e1.veritas.com
assoc: device=c2t2d0s2 type=auto <== NEW
flags: autoconfig ecopy_enabled
device: pubpath=/dev/vx/dmp/c2t2d0s4
privpath =/dev/vx/dmp/c8t2d0s3 ,== NEW
devinfo: publen=35354136 privlen=9167
To exclude the disks and controllers from the vxdiskadm we can create the file
/etc/vx/disks.exclude-----for the disks,mention the disk name as c0t0d0 in one
line
/etc/vx/cntrls.exclude-----for the controllers,mention the controller name as c0
in one line
/etc/vx/enclr.exclude----for the enclosure.
# vxvol -g testdg rdpol round v01-----To set the read policy as round robin.
# vxstat -s -ff home-02 src-02-------To see the failure status of plex
# vxvmconfigbackup-------------------To take the backup of the volume
configuration
# vxconfigd -k -x cleartempdir-------
# vxprint -g datadg -F%name -e 'any pl_.sd_disk="datadisk01"'-------To display the
objects in the disk
# /usr/lib/vxvm/bin/vxencap -A -c -g rootdg -f sliced -s 2048
rootdisk=c1t0d0s2------To encapsulate the rootdisk.
# vxdmpadm getdmpnode nodename=c3t2d1s2------To display the DMP node that control
aphysical path
# vxdmpadm getdmpnode enclosure=enc0----To display the DMP nodes for the specified
enclosure
# vxdmpadm getlungroup dmpnodename=c11t0d10s2------To display the DMP nodes in the
same LUN group as the mentioned DMP node.
# vxdmpadm getsubpaths dmpnodename=c2t66d0s2---------Displays all the paths to the
LUNs that are controlled by the specified DMP nodename.
# vxdmpadm getsubpaths ctlr=c2
# vxdmpadm listctlr all-----To list all the DMP information about the controllers
# vxdmpadm listctlr enclosure=enc0 type=ACME
# vxdmpadm listenclosure enc0
# vxdmpadm listenclosure all
# vxdmpadm iostat start
# vxdmpadm iostat show all
# vxdmpadm iostat start memory=4096
# vxstat -g mydg -s -ff home-02 src-02------To determine which disk is having
write errors
# fsadm -F vxfs -b "newsize" -r /dev/vx/rdsk/testdg/datavol /datavol
# growfs -M /dev/md/rdsk/d0 /mnt
# vxdisk �g datadg resize datadg01 length=8GB---->To resize the disk if the LUN is
resized.
# vxassist �g diskgroup help showattrs----To display the vxassist attributes
To start/stop the VEA server manually � /etc/init.d/isisd start/stop/restart