VxVM replacement of c1t0do in rootdg group


 
Thread Tools Search this Thread
Operating Systems Solaris VxVM replacement of c1t0do in rootdg group
# 1  
Old 05-02-2008
VxVM replacement of c1t0do in rootdg group

Not too familiar with VxVM. We have a Device c1t0d0, disk rootdg01, group rootdg that was paired with Device c1t1d0, disk mirror_1, group rootdg.

c1t0d0 has failed.

When we get a replacement for c1t0d0 can we just run vxdiskadm and choose choice #5 to "replace a failed or removed disk" ?

Will it be that simple?

Thanks!

Marty
# 2  
Old 05-02-2008
Not quite. You run that AFTER replacing the failed disk to start using the new one. BEFORE you need to choose the "remove a failed disk for replacement" option (or something very similar to that). You need to run vxdiskadm before the physical hardware replacement and again after.
# 3  
Old 05-02-2008
Replacing a mirrored root disk under VxVM is a little different from replacing any other mirrored disk under volume manager
First of all you have to confirm that your system cn boot from the mirrored disk, To ensure that run the following command out from my system is appended below (truncted for clarity)


root@baluqorcz1:/# eeprom
nvramrc=devalias vx-rootdg01 /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@w2100000c50850e70,0:a
devalias vx-rootdg02 /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@

You should create an alias to boot from alternate boot disk.
Once that is done, you have to remove the disk from volume manager control example
$vxdisk offline c1t0d0d0
then to physical pull the bad disk out you have remove it from OS control example
#luxadm removez-device c1t0d0s0
then you are safe to remove the disk
after that run#devfsadm -C -c disk
so that the system rereads all the drives present
then install the new drive.
After that make the OS presence of a new drive for that run this command
#luxadm insert_device c1t0d0s0
then again run this command #devfsadm -C -s disk
then bring the disk under volum manager conrol example
#vxdisk online c1t0d0s0
check that the volume manager can see it by running
#vxdisk list
now run #vxdiskadm command
# 4  
Old 05-02-2008
You also might consider reading Veritas Volume Mnager Trouble shooting guide section Re-Adding and replacing Boot Disks
# 5  
Old 05-05-2008
VxVM work on Solaris

Thanks very much to both of you for taking the time to respond to my query. I'll try to post details of this activity after I get a new replacement disk. Wish I had a place to experiment Smilie . We're having a little trouble getting the replacement disk on-site so my feedback may take a few days.

I will try to locate and read The section in "Veritas Volume Mnager Trouble shooting guide" (section Re-Adding and replacing Boot Disks). Thanks again!
# 6  
Old 05-06-2008
Volume Manager Support Operations
Menu: VolumeManager/Disk

1 Add or initialize one or more disks
2 Encapsulate one or more disks
3 Remove a disk
4 Remove a disk for replacement
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
14 Unrelocate subdisks back to a disk
15 Exclude a disk from hot-relocation use
16 Make a disk available for hot-relocation use
17 Prevent multipathing/Suppress devices from VxVM's view
18 Allow multipathing/Unsuppress devices from VxVM's view
19 List currently suppressed/non-multipathed devices
list List disk information


? Display help about menu
?? Display help about the menuing system
q Exit from menus

Select an operation to perform:

First do Option 4 (Remove a disk for replacement)

Then remove the bad disk/add new disk (luxadm remove_device /devfsadm etc ...)

Then do Option 5 (Replace a failed or removed disk)

Last edited by sparcguy; 05-06-2008 at 10:59 PM..
# 7  
Old 05-07-2008
Still waiting on the disk.

Isn't it necessary to run

vxdctl enable

once the operating system can "see" the new disk via the format command?

Also, does the fact that I already ran choice #11 (disable -offline- a disk device) change the instructions you provided?

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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

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

7. 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

8. 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

9. 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
Login or Register to Ask a Question