Move root disk to new server


 
Thread Tools Search this Thread
Operating Systems Solaris Move root disk to new server
# 15  
Old 05-18-2005
On think to note is that this assumes that the arrays are configured with the same number of LUNs.

Obviously given the amount of information in this I can't suppy you will all of the command to do all of these tasks in one post, but it should get you pointed in the right direction.

1. Stop any databases you have running on your system.
2. Detach the mirrors of each of your volumes
3. Dump the inactive mirrors of your data volumes to tape
4. Shudown and remove the 2nd mirror of the root disk or dump it to tape
~~~then on the opposite end
5. Detach mirrors
6. Restore root disk to detached mirror of the root disk (or replace it with the disk you removed from the first machine)
7. Create data volumes on the detached mirror and restore from tape
8 Reboot to single user mode using the (currrently detached) 2nd mirror
9.Apply the new veritas lincense & reboot again using the 2nd mirror
10. If every thing is working remirror using the 2nd mirror as the master

Note that using this approach there is no downtime on the target system until #8

Another approach would be to use Veritas NetBackup to achieve most of this.
# 16  
Old 05-18-2005
sry for reading that post late,
Smilie Smilie
but:

with veritas you bought a very good developed volumemanager, there is no need to detach mirrors or volumes in VxVM! if you really have the same hardware, you only need to put the "old" things in the new one.

in a v240 there is a card which is called the "System Configuration Card" (SCC) where the HOSTID is stored (hostid and nvram settings). you need to put the old card in the new mashine to provide the right HOSTID to your VxVM license.

in theory you could put in those disk in any order... that'S a feature of VxVM... when the kernel starts a demon (vxconfigd) looks at all attatched disks and reads the privat region on the disk to see which diskgroup and which volume (data in public region) configuration is on the disk [manual command would be: "vxdctl enable"] that's a big different to SDS/LVM because it handles the volumes with local databases (metadb) but VxVM stores the information on each disk. that's the reason for the logical split of the disk into privat and public regions.
###
by the way: there are also feature for deporting and importing. take a look at the command vxdg {deport|import]. to see all diskgroups not only the imported use that command: "vxdisk -o alldgs list"
###
the dual way to the disks should be enable afterwards with the veritas DMP. enable it for the disks. (could be done with the "vxdiskadm" cli interface or with the cli command "vxdmpadm") i'm not sure if DMP will work if there are no controllers in the 3310 just a jbot. take a look at the instructions in the "Enabling VERITAS DMP" section of the Sun StorEdge 3000 Family Installation, Operation, and Service Manual on docs.sun.com.

anyway. the idea with the backup should not be ignored for safety reason ;-) but it should work with the normal disk&SCC replacement.. Smilie

greetings pressy
# 17  
Old 05-18-2005
All true Pressy, with the following qualifiers:

Quote:
in a v240 there is a card which is called the "System Configuration Card" (SCC) where the HOSTID is stored (hostid and nvram settings). you need to put the old card in the new mashine to provide the right HOSTID to your VxVM license.
True, but in that case why not just bring the whole hardware hardware setup? That too would be easier. There may also be licensing issuse here. As a Veritas (and Sun) OEM supplier I know that we cannot do this when installing for external customers.


Quote:
in theory you could put in those disk in any order... that'S a feature of VxVM... when the kernel starts a demon (vxconfigd) looks at all attatched disks and reads the privat region on the disk to see which diskgroup and which volume (data in public region) configuration is on the disk [manual command would be: "vxdctl enable"] that's a big different to SDS/LVM because it handles the volumes with local databases (metadb) but VxVM stores the information on each disk. that's the reason for the logical split of the disk into privat and public regions.
In theory yes, in practice with the 3310 you cannot, unless it is a JBOD. In which case it can be done this way. It cannot be done in a cotrolled bases 3310 as a global replacement of disks would require rebuilding of the logical drives, wiping all the information, also insering the disks in any order would not work in the 3310 as the logical drives are configures based on the physical position of the disks in the array.

This is what I use and why I at first didn't consider the JBODs, we only use them as for expansion on controller based 3310s. And the reason I said a direct swap probably wouldn't work.

Quote:
the dual way to the disks should be enable afterwards with the veritas DMP. enable it for the disks. (could be done with the "vxdiskadm" cli interface or with the cli command "vxdmpadm") i'm not sure if DMP will work if there are no controllers in the 3310 just a jbot. take a look at the instructions in the "Enabling VERITAS DMP" section of the Sun StorEdge 3000 Family Installation, Operation, and Service Manual on docs.sun.com.
In single bus mode DMP configuration can be done on a JBOD, but since he is using dual bus it's not an option.

Quote:
anyway. the idea with the backup should not be ignored for safety reason ;-) but it should work with the normal disk&SCC replacement.. Smilie
It also give hardware independence, you could happily move from a 3510 to any other array by just adding the drivers.

VirginiaSA, read Pressy's reply in detail, it will work if you are using JBODs with no controller. On the other hand, if you really want to take the physical swap approach, it might be easier just shipping he whole lot to where it's going and swap the two systems.
# 18  
Old 05-20-2005
Well I guess pressy is right. come to find out, it is a JODB and single controller mode. 3310 has one controller for each side of the chassie.
# 19  
Old 05-20-2005
Quote:
Originally Posted by VirginiaSA
Well I guess pressy is right. come to find out, it is a JODB and single controller mode. 3310 has one controller for each side of the chassie.

I'm more confised now after this.

Single bus or single controller? If it has a controller it is not a JBOD, and pressy's way will not work. A single controller 3310 is simply that, one controller for the entire array using two SCSI channels. If there are two controllers on the array than it is dual controller using four SCSI channels.

Basically which of these does the back of it look like, and for the controllers if it is the top one it looks like, the simplest is how many com ports does it have?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Move root disk to new identical hardware

We have in a couple of occasions moved root disk & flashcard in netra 240 to new identical hardware instead of replacing mb in dead server. Flashcard is to preserve mac adresses and mainly hostid for license stuff. Works without doing anything other than poweron & boot. Now we have a similar... (5 Replies)
Discussion started by: stockhes
5 Replies

2. Linux

Move OS to storage disk

Hi We have RHEL 7.3 running from local disk and we want to move it to storage. I am unable to find any proper procedure to do this activity. Please help. (4 Replies)
Discussion started by: powerAIX
4 Replies

3. UNIX for Dummies Questions & Answers

Move os from 1 disk to the other

Hi, I have server with 2 active disk, but disk 1 contain big part of os is falling, how can i move everything to disk 2 and then remove the disk 1? Thanks (4 Replies)
Discussion started by: prpkrk
4 Replies

4. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies

5. Solaris

Move partition to new disk

Hi, The disks of my servers are getting full and I need to move the /export/home partition on to a new set of disks. I already have 2 mirrored disks and have added 2 more and mirrored them after creating the filesystem on them. Do I just need to edit the /etc/vfstab and point the /export/home... (1 Reply)
Discussion started by: run_time_error
1 Replies

6. Red Hat

Best softwareraid for 2 disk root-server

Hi, we have a root-server with 2 Disks, each 750 gb / centos 5.1 we would like to have 4 mirrored data, and 1 mirrored boot-filesystem what do you think is the best solution, I would like to use linux lvm for a raid1-mirror, but I was told the system wont boot in case of a disk failure ... (4 Replies)
Discussion started by: funksen
4 Replies

7. Solaris

Move root filesystem to other slice

Hi, df -h display: # df -h Filesystem size used avail capacity Mounted on /dev/dsk/c1t0d0s0 9.8G 8.1G 1.7G 84% / /proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab fd 0K 0K 0K 0% /dev/fd swap 1.0G 152K 1.0G 1% /var/run swap 1.1G 24M 1.0G 3% /tmp /dev/dsk/c1t0d0s3 57G 13G 43G 24%... (4 Replies)
Discussion started by: lamoul
4 Replies

8. Shell Programming and Scripting

how to move a file from one server to another server using FTP in shell script?

I have a file --> file1.txt i need to copy this file to another server using FTP....the 2 servers are server1 and server2..may i know how to write a script that can do this? thanks in advance! Im a newbie to this... (4 Replies)
Discussion started by: forevercalz
4 Replies

9. Filesystems, Disks and Memory

Move a disk to Sol. 2.6

I removed an external Sun disk (with data on it) from an old 2.6 system and added the disk to another 2.6 system. The new system seems to recognize the system (verified by the format command). When try to mount I am getting, I got the error: mount: /dev/dsk/c1t1d0s6 is not this fstype. I... (3 Replies)
Discussion started by: sunshine
3 Replies
Login or Register to Ask a Question