ADVFS re-partation after default install

From: Dermot Paikkos <dermot_at_sciencephoto.com>
Date: Fri, 29 Jun 2001 15:00:54 +0100

For those of you with memories like elephants you might remember
a question posed some time back regarding ADVFS & UFS.

The real problem was that a default installation of tru64 used
dska /
dskg /usr & /var

In my case that left 5Gb unused on dskh, not acceptable I thought.
So after a posting I got a telephone call and mail from Tony McElhill.
He had seen this before and had a solution or at least a more
efficient use of the available 9GB. This idea is simply to move the
/usr and /var to the dskh partition rather than the g partition. Simple
but I gained 4GB and I still abide by the "not more than 2 domains
per disk" best practise. The method is outlined below from Tony's
mail. Perhaps there are other solutions out there still to be
unearthed.

Happy hunting.
Dp.

--------------------------method -----------------------
This assumes:
a=root
b=swap
g=usr&var
h=free.

Do as before when you created a new domain:
mkfdmn /dev/dsk0h fred_dmn (or is it /dev/dsk/dsk0h?)
You may get complaints about this partition being in use because
you
previously used it.

Create 2 new filesets for usr & var:
mkfset fred_dmn usr
mkfset fred_dmn var

Make 4 new mount-points:
mkdir /newusr /newvar /oldusr /oldvar

Edit /etc/fstab to add similar entries to usr_domain, but called
fred_dmn
& mount at new mount-points, e.g.: fred_dmn#usr /newusr
advfs rw 0 0
fred_dmn#var /newvar advfs rw 0 0

Mount them:
mount -a

Copy from usr to newusr (note that syntax is important - check man
pages
of vrestore - you may find a good example to cut & paste): vdump -
0f -
/usr | (cd /newusr; vrestore -xf -) and likewise for var: vdump -0f - /var
| (cd /newvar; vrestore -xf -)

When done, edit fstab:
Change mount points for /usr to /oldusr, /var to /oldvar, /newusr to
/usr
and /newvar to /var.

Review what you have done!
If happy:
shutdown -r now

~~
Dermot Paikkos * dermot_at_sciencephoto.com
Network Administrator _at_ Science Photo Library
Phone: 0207 432 1100 * Fax: 0207 286 8668
Received on Fri Jun 29 2001 - 14:03:06 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT