Solved

Adding Dec OSF3.2 Swap Space

Posted on 1997-04-30
4
263 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
ID: 1812098
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
ID: 1812099
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
ID: 1812100
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
ID: 1812101
Anybody in?
-julio
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

937 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

10 Experts available now in Live!

Get 1:1 Help Now