LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-15-2006, 02:21 PM   #1
gbarnas
LQ Newbie
 
Registered: Feb 2006
Location: New Jersey
Posts: 2

Rep: Reputation: 0
Unhappy Move swap from SAN boot disk to local


Greetings!

I recently installed Linux on a test server at home. This server has four 9G SCSI drives that are in a mirrored stripe set (RAID 0+1 - 18G available space). The entire Linux environment was installed on a 26G fiber channel SAN partition. The problem I've run into is that the Linux swap space is now on the SAN. I was unable to specify the local disk array for swap during installation. (well, I could specify it, but installation hung, so I just went with the SAN install.)

The local disk array is dedicated for swap space for the o/s and the application. What I want to know is what would be the best (safest) way to move the swap from the SAN file system to the SCSI file system. I was thinking about adding a swap partition on the SCSI array first, but am unclear how to de-reference the SAN swap, since it is active at boot.

Thanks!

Glenn
 
Old 02-16-2006, 10:07 AM   #2
irpstrcr
Member
 
Registered: Mar 2005
Location: LAX
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
I would assume the safest way would be to add the local swap space to /etc/fstab and run swapon -a to start it in motion, then run swapoff on the remote swap space and remove the entry for the remote swap space from fstab.
 
Old 02-16-2006, 10:31 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I prefer to work the other way around - make sure it works first before updating system files.
Create a partition, run mkswap on the new partition, and swapon for that partition.
Then you can swapoff the original, and update fstab.
Same end effect.
 
Old 02-21-2006, 09:28 AM   #4
gbarnas
LQ Newbie
 
Registered: Feb 2006
Location: New Jersey
Posts: 2

Original Poster
Rep: Reputation: 0
thanks

Thanks for the suggestions. My linux skills have gotten rusty in the past few years supporting a windows environment.

Unfortunately, by the time I got to try this, my buddy had reconfigured the SAN switch, which dropped connectivity to the Linux box. Losing the swap was apparently fatal, and I was not able to recover it. I did reload it this weekend with the swap on the local disk this time, which should eliminate the problem moving forward. I learned that placing the swap on the second drive apparently requires manual partitioning. The first time, I chose automatic partitioning, and then simply edited the partition definition, which did not work.

Thanks again!

Glenn
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SAN disk problem ronanio Linux - Enterprise 12 03-29-2007 01:52 AM
san disk resize problem ronanio Linux - Enterprise 0 02-07-2006 06:21 AM
Adding new Disk attached from SAN with out reboot.? dcj1mmy Linux - Enterprise 4 10-28-2005 04:42 PM
SAN LUN disk device order jhumeston Linux - Software 1 07-28-2004 06:02 PM
Add Hard disk for swap space with problems in boot sector rkes7 Linux - Hardware 1 01-25-2004 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration