The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris 10 Disk Mirroring korfnz SUN Solaris 25 07-16-2008 11:43 AM
Help !! disk Mirroring hcclnoodles SUN Solaris 1 11-10-2006 11:25 AM
Disk mirroring Ajwat SUN Solaris 2 03-08-2006 09:27 AM
Solaris mirroring / non-root disk BG_JrAdmin SUN Solaris 3 08-11-2005 05:37 PM
Disk mirroring malcom Shell Programming and Scripting 3 01-26-2005 05:11 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-07-2006
Jartan Jartan is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 49
Veritas root disk mirroring

Hi there,

My task is to replace the two 73 G disks with two 143 G disks , which has vxvm 4.1 running on it. I would like to know whether the steps iam following are correct.
1. Break the sub-disks, plexes of the root mirror.
2. Remove the sub-disks,plexes of the root mirror.
3. Remove one of the hard disk(eg. c0t1d0) and replace new.
4. Initialize the new disk and create subdisks and plexes
5. Attach the subdisks and plexes to the existing volumes
6. once there's no task in vxtask, do the same for the primary root disk(c0t0d0) also.

i would like to know whether i need to de-encapsulate the root disk before i do this.and also do i need to perform these in single-user mode? and also do i need to export the disk-group before i do these?

Please correct me if iam wrong.

Any help would be greatly appreciated.
  #2 (permalink)  
Old 12-07-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
The answer depends somewhat on the reason for replacing the disks, are you going to change the sizes of encapsulated filesystems or do you want to add new partitions or something else, you may or may not need to de-encasulate depending on your reply.
  #3 (permalink)  
Old 12-07-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
also as this is a rootdisk, when mirroring you MUST use vxrootmir to mirror the root filesystem or the second mirror will not boot.
  #4 (permalink)  
Old 12-07-2006
Jartan Jartan is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 49
Hi,

Thanks for your quick reply, actually due to size constraints i decided to replace 73G with 143G drive but i need the same data to be there in new disk and i dont need to increase the root file system, i want to create some new volumes in those new disks.

I was thinking about vxdiskadm, option to remove failed disk and replace.

Once i replace one disk at a time,it'll initialise it and can i mirror it using vxdiskadm itself?

Thanks
  #5 (permalink)  
Old 12-07-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
Ok, you have something of a messy situation to deal with here.

And just a couple of comments:
1. If you have any other diskgroups, condier using them instead.
2. If you only have 2 disk why use veritas? Encapsulated roots are a pain SVM is a whole lot simpler for boot disks.

I generally don't like to use vxdiskadm, so I'm not
sure what options you've got there.

The basics:

for each plex on the mirror:
Code:
vxplex -g bootdg -o rm dis <plex>
then
Code:
vxdg -g bootdg rmdisk <mirror_disk_name>
/etc/vx/bin/vxdiskunsetup <mirror_disk_media_name>
remove mirror disk, and replace.
Code:
devfsadm -Cv
vxdctl int
vxdctl enable
layout the new partitions on disk
Code:
/etc/vx/bin/vxdisksetup -i c0t1d0 format=sliced
vxdg -g bootdg adddisk rootmirror=c0t1d0 
/etc/vx/bin/vxrootmir rootmirror
for each other volume
Code:
vxassist -g bootdg mirror <volname>
repeat the procedure for rootdisk, no need to unencapsulate.
  #6 (permalink)  
Old 12-08-2006
Jartan Jartan is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 49
Hi,

Iam sorry for not quoting the details properly.

Actually I have 4 disks of which the other 2 disks belong to other diskgroup. I understand that SVM is more simpler and effecive for mirroring root disks but the company std. is like that.I cant do anything abt that.

Thanks for your step by step procedure. I'll try these steps.

Thanks.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0