Solved

How to migrate a existing Lun with a different Lun

Posted on 2014-09-27
3
270 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 61

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
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…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now