How to remove the root mirror
Answers were Sorted based on User's Feedback
Answer / mahesh
Show rootdg information
-bash-3.00# vxprint -g rootdg
Disable plex (rootvol and swap vol)
-bash-3.00#vxedit -g rootdg dis rootvol-02 swapvol-02
Remove plex (rootvol-02 swapvol-02)
-bash-3.00# vxedit -g rootdg -rf rm rootvol-02 swapvol-02
Check the status
-bash-3.00# vxprint -g rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS
STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - -
- -
dm rootdisk c1t0d0s2 - 6197248 - -
- -
dm rootdisk01 - - - -
NODEVICE - -
v rootvol root ENABLED 5120000 -
ACTIVE - -
pl rootvol-01 rootvol ENABLED 5120000 -
ACTIVE - -
sd rootdisk-02 rootvol-01 ENABLED 5120000 0 -
- -
v swapvol swap ENABLED 974848 -
ACTIVE - -
pl swapvol-01 swapvol ENABLED 974848 -
ACTIVE - -
sd rootdisk-01 swapvol-01 ENABLED 974848 0 -
- -
Check the disk status
-bash-3.00# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg
online udid_mismatch
c1t1d0s2 auto:sliced tape01 tapedg online
c1t2d0s2 auto:sliced tape02 tapedg online
c1t3d0s2 auto:sliced tape03 tapedg online
c1t5d0s2 auto:sliced - - online
c1t6d0s2 auto:none - -
online invalid
c2t0d0s2 auto:none - -
online invalid
c2t1d0s2 auto:none - -
online invalid
c2t2d0s2 auto:none - -
online invalid
- - rootdisk01 rootdg failed
was:c1t3d0s2
Remove rootmirrored disk
-bash-3.00# vxdg -g rootdg rmdisk rootdisk01
-bash-3.00# vxprint -g rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS
STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - -
- -
dm rootdisk c1t0d0s2 - 6197248 - -
- -
v rootvol root ENABLED 5120000 -
ACTIVE - -
pl rootvol-01 rootvol ENABLED 5120000 -
ACTIVE - -
sd rootdisk-02 rootvol-01 ENABLED 5120000 0 -
- -
v swapvol swap ENABLED 974848 -
ACTIVE - -
pl swapvol-01 swapvol ENABLED 974848 -
ACTIVE - -
sd rootdisk-01 swapvol-01 ENABLED 974848 0 -
- -
copy vfstab and system file
-bash-3.00# cp /etc/vfstab /etc/vfstab.18.03.10
-bash-3.00# cp /etc/system /etc/system.18.03.10
-bash-3.00# ls -ld /etc/vfstab.*
-rw-r--r-- 1 root root 508 Sep 7 2006
/etc/vfstab.07.09.09
-rw-r--r-- 1 root root 508 Mar 18 22:12
/etc/vfstab.18.03.10
-rw-r--r-- 1 root root 508 Nov 4 2006
/etc/vfstab.orig
-rw-r--r-- 1 root root 362 Jan 26 2008
/etc/vfstab.prevm
-bash-3.00# cat /etc/vfstab.prevm
#device device mount FS fsck
mount mount
#to mount to fsck point type pass
at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s1 - - swap - no
-
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs
1 no -
/devices - /devices devfs - no
-
ctfs - /system/contract ctfs - no
-
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
-bash-3.00#
-bash-3.00#
-bash-3.00#
-bash-3.00# cat /etc/vfstab
#device device mount FS fsck
mount mount
#to mount to fsck point type pass
at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/vx/dsk/bootdg/swapvol - - swap -
no -
/dev/vx/dsk/bootdg/rootvol /dev/vx/rdsk/bootdg/rootvol
/ ufs 1 no -
/devices - /devices devfs - no
-
ctfs - /system/contract ctfs - no
-
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
#NOTE: volume rootvol (/) encapsulated partition c1t0d0s0
#NOTE: volume swapvol (swap) encapsulated partition c1t0d0s1
copy /etc/vfstab.prevm to /etc/vfstab
-bash-3.00# cp /etc/vfstab.prevm /etc/vfstab
-bash-3.00# cat /etc/vfstab
#device device mount FS fsck
mount mount
#to mount to fsck point type pass
at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s1 - - swap - no
-
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs
1 no -
/devices - /devices devfs - no
-
ctfs - /system/contract ctfs - no
-
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
-bash-3.00# grep vx /etc/sys
sysdef sysevent/ syslog.conf
syslog.pid system system.07
system.18.03.10 system.sav
Remove vx entry in /etc/system file.
-bash-3.00# grep vx /etc/system
Remove root-done file and touch install-db file.
-bash-3.00# pwd
/etc/vx/reconfig.d/state.d
-bash-3.00# ls -l
total 0
-rw-r--r-- 1 root root 0 Sep 7 2006 root-done
-bash-3.00# rm root-done
-bash-3.00# touch install-db
-bash-3.00# df -k /
Filesystem kbytes used avail capacity
Mounted on
/dev/vx/dsk/bootdg/rootvol
2507983 1597417 860407 65% /
-bash-3.00# init 6
updating /platform/i86pc/boot_archive...this may take a minute
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sbrahman75
First disaccociate the plex
#vxplex dis rootvol-02
Now, the slice information for disk newroot (c2t2d0) is:
# prtvtoc -s /dev/rdsk/c2t2d0s2
Delete the rootalt volume from the new root disk.
# cd /
# umount /mnt
# vxvol stop rootalt
# vxplex dis rootvol-02 (Disassociate the plex from the
volume and remove the volume.)
# vxedit rm rootalt
# vxsd dis newroot-01 (Disassociate the sub-disk from the
plex and remove the plex.)
# vxedit rm rootvol-02
7. Mirror all the other volumes from the current root disk
to the new root disk.Do not mirror swap volumes. Swap slices
will be created on the new disk manually. In this example,
the volumes to mirror are var and opt.
# vxassist -g rootdg mirror var newroot
# vxassist -g rootdg mirror opt newroot
| Is This Answer Correct ? | 0 Yes | 2 No |
What does pkgadd command do?
In which file port No’s are defined
1. How do you replace a failed boot disk under meta in solaris? Step by step explanation? 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? 4. what is the significance of 51% state database replicas in SVM? 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. 8. How to create a shared disk group in VxVM? 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? 13. How can you unencapsulate a boot disk in VxVM? 14. How to identify multiple paths for a disk. 15. What is the difference between Vxdmp and EMC powerpath? 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? 18.What is a layered volume? how to create it using vxmake? 19.How to quickly mirror a volume, if the volume is empty? 20. How to grow a volume? 21. What is the difference between failing and failed disks? 22. How to replace a failed disk in Veritas? 23. Plex is in a disabled state. How will you recover? what are the steps to follow? 24.what is the difference between detached and disassociate state of plexes? 25. Whats the boot process of VxVM? 26. Whats the difference between SVM and VxVM? What would you recommend to your clients? why? 27.What are the various clusters you have worked on? 28. Which cluster is better VCS or Sun cluster? 29. Compare and contrast VCS and Sun Cluster. 30.how will you start VCS service? What are the configuration files in VCS? 31. How would switch a service group? 32. How would you freeze a service group? 33. What is a Split brain scenario ?
Expalin soft link and hard link
What are the daemons in NIS server?
What is default permission of files and directory?
How ill you remove the subdisk and plexus
How to check the sleeping process in Solaris.
10 Answers Chase, JPMorgan Chase,
what is the back up software we r using in solaris 8,9,10
How will you find the number of hard disk
Is it possible to edit the corntab using vi
How do you add the disk without reboot the server?