Solved

How to migrate a existing Lun with a different Lun

Posted on 2014-09-27
3
275 Views
Last Modified: 2014-10-07
As part of a Storage Migration project, Storage team allocated a new Lun for Swap disk as a replacement for the existing swap lun.

I have partitioned the new lun with the same partition table as existing lun.

Whats the next step I should follow so that it will not affect application running in the system. ( Migrating from old swap lun to new swap lun )

I want to replace the existing swap lun disk with the new swap lun.
0
Comment
Question by:bt74
3 Comments
 
LVL 21

Accepted Solution

by:
robocat earned 500 total points
ID: 40348348
Look for the old swap in the entries in /etc/vfstab and comment it out
(e.g.)
#/dev/dsk/c1d0s1 - - swap - no -

Next add a line in /etc/vfstab referring to the new slice you want to use

/dev/dsk/c5d0s1 - - swap - no -

Now remove the swap from active usage and add the new one

/usr/sbin/swap -d /dev/dsk/c1d0s1

/usr/sbin/swap -a /dev/dsk/c5d0s1

Check that everything went to plan:

swap -l

Make sure you refer the the correct devices or you could accidentally cause a lot of issues.
0
 
LVL 62

Expert Comment

by:gheist
ID: 40348496
swapoff -a ; swapon -a
will stop using any swap you are using and use whatever it has in fstab.
0
 
LVL 16

Expert Comment

by:Joseph Gan
ID: 40351107
For Unix/Solaris OS, using /etc/vfstab to delete old swap lun, and add new swap lun. Then follow robacat's instruction.
For Linux OS, using /etc/fstab to delete old swap lun, and add new swap lun. Then follow gheist's instrauction.

You did not mentioned which OS you are using.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question