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
vxbootsetup(1M) 														   vxbootsetup(1M)

NAME
vxbootsetup - set up system boot information on a Veritas Volume Manager disk SYNOPSIS
/etc/vx/bin/vxbootsetup [-g diskgroup] [medianame ... ] DESCRIPTION
The vxbootsetup utility configures physical disks so that they can be used to boot the system. Before vxbootsetup is called to configure a disk, the required volumes, standvol, rootvol and swapvol (and optionally, dumpvol) must be created on the disk. All of these volumes must be contiguous with only one subdisk. The -g option may be used to specify the boot disk group. If no medianame arguments are specified, all disks that contain usable mirrors of the root, swap, /usr and /var volumes are configured to be bootable. If medianame arguments are given, only the disks that are associated with the specified disk names are configured to be bootable. vxbootsetup requires that: o The root volume must be named rootvol and must have a usage type of root. o The swap volume must be named swapvol and must have a usage type of swap. o The volumes containing /usr and /var (if any) must be named usr and var, respectively. See the chapter "Recovery from Boot Disk Failure" in the Veritas Volume Manager Troubleshooting Guide for detailed information on how the system boots and how VxVM impacts the system boot process. The vxmirror, vxrootmir, and vxresize utilities call vxbootsetup automatically. If you use vxassist, or vxmake and vxplex to create mirrors of the root volume on a disk, you must run vxbootsetup explicitly to make the disk bootable. ARGUMENTS
medianame Specifies the disk name (disk media name) of a VM disk that is to be configured as bootable. SEE ALSO
disksetup(1M), edvtoc(1M), vxassist(1M), vxevac(1M), vxinstall(1M), vxintro(1M), vxmake(1M), vxmirror(1M), vxplex(1M), vxresize(1M), vxrootmir(1M) Veritas Volume Manager Troubleshooting Guide VxVM 5.0.31.1 24 Mar 2008 vxbootsetup(1M)
All times are GMT -4. The time now is 04:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy