Sponsored Content
Operating Systems Solaris VxVM replacement of c1t0do in rootdg group Post 302192547 by sparcguy on Wednesday 7th of May 2008 07:33:52 AM
Old 05-07-2008
I think you cannot do option 11 first.

The right way is to do opt 4, remove/add disk then opt 5.

if I can recall correctly when you do opt11 then you later try to do opt 4/5 it may fail or give some error. I think you need to try to bring the disk back online before doing option 4.

But if you cannot do opt4/5 there is a workaround from sunsolve.

Solution 212645 : How to replace a root drive in Volume manager if vxdiskadm option4/option5 is not working

Btw I've never attempted this procedure before, so use at your own risk.

======================
Removing the Root disk
======================

1) # vxdg -g rootdg -k rmdisk

2) # vxprint -htg rootdg
remove the plexs associated with the original disk (disabled nodevice)

3) # vxplex dis opt-01 (run against all plexes associated with root disk)
- this is a standard plex that is creatd in encapsulation

4) # vxedit -r rm opt-01 (run against all plexes associated with root disk)

5) # vxedit rm

6) # vxdisk list
should no longer be listed as a removed entry

7) # vxdisk rm c#t#d#s2 (root disk)



=======================
Replacing the root disk
=======================

1) preform drive replacement steps per system requirements
if drive has already been replaced, skip this step

2) # format
Delete all partitions except for slice 2, and label the disk

3) # vxdctl enable

4) # vxdisksetup -i c#t#d# (rootdisk)

5) # vxdg -g rootdg adddisk rootdisk=c#t#d#

6) # vxdiskadm - opt6 to mirror
choose root mirror as the disk to mirror
root disk is destination disk
this should recognize that it should be a root disk and write a
bootblock onto it

7) # prtvtoc /dev/rdsk/c#t#d#s2 (rootdisk)
check to make sure that there are regular partitions


Product

VERITAS Volume Manager 3.2 for Solaris 9
VERITAS Volume Manager 4.0 Software
VERITAS Volume Manager 3.5 Software
VERITAS Volume Manager 3.2 Software
VERITAS Volume Manager 3.1.1 Software
VERITAS Volume Manager 3.1 Software
VERITAS Volume Manager 3.0.6 Software
VERITAS Volume Manager 3.0.4 Software
VERITAS Volume Manager 3.0.3 Software
VERITAS Volume Manager 3.0.2 Software



Keywords

volume manager, rootdisk replacement fails



Previously Published As

75082



Attachments

This solution has no attachment
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

VXVM 3.5 Rootdg corrupt/recovery

Hi Everyone! Would someone please tell me if it is still true that rootdg should not be used for production/primary data and that you should create additional disk groups so that if rootdg gets corrupt you can recreate rootdg and then bring in the other groups with no data loss. Or is it still... (0 Replies)
Discussion started by: llrios
0 Replies

2. Solaris

wrongly encapsulated appdg instead of rootdg

hi guys, i was doing a fresh installation of vxvm 4.0 on solaris 8 Sun enterprise 3500 and when i ran vxinstall command it gave me option of appdg and appdg02 to be encapsulated . I wanted to encapsulate rootdg. i wrongly encapsulated appdg. is there any work around for this ? your response... (5 Replies)
Discussion started by: ishila
5 Replies

3. Solaris

( VxVM ) How to add the removed disk back to previous disk group

Previously , i remove the disk by #vxdg -g testdg -k rmdisk testdg02 But i got error when i -k adddisk bash-2.03# vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online invalid c0t1d0s2 auto:none ... (1 Reply)
Discussion started by: waibabe
1 Replies

4. Shell Programming and Scripting

Merge group numbers and add a column containing group names

I have a file in the following format. Groups of data merge together and the group number is indicated above each group. 1 adrf dfgr dfg 2 dfgr dfgr 3 dfef dfr fd 4 fgrt fgr fgg 5 fgrt fgr (3 Replies)
Discussion started by: Lucky Ali
3 Replies

5. Shell Programming and Scripting

Merge group numbers and add a column containing group names

Hi All I do have a file like this with 6 columns. Groups of data merge together and the group number is indicated above each group. 1 1 12 26 289 3.2e-027 GCGTATGGCGGC 2 12 26 215 6.7e+006 TTCCACCTTTTG 3 9 26 175 ... (1 Reply)
Discussion started by: Lucky Ali
1 Replies

6. Shell Programming and Scripting

Sort the file contents in each group....print the group title as well

I've this file and need to sort the data in each group File would look like this ... cat file1.txt Reason : ABC 12345-0023 32123-5400 32442-5333 Reason : DEF 42523-3453 23345-3311 Reason : HIJ 454553-0001 I would like to sort each group on the last 4 fileds and print them... (11 Replies)
Discussion started by: prash184u
11 Replies

7. Shell Programming and Scripting

need a one liner to grep a group info from /etc/group and use that result to search passwd file

/etc/group tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453 bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root /etc/passwd mk789:x:234:1::/export/home/dummy:/bin/sh po312:x:234:1::/export/home/dummy:/bin/sh ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies

8. Programming

Sql ORA-00937: not a single-group group function

I'm trying to return only one row with the highest value for PCT_MAX_USED. Any suggestions? When I add this code, I get the ORA-00937 error. trunc(max(decode( kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100))) pct_max_used This is the original and returns all rows. select (select... (3 Replies)
Discussion started by: progkcp
3 Replies

9. HP-UX

Removing a VxVM disk from a Disk Group

Hello all, So I made a rookie mistake today. I forgot to remove my disk from my disk group, before running the following command:for i in `ioscan -fnN | awk /NO/'{print $3}'` do rmsf -H $i done I am trying to run the following command, but not having any luck obviously:vxdg -g dgvol1 rmdisk... (0 Replies)
Discussion started by: mrkejames2
0 Replies
vxconfigbackupd(1M)													       vxconfigbackupd(1M)

NAME
vxconfigbackupd - disk group configuration backup daemon SYNOPSIS
vxconfigbackupd [-l] DESCRIPTION
The vxconfigbackupd daemon automatically backs up information about a disk group's new configuration whenever the configuration is changed. OPTIONS
-l Logs backup daemon activities to the file /etc/vx/cbr/bkdaemonLog. FILES
/sbin/init.d/vxvm-recover Startup file for vxconfigbackupd. /etc/vx/cbr/bk/dgname.dgid/dgid.dginfo Location of backup file for disk group information. /etc/vx/cbr/bk/dgname.dgid/dgid.diskinfo Location of backup file for disk attributes. /etc/vx/cbr/bk/dgname.dgid/dgid.binconfig Location of backup file for binary configuration copy. /etc/vx/cbr/bk/dgname.dgid/dgid.cfgrec Location of backup file for configuration records in vxprint -m format. NOTES
The vxconfigbackup command can be used to back up a disk group's configuration manually at any desired time. The disk group configuration backup and restore utilities do not save any data in the public region. This includes file system or other application data that is configured within VxVM objects. When a disk group is destroyed, its configuration backup information (including the backup directory) is also removed. The only exception to this behavior is when the disk group is in the precommit state of restoration. The backup directory should be large enough to accommodate copies of all the currently imported disk groups. The minimum recommended size of the backup directory is P * (N + 1) megabytes, where P is the private region in megabytes (by default, 32MB), and N is the number of disk groups. The additional P megabytes is required to hold a temporary copy of the disk group configuration when a disk group is imported or a configuration change is made. The default backup directory is /etc/vx/cbr/bk. The location of the backup directory can be configured by using the vxconfigbackup -l backup_directory_path command. SEE ALSO
vxconfigbackup(1M), vxconfigrestore(1M) VxVM 5.0.31.1 24 Mar 2008 vxconfigbackupd(1M)
All times are GMT -4. The time now is 06:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy