Unix administration - mv swap to other partition

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > March 2005 > mv swap to other partition





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mv swap to other partition
blackdog

2005-03-12, 5:50 pm

I have SunOS4.1.4. Currently, the swap space is at partiton /dev/sd1e.

in my fstab file I configur as
/dev/sd1e /export/swap 4.2 rw 1 9
swap /tmp tmp rw 0 0

I need to the swap to other disk such /dev/sd0f ...
What should I do?

Thanks

Doug Freyburger

2005-03-13, 5:51 pm

blackdog wrote:
>
> I have SunOS4.1.4.


Step one - Get a recent operating system. Find a
recent version of the application or switch to a
different application.

> Currently, the swap space is at partiton /dev/sd1e.
> in my fstab file I configur as
> /dev/sd1e /export/swap 4.2 rw 1 9
> swap /tmp tmp rw 0 0
> I need to the swap to other disk such /dev/sd0f ...
> What should I do?


Man pages for fstab, swap and swapon. The words of
the file are device (/dev/sd0f), mountpoint (swap),
filesystem type (swap), rear-write-status (rw),
shoudlfsck (0), order-of-fsck (0). I think I
remembered the words in parens but it's been years.

Interesting that you have "4.2" and a filesystem
type. I remember "ufs" being used.

blackdog

2005-03-14, 5:57 pm

Yes it is a very old operating system, but it is not my decision
though.

I need to add one new disk and put the swap at the new disk.
Would any one please provide some information how to do parition and I
can
configure swap space on the new disk.

Thanks

Doug Freyburger

2005-03-14, 5:57 pm

blackdog wrote:
>
> I need to add one new disk and put the swap at the new disk.
> Would any one please provide some information how to do parition and

I
> can configure swap space on the new disk.


Please provide context when you post. If I hadn't
responded earlier I wouldn't know what you were
discussing.

To partition - use "format". It is a menu oriented
program so read the man page and inspect the menu
options carefully. Basically you slice-n-dice the
drive, keep the "c" partition to be an overlap of the
entire drive, pick one of the partitions to use as
swap, and then enter that partion into /etc/fstab.
On the fly I think "swapon -a" may work, but look
through /etc/rc and follow it's chain of events
looking for how it enables swap spaces. Then use
what it uses or reboot.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com