Solved

How to migrate a existing Lun with a different Lun

Posted on 2014-09-27
3
279 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VMware lost connectivity to datastore 15 961
Netapp snapshot 9 53
SED solid state drive that can be used with XP pro 2 45
Exchange Server Send connector and DNS Round Robin ? 6 49
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

730 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