Solved

Adding Dec OSF3.2 Swap Space

Posted on 1997-04-30
4
261 Views
Last Modified: 2013-12-16
Below I provide some information about the disks mount of my DEC Alpha running OSF3.2. I want to increase the size of the swap space to a total of 400 megabytes, but have no idea how to figure out where OR HOW to do so. I know the final step --- just add a line to /etc/fstab. But I have no idea how to
1) figure out where to put it. I would be willing to change part of a normal disk to a device file if necessary
2) figure out if parts of /dev/rz0 are truly free. because, disklabel indicates that dev/rz0b is unused, BUT /etc/fstab lists it as swap
bash# uname -a
OSF1 sand V3.2 214 alpha
bash#
bash# swapon -s
Swap partition /dev/rz0b:
    Allocated space:        20477 pages (159MB)
    In-use space:            1020 pages (  4%)
    Free space:             19457 pages ( 95%)


Total swap allocation:
    Allocated space:        20477 pages (159MB)
    In-use space:            1020 pages (  4%)
    Available space:        19457 pages ( 95%)
bash#
bash# disklabel -r rz0
# /dev/rrz0a:
type: SCSI
disk: rz26l
label:
flags:
bytes/sector: 512
sectors/track: 57
tracks/cylinder: 14
sectors/cylinder: 798
cylinders: 2570
sectors/unit: 2050860
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0            # milliseconds
track-to-track seek: 0      # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:   131072        0    4.2BSD     1024  8192    16       # (Cyl.    0 - 164*)
  b:   327647   131072    unused     1024  8192             # (Cyl.  164*- 574*)
  c:  2050860        0    unused     1024  8192             # (Cyl.    0 - 2569)
  d:   327647   131072    unused     1024  8192             # (Cyl.  164*- 574*)
  e:   327647   131072    unused     1024  8192             # (Cyl.  164*- 574*)
  f:   327647   131072    unused     1024  8192             # (Cyl.  164*- 574*)
  g:  1592141   458719    4.2BSD     1024  8192    16       # (Cyl.  574*- 2569*)
  h:   327647   131072    unused     1024  8192             # (Cyl.  164*- 574*)
bash# cat /etc/fstab
/dev/rz0a      /      ufs rw 1 1
/proc            /proc      procfs rw 0 0
/dev/rz0g      /usr      ufs rw 1 2
/dev/rz0b      swap1      ufs sw 0 2
/var/mail@quake      /usr/var/spool/mail      nfs rw,bg 0 0
/export/freeway@quake      /export/freeway      nfs rw,bg 0 0
/export/dumbo@quake      /export/dumbo      nfs rw,bg 0 0
/export/local@seal      /export/local   nfs rw,bg 0 0
/usr/openwin@seal      /usr/openwin      nfs rw,bg 0 0
/oscar@seal            /oscar            nfs rw,bg 0 0
/felix@seal            /felix            nfs rw,bg 0 0
bash#
0
Comment
Question by:brannon030697
  • 3
4 Comments
 
LVL 5

Accepted Solution

by:
julio011597 earned 200 total points
Comment Utility
From your fstab, it seems that you've got just one 2G disk.

If this is so, you cannot add any additional swap since, YES, your disk is already fully in use.

Disklabel sais rz0b is unused because you didn't make a file system on it, nonetheless the OS uses it as swap space.

So your rz0 situation is:

rz0a: the / (root) partition
 blocks 0-131071
rz0b: the swap partition
 blocks 131072-458718
rz0g: the /usr partition
 blocks 458719-2050859 (and here your disk ends:)

Rgds, julio
0
 

Author Comment

by:brannon030697
Comment Utility
I still am not sure if I could take part of /usr and reclaim it for use as swap space
0
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
No, you cannot: having a look at swapon(8), you may read: "DEC OSF/1 does not currently support paging and swapping to a regular file. All swapping and paging areas must be block special devices."

So, increasing the size of the swap area becomes a metter of modifying the disk partitions to the sizes you need.

In your case, since you have one hard disk only, which is also the system disk, you could simply go this way:

1. backup significant data (data, programs you may want to reinstall, config files, etc...);
2. reistall the OS from scratch;
3. while reinstalling, chose a custom installation and customize disk partitions for your needs; you should leave partition 'a' as it is by default (it is needed for boot informations and for root), then make up two more paritions, one for the swap, the other for usr, having the sizes you need.

Also, keep in mind that block are 512K in size - which also means you've got a _1G_ hard drive...

HTH, julio
0
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
Anybody in?
-julio
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 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

6 Experts available now in Live!

Get 1:1 Help Now