tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Dermot Paikkos <dermot () sciencephoto ! com>
To: tru64-unix-managers
Subject: ADVFS re-partation after default install
Date: Fri, 29 Jun 2001 14:00:54 +0000	[thread overview]
Message-ID: <102653649622153.tru64-unix-managers.marc@archive.invalid> (raw)

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@sciencephoto.com
Network Administrator @ Science Photo Library
Phone: 0207 432 1100 * Fax: 0207 286 8668

                 reply	other threads:[~2001-06-29 14:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox