Académique Documents
Professionnel Documents
Culture Documents
2. How do you remove meta only for the root slice? remaining slices should run under meta?
3. what you would do if you want to replace a slice using metareplace option?
5. what are the common errors you find in Solaris Volume manager?
6. You have a boot disk under svm, the machine fails to boot and remains in ok prompt? what could be the possible reason?
7. metastat -p shows a metavolume needs replacement. Metavolume is a single way mirror only. Actually you find disk and metavolumes are ok and I/O is happening to the filesystems how will you remove the metareplace message that comes out of metastat.
9. What is the difference between private and public regions in Veritas Volume manager?
10. what would you do if the private region of a particular disk group is full? What are the design considerations for the size of private region in Vxvm disk group?
11. How to replace a corrupt private region? in vxvm 3.5 and greater versions
12. How would you convert a volume from gen to fsgen? why should you do that?
16. vxdisk -o alldgs list o/p shows some disk groups in braces What does that signify?
17. what are the various layouts that are available in VxVM?
23. Plex is in a disabled state. How will you recover? what are the steps to follow?
26. Whats the difference between SVM and VxVM? What would you recommend to your clients? why?
30.how will you start VCS service? What are the configuration files in VCS?
==========================================================
# Name the mandatory disk group in VxVM 3.5 ? How will you configure VxVM in 3.5 ? ANS: rootdg is the mandatory disk group in VxVM 3.5, vxinstall is the command to configure VxVM, It will create the disk groups, initializes the disks and adds them to the group.
# How will you create private and shared disk group using VxVM ?
For Shared DG: Command: vxdg -s init < disk1 disk2 disk3 >
# Which are the different layouts for volumes in VxVM ? ANS: mirror, stripe, concat (default one), raid5, stripe-mirror, mirror-stripe.
# What is the basic difference between private disk group and shared disk group ? ANS: 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 sharable and visible to the other cluster nodes.
# How will you add new disk to the existing disk group ? ANS: Run vxdiskadm command, which will open menu driven program to do various disk operations, select add disks option or you can use another command vxdiskadd.
# How will you grow/shrink the volume/file system ? What is the meaning of growby and growto options ? What is the meaning on shrinkto and shrinkby options ? ANS: vxassist command is used to do all volume administration, following is the description and syntax.
Growby option: This is will grow your file system by adding new size to the existing file system.
Growto option: This will grow your file system as per the new size. This WILL NOT ADD new size to the existing one.
Shrinkby 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.
# How will you setup and unsetup disks explicitly using VxVM ? ANS: You can use /etc/vx/bin/vxdiskunsetup to unsetup the disk, and /etc/vx/vxdisksetup to setup the disk.
# How will you list the disks, which are in different disk groups ? ANS: 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.
# What is the private region in VxVM ? ANS: 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.
# If, vxdisk list command gives you disks status as "error", what steps you will follow to make the respective disks online ? ANS: If you faced this issue because of fabric disconnection then simply do vxdisk scandisks, otherwise unsetup the disk using using /etc/vx/bin/vxdiskunsetup and setup the disks again using /etc/vx/bin/vxdisksetup, this will definitely help! [ /etc/vx/bin/vxdiskunsetup will remove the private region from the disk and destroys data, backup the data before using this option]
what is the significance of 51% state database replicas in SVM? if the system is having 51 % of replica the system will boot up normally, but if there are less then or = 50% of replicas are present in the system , then the system will panic. In this situation boot the system into single user mode and delete the unavailable replica and create new set of replicas and boot the system. what are the common errors you find in Solaris Volume manager?
Question
## First make subdisks vxmake -g sybdg sd sybdg32-15 sybdg32,14607200,1365376 vxmake -g sybdg sd sybdg36-19 sybdg36,21389040,1365376 vxmake -g sybdg sd sybdg53-19 sybdg53,25483768,1365376 vxmake -g sybdg sd sybdg54-17 sybdg54,22355000,1365376 vxmake -g sybdg sd sybdg55-25 sybdg55,1767000,1365376 vxmake -g sybdg sd sybdg56-30 sybdg56,27216512,1365376## Now make the plexes
vxmake -g sybdg plex datadev93-SV00A sd=sybdg32-15 vxmake -g sybdg plex datadev93-SV01A sd=sybdg36-19 vxmake -g sybdg plex datadev93-SV02A sd=sybdg53-19 vxmake -g sybdg plex datadev93-SV00B sd=sybdg54-17 vxmake -g sybdg plex datadev93-SV01B sd=sybdg55-25 vxmake -g sybdg plex datadev93-SV02B sd=sybdg56-30 ## Now create sub volumes containing the plexes. vxmake -g sybdg vol datadev93-SV00 plex=datadev93SV00A,datadev93-SV00B use_type=gen vxmake -g sybdg vol datadev93-SV01 plex=datadev93SV01A,datadev93-SV01B use_type=gen vxmake -g sybdg vol datadev93-SV02 plex=datadev93SV02A,datadev93-SV02B use_type=gen## Let them be subvolumes vxedit -g sybdg set layered=on datadev93-SV00 datadev93SV01 datadev93-SV02 ## Activate! vxvol -g sybdg init active datadev93-SV00 vxvol -g sybdg init active datadev93-SV01 vxvol -g sybdg init active datadev93-SV02 ## Turn into subdisks so we can add them all to another plex vxmake -g sybdg sd datadev93-SD00 datadev93-SV00,0,1365376 vxmake -g sybdg sd datadev93-SD01 datadev93-SV01,0,1365376 vxmake -g sybdg sd datadev93-SD02 datadev93-SV02,0,1365376 ## Now create a new plex with all subvolumes in
vxmake -g sybdg plex datadev93-A sd=datadev93SD00,datadev93-SD01,datadev93-SD02 layout=stripe st_width=128 ## Now make the main volume vxmake -g sybdg vol datadev93 plex=datadev93-A use_type=genvxvol -g sybdg init active datadev93 #vxedit -g sybdg set user=sybase group=dba datadev93
The following table contains information about fixed issues in this release of VxFS.
Incident Description
511750 Swap space and tunable changes were required for using fsck and mkfs on big file systems.
Incident Description
137175 The vxdiskadm utility no longer truncates default disk names to 9 characters.
229538 Multiple enclosures of the same type generated unexpected enclosure-based names.
272891 vxnotify did not receive events relating to the change of controller states in DMP.
311530 Renaming an enclosure with a longer name caused vxconfigd to dump core.
506139 If the naming scheme was changed, the default arguments to vxconfigd were not preserved.
Recover/Start a volume that has a plex in the disabled & recover state
January 6, 2008 by sun4u
The vxprint -ht output gives, among other things, the kernel state (column 4) and the state (column 5) of a plex .
DG DM RV RL V
NCONFIG DEVICE
NLOG TYPE
MINORS PRIVLEN
STATE
PRIMARY
KSTATE KSTATE
REM_HOST LENGTH
REM_DG
REM_RLNK
USETYPE
PREFPLEX RDPOL
PL SD SV
KSTATE
STATE
LENGTH
LAYOUT
DISK
DISKOFFS
LENGTH
[COL/]OFF
VOLNAME
NVOLLAYR
LENGTH
[COL/]OFF
dg
testdg
default
default
84000
970356463.1203.alu
dm dm
testdg01 testdg02
c1t4d0s2 c1t6d0s2
sliced sliced
2179 2179
8920560 8920560
v pl sd sd
test
DISABLED test
ACTIVE
17840128
fsgen
SELECT RW
test-01
RECOVER 0 0
CONCAT c1t4d0
testdg01-01 testdg02-01
testdg01 testdg02
8920560
From the above output, it can be seen that the volume test has plex test-01 in the DISABLED and RECOVER state.
To recover the volume test, use the vxmend command. This operation applies only to volumes, or to plexes associated with a volume. This will manually reset or change the state of a plex or volume.
1. Bring plex test-01 to the DISABLED and OFFLINE state using the following command: vxmend -o force off <recover_plex>
For example,
The below output shows plex test-01 in the DISABLED and OFFLINE state:
DG DM RV RL V PL SD SV
NCONFIG DEVICE
NLOG TYPE
MINORS PRIVLEN
STATE
PRIMARY
KSTATE KSTATE
REM_HOST LENGTH
REM_DG
USETYPE
PREFPLEX
KSTATE
STATE
LENGTH
LAYOUT
NCOL/WID DEVICE
DISK
DISKOFFS
LENGTH
[COL/]OFF
MODE MODE
VOLNAME
NVOLLAYR
LENGTH
[COL/]OFF
AM/NM
dg
testdg
default
default
84000
970356463.1203.alu
dm dm
testdg01 testdg02
c1t4d0s2 c1t6d0s2
sliced sliced
2179 2179
8920560 8920560
v pl sd sd
test
DISABLED test
ACTIVE
17840128
fsgen
test-01
OFFLINE 0 0
CONCAT 0 c1t4d0
testdg01-01 testdg02-01
testdg01 testdg02
8920560
2. Bring plex test-01 to the DISABLED and STALE state using the following command: vxmend on <recover_plex>
For example,
# vxmend on test-01
The below output shows plex test-01 in the DISABLED and STALE state:
DG DM RV RL V PL SD SV
NCONFIG DEVICE
NLOG TYPE
MINORS PRIVLEN
STATE
PRIMARY
KSTATE KSTATE
REM_HOST LENGTH
REM_DG
USETYPE
PREFPLEX
KSTATE
STATE
LENGTH
LAYOUT
NCOL/WID DEVICE
DISK
DISKOFFS
LENGTH
[COL/]OFF
MODE MODE
VOLNAME
NVOLLAYR
LENGTH
[COL/]OFF
AM/NM
dg
testdg
default
default
84000
970356463.1203.alu
dm dm
testdg01 testdg02
c1t4d0s2 c1t6d0s2
sliced sliced
2179 2179
8920560 8920560
test
DISABLED
ACTIVE
17840128
fsgen
SELECT
pl sd sd
test-01
test
STALE 0 0
CONCAT 0
testdg01-01 testdg02-01
testdg01 testdg02
c1t4d0
8920560
3. Bring plex test-01 to the DISABLED and CLEAN state using the following command: vxmend fix clean <recover_plex>
For example,
The below output shows plex test-01 in the DISABLED and CLEAN state:
DG DM RV RL V PL SD SV
NCONFIG DEVICE
NLOG TYPE
MINORS PRIVLEN
STATE
PRIMARY
KSTATE KSTATE
REM_HOST LENGTH
REM_DG
USETYPE
PREFPLEX
KSTATE
STATE
LENGTH
LAYOUT
NCOL/WID DEVICE
DISK
DISKOFFS
LENGTH
[COL/]OFF
MODE MODE
VOLNAME
NVOLLAYR
LENGTH
[COL/]OFF
AM/NM
dg
testdg
default
default
84000
970356463.1203.alu
dm dm
testdg01 testdg02
c1t4d0s2 c1t6d0s2
sliced sliced
2179 2179
8920560 8920560
v pl sd sd
test
DISABLED test
ACTIVE
17840128
fsgen
test-01
CLEAN 0 0
CONCAT 0
testdg01-01 testdg02-01
testdg01 testdg02
c1t4d0
8920560
4. Once plex test-01 is in the DISABLED/CLEAN state, the volume test can be started with the following command: vxvol start <volume>
For example,
It can be seen in the below output that the volume is now ENABLED and ACTIVE:
DG DM RV RL V PL SD
NCONFIG DEVICE
NLOG TYPE
MINORS PRIVLEN
STATE
PRIMARY
KSTATE KSTATE
REM_HOST LENGTH
REM_DG
USETYPE
PREFPLEX
VOLUME PLEX
KSTATE
STATE
LENGTH
LAYOUT
NCOL/WID DEVICE
DISK
DISKOFFS
LENGTH
[COL/]OFF
MODE
SV
NAME
PLEX
VOLNAME
NVOLLAYR
LENGTH
[COL/]OFF
AM/NM
MODE
dg
testdg
default
default
84000
970356463.1203.alu
dm dm
testdg01 testdg02
c1t4d0s2 c1t6d0s2
sliced sliced
2179 2179
8920560 8920560
v pl sd sd
test
ENABLED test
ACTIVE
17840128
fsgen
test-01
ACTIVE 0 0
CONCAT 0
testdg01-01 testdg02-01
testdg01 testdg02
c1t4d0
8920560
Question
Answer #2 when you detach the plex from volume means i/o performance
will stop from detached plex we can understand that we took the backup of the plex we can attach this plex any time to any volume
Disassociate plex means we are breaking the link between volume and plex we can can't attach this plex to any volume but if server reboot plex will be sync with volume
Question
Boot Process of vxvm is as similar as solaris booting but the only difference is when we bring the root disk under vxvm control there is one entrie will be created under /etc/system file starts with "rootdev" This will read by the kernel before loading the modules and it helps system to mount root volume rather than root partition.
Question
Whats the difference between SVM and VxVM? What would you recommend to your clients? why?
Answer #1 SVM:
1. Inbuild in Solaris. 2. Only available for Solaris 3. Can't decrease online the volume size. VxVM: 2. Third party tool. 2. Available for all popular OS (Solaris,Linux,Windows,HPUX,AIX etc.) 3. Can resize (increase or decrease) the volume online.
Question
how will you start VCS service? What are the configuration files in VCS?
Answer #2 hastart
Question