Add SWAP to free slice


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Add SWAP to free slice
# 1  
Old 03-09-2006
Add SWAP to free slice

I'm interested in adding more swap space to my current workstation (Solaris 10). I currently have 2 hard drives installed, however the system was only created with 512MB for swap that resides on drive 1. This drive is already sliced up and all slices are being used.

The second drive has two slices (50G & 25G), however only the 50GB slice is being used. Is there a way I can slice the 25GB into two slices and use one of the new slices for swap? I have data on the 50G slice that I can't afford to lose.

I realize that more swap can be added by simply creating a file and using that as swap, but I'd rather using a partition (if possible) since I have it available.

In addition (for my future reference), are swap related errors written to /var/adm/messages? I looked in this file and it ONLY had two lines that were dated two days ago. These entries were unrelated to swap. Is this file purged on reboot? The workstation has been active for 6-months now and there were only 2 lines in this file.

Thanks.

Last edited by here2learn; 03-10-2006 at 08:51 AM..
# 2  
Old 03-09-2006
Quote:
The second drive has two slices (50G & 25G), however only the 50GB slice is being used. Is there a way I can slice the 25GB into two slices and use one of the new slices for swap? I have data on the 50G slice that I can't afford to lose.
Use the format command to change the partitions - copy the original set up, use only the cylinders from the 25GB when changing the old and new entry.

See this thread which shows an example of building a new partition from unused space (you would use the space from the 25G parition instead by splitting it - make sure the space isn't used or mounted when you go to do this)

Quote:
In addition (for my future reference), are swap related errors written to /var/adm/messages?
/var/adm/messages is only going to have what the system is sending it - you need to look at your /etc/syslog.conf to see where it's sending messages. Use the search button on any page on this web site to search for syslog.conf - this has been explained before.
# 3  
Old 03-09-2006
Tools /var/adm/messages is purged every saturday night

Quote:
Is this file purged on reboot?
# by default, solaris does a "log rotate" every saturday night (better : sunday dawn) with /var/adm/messages

# it stores and ages the last 6 messages files .

(this is why you find 'messages.0' , '.1' ... until '.6' on /var/adm)

# so you only have the last 6 weeks of log , plus the current one .

# these files are NOT purged on reboot .

good luck , and success !
# 4  
Old 03-10-2006
Thanks RTM. Your directions worked perfectly and I didn't loose any data.

Appreciate the info on /var/adm/messages Botato; I'll have to remember that.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Swap completely used with memory free

I have a Solaris 10 VM that processes are seg faulting on (no space) and swap goes from 64GB to 151MB which triggers the seg fault. The free memory is 25GB when this occurs. I have adjusted the project to use all available ram. My question is why is swap being filled with 25GB remaining? the... (10 Replies)
Discussion started by: thefroggy
10 Replies

2. Solaris

Possible to increase swap size for existing UFS-based drive slice?

I like to increase swap size for my current server running solaris 10. Seems like the system is not using it's full 16G of physical memory. #swap -l swapfile dev swaplo blocks free /dev/dsk/c0t0d0s1 32,1 16 1058288 1058288 # swap -s total: 4125120k bytes... (17 Replies)
Discussion started by: JT-KGY
17 Replies

3. Shell Programming and Scripting

Swap usage by top and free command doesn't match

Its rather confusing, the output of top command is below: The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image." But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Discussion started by: proactiveaditya
3 Replies

4. UNIX for Dummies Questions & Answers

[Query] Confusion of the Swap when using 'free -m' command

Hi All, I have just installed my first Linux server ( Ubuntu 11.10 ). I am sure I didn't allocate /swap , and double check by 'df -h', yes really no /swap but when I use 'free -m' , returned a "Swap" line as below. total used free shared buffers cached Mem: ... (3 Replies)
Discussion started by: joaming
3 Replies

5. Solaris

clear swap slice

is there a command that would zero swap slice? I found these instructions: but hoping there is some swap-specific command (3 Replies)
Discussion started by: orange47
3 Replies

6. Solaris

df –k shows 100% used for a slice even after min free has been decreased from 10% to

Hi Gurus, For a particular slice I have change the minfree from 10% to 1% with tunefs -m and its allowing the creation of file on that slice, however when I am seeing the same with df -k it says that the slice is 100% full. What could be reason for this? Thanks (2 Replies)
Discussion started by: kumarmani
2 Replies

7. Solaris

How to create metadb when there is no free slice

Hi All, I have to do disk mirroring, for that I have to create a metadb as disk mirroring have to do with SVM. However I do not have any slice free for metadb. What are the options? Please suggest (4 Replies)
Discussion started by: kumarmani
4 Replies

8. Solaris

mirroring the boot slice (slice 8) on x86

Hi there I am about to mirror a Solaris 10 x86 box (SunFire X4100) onto a secondary disk using svm (current system is one disk). My question is this, on X86 boxes there is a slice 8 defined as boot partition (and also a slice 9, dunno what its used for tho). Do I need to mirror this boot slice... (0 Replies)
Discussion started by: hcclnoodles
0 Replies

9. UNIX for Dummies Questions & Answers

How do I find out how much swap and memory is free?

In Solaris 2.6 and 8 How do I find out how much swap and memory is free? Also how can I see how much memory each process is consuming? Thanks in advance (2 Replies)
Discussion started by: expos
2 Replies

10. UNIX for Dummies Questions & Answers

run fsck on swap slice?

Hi.. i am using sun solaris...and this is the filesystem information... you can see th slice(swap) c0t0d0s1 is giving some absord information......and during rebooting it is asking to run fsck mnually..when i run fsck manually it is giving error incorrect starting and end header...smthing like... (1 Reply)
Discussion started by: Prafulla
1 Replies
Login or Register to Ask a Question