Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

How Will You Replace A Faulty Disk In Vxvm?

Answer»

A disk which has FAILED can be SEEN from the output of vxdisk list command. The disk device ctd will be missing from the output and it can be seen as failed was: c#t#d#. This confirms that the disk has indeed failed.

We can use vxdiskadd menu OPTIONS to REPLACE the faulted disk. Choose option 5 from the men, and then list the failed disk using 'list' option. We would have to choose an alternate disk for the replacement. The list of available disks is also shown by vxdiskadd. Press 'y' and complete the replacement activity.

A disk which has failed can be seen from the output of vxdisk list command. The disk device ctd will be missing from the output and it can be seen as failed was: c#t#d#. This confirms that the disk has indeed failed.

We can use vxdiskadd menu options to replace the faulted disk. Choose option 5 from the men, and then list the failed disk using 'list' option. We would have to choose an alternate disk for the replacement. The list of available disks is also shown by vxdiskadd. Press 'y' and complete the replacement activity.

2.

Can You Import A Dg With Incomplete Set Of Disks?

Answer»

Yes, If some of the DISKS in a Diskgroup have failed, you can IMPORT the DG USING –f option 

# Vxdg –c import diskgroup

Yes, If some of the disks in a Diskgroup have failed, you can import the DG using –f option 

# Vxdg –c import diskgroup

3.

What Is Stored In Problem Of A Vxvm Disk? Do All The Disks Of A Diskgroup Have The Same Information In Their Private Region?

Answer»

The private region of a VxVM disk stored disk header LABEL and configuration information about VxVM objects such as VOLUMES, plexes and SUB disks.

Yes, each disk in a diskgroup STORES an entire copy of the configuration information.

The private region of a VxVM disk stored disk header label and configuration information about VxVM objects such as volumes, plexes and sub disks.

Yes, each disk in a diskgroup stores an entire copy of the configuration information.

4.

Where Is The Diskgroup Configuration Information Is Stored In Vxvm?

Answer»

The DG configuration info is STORED in /etc/vx/cbr/bk directory. Last 5 configuration CHANGES are stored.

The DG configuration info is stored in /etc/vx/cbr/bk directory. Last 5 configuration changes are stored.

5.

What Is The Role Of Vxconfigd Daemon?

Answer»
  • Vxconfigd daemon handles all configuration management tasks for VxVM OBJECTS. It MAINTAINS disk and disk group configuration details, communicates configuration changes to the KERNEL, and modifies the persistent configuration information stored on disks.
  • Vxconfigd provides the interface between VxVM commands and the kernel device drivers.
  • Vxconfigd handles configuration change requests from VxVM utilities, communicates the change requests to the VxVM kernel, and modifies configuration information stored on disk.
  • Vxconfigd also initializes VxVM when the SYSTEM is booted.
  • So PRACTICALLY any command which changes the configuration of VxVM objects (plexes, volumes) interact with vxconfigd daemon.

6.

Can You Reduce A Fs In Vxvm? What Is The Risk Involved?

Answer»

There are a few risks and issues involved while reducing a FILESYSTEM in VxVM.

  • UFS volumes cannot be SHRUNK, only grow operation is permitted.
  • VxFS volumes must be MOUNTED for grow and shrink operation; if it is unmounted no operation can be performed
  • You cannot resize a volume that contains plexes with different LAYOUT types (e.g concat and stripe). Attempting to do so results in the following error message:

VxVM vxresize ERROR V-5-1-2536 Volume has different

Organization in each mirror 

To resize such a volume successfully, you must FIRST reconfigure it so that each data plex has the same layout type.

There are a few risks and issues involved while reducing a Filesystem in VxVM.

VxVM vxresize ERROR V-5-1-2536 Volume has different

Organization in each mirror 

To resize such a volume successfully, you must first reconfigure it so that each data plex has the same layout type.

7.

If, Vxdisk List Command Gives You Disks Status As "error", What Steps You Will Follow To Make The Respective Disks Online?

Answer»

If you FACED this issue because of fabric disconnection then simply do vxdisk scandisks, otherwise unset up the DISK using /etc/vx/bin/vxdisksetup and setup the DISKS again using /etc/vx/bin/vxdisksetup, this will definitely help! [ /etc/vx/bin/vxdisksetup will REMOVE the private region from the disk and destroys data, backup the data before using this OPTION]

If you faced this issue because of fabric disconnection then simply do vxdisk scandisks, otherwise unset up the disk using /etc/vx/bin/vxdisksetup and setup the disks again using /etc/vx/bin/vxdisksetup, this will definitely help! [ /etc/vx/bin/vxdisksetup will remove the private region from the disk and destroys data, backup the data before using this option]

8.

What Is The Private Region In Vxvm?

Answer»

Private region stores the STRUCTURED VxVM INFORMATION; it also stores the disk ID and disk GEOMETRY. In short words it has METADATA of the disk.

Private region stores the structured VxVM information; it also stores the disk ID and disk geometry. In short words it has metadata of the disk.

9.

How Will You List The Disks, Which Are In Different Disk Groups?

Answer»

vxdisk LIST is the COMMAND will list the disks from the DG which is CURRENTLY imported; you can CHECK the same using vxprint command too. Vxdisk -o alldgs list command list all the disks which are in DIFFERENT dg's.

vxdisk list is the command will list the disks from the DG which is currently imported; you can check the same using vxprint command too. Vxdisk -o alldgs list command list all the disks which are in different dg's.

10.

How Will You Setup And Unset Up Disks Explicitly Using Vxvm?

Answer»

You can USE /etc/vx/bin/vxdisksetup to UNSET up the DISK, and /etc/vx/vxdisksetup to SETUP the disk.

You can use /etc/vx/bin/vxdisksetup to unset up the disk, and /etc/vx/vxdisksetup to setup the disk.

11.

How Will You Grow/shrink The Volume/file System? What Is The Meaning Of Grow By And Grow To Options? What Is The Meaning On Shrink To And Shrink By Options?

Answer»

vxassist command is used to do all volume administration; following is the DESCRIPTION and syntax.

Grow by OPTION: This is will grow your file system by adding new SIZE to the existing file system.

Grow to option: This will grow your file system as per the new size. This WILL NOT ADD new size to the existing one.

Shrink by option: This will shrink your file system by REDUCING new size from existing file system.

Shrinkto option: This will shrink your file system as per the new size. This WILL NOT REDUCE the file system by reducing new size.

Command: vxassist -g [growto, growby, shrinkto, shrink by] length

vxassist command is used to do all volume administration; following is the description and syntax.

Grow by option: This is will grow your file system by adding new size to the existing file system.

Grow to option: This will grow your file system as per the new size. This WILL NOT ADD new size to the existing one.

Shrink by option: This will shrink your file system by reducing new size from existing file system.

Shrinkto option: This will shrink your file system as per the new size. This WILL NOT REDUCE the file system by reducing new size.

Command: vxassist -g [growto, growby, shrinkto, shrink by] length

12.

How Will You Add New Disk To The Existing Disk Group?

Answer»

RUN vxdisk ADD command, which will open menu driven program to do VARIOUS DISK operations, select add DISKS option or you can use another command vxdisk add.

Run vxdisk add command, which will open menu driven program to do various disk operations, select add disks option or you can use another command vxdisk add.

13.

What Is The Basic Difference Between Private Disk Group And Shared Disk Group?

Answer»

PRIVATE DG: The DG which is only visible for the host on which you have created it, if the host is a part of CLUSTER, the private DG will not be visible to the other cluster nodes.

SHARED DG: The DG which is shareable and visible to the other cluster nodes.

Private DG: The DG which is only visible for the host on which you have created it, if the host is a part of cluster, the private DG will not be visible to the other cluster nodes.

Shared DG: The DG which is shareable and visible to the other cluster nodes.

14.

Which Are The Different Layouts For Volumes In Vxvm?

Answer»

MIRROR, STRIPED, concat (DEFAULT one), RAID 5, stripe-mirror, mirror-stripe.

Mirror, striped, concat (default one), raid 5, stripe-mirror, mirror-stripe.

15.

How Will You Create Private And Shared Disk Group Using Vxvm?

Answer»

For Private DG Command: vxdg INIT

For SHARED DG Command: vxdg -s init < DISK1 disk2 disk3 &GT;

For Private DG Command: vxdg init

For Shared DG Command: vxdg -s init < disk1 disk2 disk3 >

16.

Name The Mandatory Disk Group In Vxvm 3.5? How Will You Configure Vxvm In 3.5?

Answer»

Rootvg is the MANDATORY diskgroup in VXVM 3.5, install is the command to configure VxVM, It will CREATE the disk GROUPS, initializes the disks and adds them to the GROUP.

Rootvg is the mandatory diskgroup in VxVM 3.5, install is the command to configure VxVM, It will create the disk groups, initializes the disks and adds them to the group.

17.

How To Upgrade A Disk Group?

Answer»

# vxdg UPGRADE &LT;DISK GROUP&GT;

It will upgrade the DG to the highest DG version supported by VxVM.

# vxdg upgrade <disk group>

It will upgrade the DG to the highest DG version supported by VxVM.

18.

How To Destroy A Disk Group?

Answer»

# vxdg DESTROY &LT;DISK GROUP&GT;

# vxdg destroy <disk group>

19.

How To Join Two Dgs Into One?

Answer»

# vxdg join &LT;source DG&GT; <TARGET DG>

# vxdg join <source DG> <target DG>

20.

How To Split A Disk Group To Form A New Disk Group?

Answer»

# vxdg –o expand SPLIT &LT;OLD DG> <new DG> disk01 disk02

It will CREATE a new DG with two specified disks.

# vxdg –o expand split <old DG> <new DG> disk01 disk02

It will create a new DG with two specified disks.

21.

How To Move Disk Group Object From One Dg To Another?

Answer»

# vxdg –o EXPAND move

# vxdg –o expand move datadg newdata dg disk01

It will move the ENTIRE ASSOCIATED OBJECT with disk02 from datadog to NEW datadog.

# vxdg –o expand move

# vxdg –o expand move datadg newdata dg disk01

It will move the entire associated object with disk02 from datadog to new datadog.

22.

How To Forcible Import The Disk Group?

Answer»

# vxdg –f IMPORT &LT;DISK GROUP&GT;

# vxdg –f import <disk group>

23.

How To Clear Locks On Disk Group During Import?

Answer»

# vxdg –C IMPORT &LT;DISK GROUP&GT;

# vxdg –C import <disk group>

24.

How To Rename A Disk Group During Deport Operation?

Answer»

# vxdg –n <NEW DISK GROUP> DEPORT <disk group>

# vxdg –n <new disk group> deport <disk group>

25.

How To Rename A Disk Group During Import Operation?

Answer»

# vxdg –t –n <new DISK GROUP&GT; IMPORT <disk group>

# vxdg –t –n <new disk group> import <disk group>

26.

How To Disable/deport A Disk Group?

Answer»

# vxdg DEPORT &LT;DISK GROUP&GT;

# vxdg deport <disk group>

27.

How To Import A Destroyed Disk Group?

Answer»

First you must KNOW the DG ID of the destroyed disk group name. You can get the DG ID by displaying the INCLUDED disk of destroyed DG.

# vxdg IMPORT &LT;DG ID>

First you must know the DG ID of the destroyed disk group name. You can get the DG ID by displaying the included disk of destroyed DG.

# vxdg import <DG ID>

28.

How To Import A Disk Group?

Answer»

# vxdg IMPORT &LT;DISK GROUP&GT;

# vxdg import <disk group>

29.

How To Make A Non Cds Disk Group To Cds Disk Group Or Vice Versa?

Answer»

# vxdg –g SET &LT;DISKGROUP&GT; cds=on|off

# vxdg –g set <diskgroup> cds=on|off

30.

How To Create A Disk Group With A Specified Disk Group Version No.?

Answer»

# vxdg –G <DG VERSION&GT; INIT <disk GROUP>

# vxdg –G <DG version> init <disk group>

31.

How To Create A Disk Group?

Answer»

# vxdg INIT &LT;DISK GROUP&GT; cds=on|off

# vxdg init <disk group> cds=on|off

32.

How To Display Free Disk Space In Disk Group?

Answer»

# vxdg FREE or # vxdg –g free

# vxdg free or # vxdg –g free

33.

How To Display Disk Group Information?

Answer»

# vxdg LIST or # vxdg list &LT;DISK GROUP&GT;

# vxdg list or # vxdg list <disk group>

34.

How To Set The Default Disk Group?

Answer»

# vxdctl DEFAULT &LT;DISK GROUP&GT;

# vxdctl default <disk group>

35.

How To Display The Default Disk Group?

Answer»

#vxdg DEFAULTS

#vxdg defaults

36.

How To Sets The User To Ep, The Group To Eigrp And The Mode Rw-rw-rw On The Volume Vg01?

Answer»

# vxedit SET user=ip group=eigrp mode=0666 VG01

# vxedit set user=ip group=eigrp mode=0666 vg01

37.

How To Set The Comment Field Of Usb Disk Subdisk 01-01 To “comments Are Here”?

Answer»

# vxedit SET COMMENTCOMMENTS are here” subdisk 01-01

# vxedit set comment “comments are here” subdisk 01-01

38.

How To Set Disk90 In The Group Homedg To Be A Hot Spare In Veritas Volume Manager?

Answer»

# vxedit -G HOMEDG SET spare=on disk90

# vxedit -g homedg set spare=on disk90

39.

How To Rename The Disk Disk90 To Be Called Disk80 In The Group Rootdg In Veritas Volume Manager?

Answer»

# vxedit -G ROOTDG RENAME disk90 DISK80

# vxedit -g rootdg rename disk90 disk80

40.

How To Remove A Volume And Any Sub Disks And Plexes Associated In Vxvm?

Answer»

# vxedit -RF RM VOLUME NAME

# vxedit -rf rm volume name

41.

How To Add Or Bring A Disk Under Veritas Volume Manager Control?

Answer»

To add or BRING a disk under VERITAS Volume MANAGER control:

# vxdiskadd c0t0d1 or # vxdisksetup -i c0t0d1

It might help to NEWFS the s2 slice of the disk and perform a vxdctl ENABLE to get it to add a disk.

To add or bring a disk under Veritas Volume Manager control:

# vxdiskadd c0t0d1 or # vxdisksetup -i c0t0d1

It might help to newfs the s2 slice of the disk and perform a vxdctl enable to get it to add a disk.

42.

How To Remove A Disk So That It Is No Longer Under Veritas Volume Manager Controls?

Answer»

# vxdisk RM c0t0d0

# vxdisk rm c0t0d0

43.

How To Remove A Grayed Out Or Obsolete Disk, Or Remove A Disk From A Disk Group In Veritas Volume Manager?

Answer»

# vxdisk RM DISK 01

# vxdisk rm disk 01

44.

How To List All Disks And Displays Their Status In Vxvm?

Answer»

# vxdisk LIST

# vxdisk list

45.

How To Clear An Import In Veritas Volume Manager After A Crash?

Answer»

# vxdisk clearimport c0t0d0s0

# vxdisk clearimport c0t0d0s0

46.

How To Remove A Disk From A Disk Group In Veritas Volume Manager?

Answer»

To remove a DISK, disk90, from a disk group, homedg, in Veritas VOLUME Manager:

# vxdg -g homedg rmdisk disk90

To remove a disk, disk90, from a disk group, homedg, in Veritas Volume Manager:

# vxdg -g homedg rmdisk disk90

47.

How To Add A Disk To A Disk Group In Veritas Volume Manager?

Answer»

To ADD the PHYSICAL disk c0t0d0 in the disk group HOMEDG calling it disk90 in VERITAS in Volume Manager:

# vxdg -g homedg adddisk disk90=c0t0d0

To add the physical disk c0t0d0 in the disk group homedg calling it disk90 in Veritas in Volume Manager:

# vxdg -g homedg adddisk disk90=c0t0d0