Beruflich Dokumente
Kultur Dokumente
Q-2 How to remove a disk from a disk group in Veritas Volume Manager?
Ans: To remove a disk, disk90, from a disk group, homedg, in Veritas Volume
Manager:
# vxdg -g homedg rmdisk disk90
Q-4 How to list all disks and display their status in VxVM?
Ans: # vxdisk list
Q-5 How to remove a grayed out or obsolete disk, or remove a disk from a
disk group in Veritas Volume Manager?
Ans: # vxdisk rm disk01
Q-7 How to add or bring a disk under Veritas Volume Manager control?
Ans: To add or bring a disk under Veritas Volume Manager control:
# vxdiskadd c0t0d1
or
# vxdisksetup -i c0t0d1
Note: It might help to newfs the s2 slice of the disk and perform a vxdctl
enable to get it to add a disk.
Q-8 How to remove a volume and any subdisks and plexes associated in
VxVM?
Ans: # vxedit -rf rm volume_name
Q-9 How to rename the disk disk90 to be called disk80 in the group
rootdg in Veritas Volume Manager?
Ans: # vxedit -g rootdg rename disk90 disk80
Q-10 How to set disk90 in the group homedg to be a hot spare in Veritas
Volume Manager?
Ans: # vxedit -g homedg set spare=on disk90
Disk Group
Q-6 How to create a disk group with a specified disk group version no.?
Ans: # vxdg –T <DG version> init <disk group>
Q-7 How to make a non CDS disk group to CDS disk group or vice versa?
Ans: # vxdg –g <disk group> set cds=on|off
Mixed Questions:
Q-2 How set the number of kernel thread in Veritas Volume Manager?
Ans: # vxiod set 10
Note: This is the daemon that allows for extended I/O calls without blocking
calling processes. As this is a kernel thread you cannot see it with ps
command so you have to use the vxiod command to see if it is running.
If you wanted to put another subdisk on this disk then you would have an
offset of the size of the previous subdisk (10000 in our case):
# vxmake sd subdisk-81 disk80,10000,20000
Q-8 How to mirror all the volumes on the disk rootdisk to disk90 in
Veritas Volume Manager?
Ans: # vxmirror rootdisk disk90
Q-9 How to rebuild the partition table after a root disk failure in Veritas
Volume Manager?
Ans: To rebuild the partition table after recovering from a root disk failure after re-
mirroring the disk in Veritas Volume Manager:
# vxmksdpart -g rootdg diskpart 1 0x03 0x01
Q-12 How to display all the information about plexes in Veritas Volume
Manager?
Ans: # vxprint -l <plex-name>
OR
# vxprint –lp
Q-13 How to display all the information about subdisks in Veritas Volume
Manager?
Ans: # vxprint -l <diskname>
OR
# vxprint –st
Q-14 How to display all the information about volumes in Veritas Volume
Manager?
Ans: # vxprint -l volumename
OR
# vxprint -vl
OR
# vxprint –vt
Q-15 How to list all the volumes on a boot disk Veritas Volume Manager?
Ans: # vxprint -t -v -e 'aslist.aslist.sd_disk="boot-disk-name"'
Q-23 How to trace all the I/O on the selected volume in Veritas Volume
Manager?
Ans: # vxtrace <volume-name>
Q-31 How to get the path of a particular disk or how to check the enclosure
of a particular device?
Ans # vxdmpadm getsubpaths dmpnodename=<device name (c1t2d0)>
Or
# vxdisk list <device name (c1t2d0)>
Q-32 How to restart VxVM configuration Daemon?
Ans # vxconfigd -k
Q-33 How to find the actual disk device name while disks are showing in
enclosure based naming scheme?
Note: When disks are showing in enclosure based scheme, is shows disks
name as EMC0_0, EMC0_1 rather than c0t0d0
Ans # vxdisk list –e <enc disk name (ENC0_1)>
Q-34 How to start failed VxVM object, which got failed due to changed from
OS based naming scheme to enclosure based naming.
Ans (1) First deport the disk group
(2) Run below given command
# /etc/vx/bin/vxdarestore
(3) Now import the disk group.
Q-35 How to reserve a disk for special purpose or vice versa? (Reserve
disk can’t use for normal volume operation)
Q-38 How many partitions are created in a disk when we initialize the disk
under VxVM?
Ans: 2 partitions
Private region created on slice 3
Public region created on slice4
Q-43 How to display free space on the disks in Veritas volume Manager?
Ans: # vxdg free
Q-44 How to find how much a volume can be grown by in Veritas Volume
Manager?
Ans: # vxassist maxgrow <volume-name>
Q-45 How to find the largest raid5 partition you can have in Veritas Volume
Manager?
Ans: # vxassist maxsize layout=raid5
Q-46 How to find the largest stripe you can have in VxVM?
Ans: # vxassist maxsize layout=stripe
Q-47 How to move a volume to another disk except a particular one in Veritas
Volume Manager?
Ans: To move a volume vg01 to any other disk except disk90 in Veritas Volume
Manager:
# vxassist move vg01 !disk90
Q-48 How to set a preferred plex to read from in Veritas Volume Manager?
Ans: # vxvol rdpol prefer <volume-name> <plex-name>
Q-49 How to set a round robin read policy on the volume in Veritas Volume
Manager?
Ans: # vxvol rdpol round volume_name
Q-51 How to add a log disk for a volume in Veritas Volume Manager?
Ans: To add a log disk for a raid5 or mirror of a volume in Veritas Volume
Manager:
# vxassist addlog volume-name
Example to make a 50 mb mirror on volume called vg01 using any two free
disks:
# vxassist mirror vg01 50m layout=mirror
Example to make a volume called vg01 to be 100m big using the disk disk80:
# vxassist –g <DG> make <vol> 100m disk80
Q-58 How to create a volume with a mirror and log in Veritas Volume
Manager?
Ans: Example to make a volume named vg01 with 50mb stripe disk using disks
disk80 and disk90 and mirror this on a stripped mirror using disk92 and
disk95 and use a log subdisk:
# vxassist–g <DG> make <vol> layout=mirror,stripe,log disk80
disk90 disk92 disk95
Q-61 How to mirror a volume on any free disk in Veritas Volume Manager?
Ans: To mirror a volume vg01 on any free disk in Veritas Volume Manager:
# vxassist mirror vg01
Q-64 How to verify the main daemon for Veritas Volume Manager?
Ans: vxconfigd is the main daemon of Veritas Volume Manager which must be
running at all times. It is started at system startup.
We can check its status by below given way:
# vxdctl mode