Moving file systems from one server to the other


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
Moving file systems from one server to the other

Hi

I have a server running solaris 10 with UFS type file systems, residing on a NetApp storage system, in which I need to move those file systems (all of them) to another solaris 10 server.
The normal procedure to create a file system is to do a format, newfs, mkdir and mount. But on this case I cannot do newfs because I will be destryiong the data already on those LUNs or file systems.
Any hint in how to go about it
# 2  
Well being professional the first thing you need to do before you mess with anything is to backup the lot. UFS filesystems are dumped using fssnap to take a snapshot (i.e. freeze) a filesystem which outputs a special device name. You then use that special device name to ufsdump the whole filesystem to backup (tape, external drive, whatever). Without doing that first should anything go seriously wrong you are stuffed. Your data is the most important thing!!!

Now, if you are saying that all filesystems are on a SAN then you should be able to get the storage boys to offer the LUNs to your new box. The main thing is whether that new box will boot from the root filesystem without error since I'm assuming that it's not identical hardware so different drivers might need to be loaded. That might take a few tricks. Also, the actual device nodes (e.g. c0t0d0s0) might be different but there are ways to get around that. You will need to manually update files like /etc/vfstab, /etc/system, etc, once the LUN's are swung across to the new box. This way you don't necessarily need to restore anything if you can get away with it.

Alternatively, you get your storage team to allocate new similar capacity LUN's for each and every filesystem, you install Solaris from installation media, and then restore each filesystem from its ufsdump file. You will still need to tackle the issues surrounding different hardware and incorrect drivers being restored.

HOWEVER, provided you have done the ufsdump backups for each and every filesystem, if anything goes bang you can recover. Just be totally professional and backup everything before you mess with it.

Hope that helps.
# 3  
Hi
thanks for the reply, yes its identical hardware, the origin server is sparc T3-1b server, the destination server is also a sparc T3-1b server on the same chassis sunblade 6000, they also have identical root disks and identical operating systems installed already solaris 10. The NetApp admin, told me he can unmap the LUNs from the origin server, and map them into the new server. The dificulty is once the LUNs are seen on the destination server using the format command, I will not be able to newfs them because they data already...
# 4  
Is there something that I'm not understanding here?????

If the hardware is identical, and you shutdown the old system in an orderly manner, the LUN's are remapped and seen by the new server, you should be able to just mount them. The data is already on there and coherent for each filesystem. Ensure /etc/vfstab is copied over correctly. You might need to edit the device node names (/dev/dsk, /dev/rdsk) should they change and/or recreate the device node names (using devfsadm) but that's all. A simply remap from one machine to another shouldn't cause any filesystem damage, the UFS filesystems should be remountable on the new system.

Regardless though, backup first in case anything does go wrong. Be professional about it.
# 5  
you did understand, everything, what I did not tell was the origin server have crash, so the reason for us to move the LUNs from that server to another
# 6  
That should still be okay. Perhaps some or all of the filesystems will need 'fsck' run on them before they will mount. Other than that, should work, however, you cannot easily backup first so you might have to rely on the last backup before the crash. I assume that the system hasn't been up since then so little work will be lost, however, if you can fsck and mount the remapped LUN's, no work will be lost.

Last edited by hicksd8; 08-08-2018 at 06:06 AM..
# 7  
the first LUN mapped on the other server (destination) can now be seen using the format command:

Code:
bash-3.00# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t5000C5003A0028FFd0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000c5003a0028ff
       1. c0t5000C5003A034CFFd0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000c5003a034cff
       2. c9t4d0 <NETAPP-LUN-8020 cyl 5630 alt 2 hd 16 sec 256>
          /iscsi/disk@0000iqn.1992-08.com.netapp%3Asn.14224149003E8,0
Specify disk (enter its number): ^D
bash-3.00#

its the NetApp LUN.
From here should goto normal procedure of creating a file system wich is using partition, print, slice 6, label that will result in a /dev/dsk/c9t4d0s6.
Can I follow this procedure?
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #642
Difficulty: Easy
The first full release of NeXTSTEP 1.0 shipped on September 18, 1988.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

Moving boot SSD from a dead server to a new server

Hi all, We have a disk array that has the boot drive on an OCZ SSD on a PCIe card. Well, the motherboard died and we got a new motherboard. We moved the controllers, NICs, etc, to the exact same slots on the new motherboard, except now it won't boot. I guess it doesn't recognize the OS on the... (1 Reply)
Discussion started by: glowe57
1 Replies

2. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

3. Solaris

Key Points when Moving from Server A to Server B??

Hi Everyone, I'm still learning daily about UNIX (specifically Solaris 10). I'm tasked with moving my current application and database from Datacenter A to Datacenter B. There will be no updates and no changes other than a new server and new location. So far, I have Solaris... (3 Replies)
Discussion started by: smckech1972
3 Replies

4. Linux

Moving Whole OS Centos Server

I currently have a web server its on a small harddrive I didn't know my site would grow so fast but now I need a bigger hard drive. Instead of adding another harddrive (host charge monthly of how many hard drives connected to server) is there anyway to just move the whole os to a bigger hard drive... (2 Replies)
Discussion started by: awww
2 Replies

5. Shell Programming and Scripting

Moving a database from one server to another

I hope I'm posting this in the correct section. I'm trying to move a database from one server to another. This is the code I'm using... tar czf - vbdatabase.sql | ssh username@full.domain.com 'cat > /home/cpanelusername/vbdatabase.tar.gz ... but all I'm getting is a ">" and then nothing... (4 Replies)
Discussion started by: Chimpie
4 Replies

6. Shell Programming and Scripting

Moving files from one server to another server every 5 min

HI All, I am trying to automate my stuff to make 'to-do-easier'. I am new to shell scripting. I need help to you regarding the below problem. I have one directory in my server, frequently files will store in that directory. I want to move that files into another server on every 5... (5 Replies)
Discussion started by: ravvamohan
5 Replies

7. AIX

moving to new server

I'm moving an application from an old RS6000 running 4.3.2 to a p5 running 5.3. Could someone point me a the direction on docs to perform such a function? Critical OS files, moving of printers and print queues especially. thanks (5 Replies)
Discussion started by: sullivjp
5 Replies

8. Solaris

Do I need to reboot Solaris 10 server for changes in /etc/systems ?

Hi, I have upgraded my Solaris 10 2005 to Solaris 10 2007. I am facing one bug, id: 6550904. To override this issue I have done following changes in /etc/systems: set max_uheap_lpsize = 0x2000 set max_ustack_lpsize = 0x2000 set max_privmap_lpsize = 0x2000 set max_shm_lpsize =... (6 Replies)
Discussion started by: neel.gurjar
6 Replies

9. AIX

Moving to new AIX server

Hello everybody, I am going to move to new AIX server and the question is how to correctly and painless move the whole configuration? I mean for example users, network, and - what is very important - the whole printer system configuration? I think users are simple to move - only /etc/passwd and... (1 Reply)
Discussion started by: Yac
1 Replies

10. UNIX for Dummies Questions & Answers

Moving from one web server to another

Hi All, Thanks for taking the time to read and respond to my post. I am a Unix neophyte. I can install scripts, move around some and perform basic functions - mostly related to websites and alway with a resource guide in front of me. I currently have 12 websites hosted on a VPS and I would... (2 Replies)
Discussion started by: lcurrie
2 Replies

Featured Tech Videos