Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to remove the root mirror

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between the command line and graphical user interface?

1058


How to make SUN server as router in subnetwork?

2558


please post step by step installation of packages from the EIS cd..

2195


How to add a new LUN in exit disksets (metasets) in solaris please answer me step by step procedure?

3839


What does pkgadd command do?

1052


If the root disk is failed how can change it?

2371


After first installation of Solaris 10, what and all the Securities We need to set and how ?

2218


what are the alarms in solaris?

3104


How to create core dump and crash dump #coreadm .

2794


There are two nic cards on a sun server. I need to connect one nic to pupic ip and another nic to DMZ. Could you tell me how to configure step by step?

2467


Which command is used to backup and restore solaris file system?

1011


Where do you get Alarm prompt?

2691


what is the difference between solaris8 and solaris9 and solaris10

5289


How can u find a file which is logged in last week?

2651


Write the steps involved in creating and executing a program to implement the “case” command.

925