Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Resizing disks
@ 1999-07-19  4:00 david minor
  1999-07-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: david minor @ 1999-07-19  4:00 UTC (permalink / raw)


Hi. I'm new to the UNIX admin game and I have what I hope is a
straightforward question:

This is for an Alpha Server 2100 running DU 3.2c

Our rz0 disk is 1.2 gig in size and nearing capacity. We have a 4 gig
drive that we would like to replace it  with. At the same time we would
like to resize / from 64 to 128 mb and /usr from 1.7 to 2.5 gig.

What would be the least painful way to do this?

Possibilities:

- vdump from current rz0. Physically pull it out of the machine.
disklabel the new drive as rz0 and partition it in the sizes we want.
vrestore the directories into their new home.

- vdump from current rz0. disklabel rz0 something else (doesn't matter
what). disklabel the new drive as rz0 and partition it in the sizes we
want. vrestore the directories into their new home.

Do either or neither of these make sense?? Is there a better way? Again,
I'm new at this so be gentle!

thanks,

david.

ps. this is also in anticipation of upgrading from 3.2c to 4.0e




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Resizing disks
  1999-07-19  4:00 Resizing disks david minor
@ 1999-07-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1999-07-20  4:00   ` Eric Bennett
  1999-07-20  4:00   ` Thor Lancelot Simon
  1999-07-20  4:00 ` Keith Moodie
  1999-07-25  4:00 ` Nikola Milutinovic
  2 siblings, 2 replies; 7+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1999-07-19  4:00 UTC (permalink / raw)



It depends on the file system, the content and what licenses you have.

To resize UFS, you have to backup the data, resize the partition and
restore the data.  Not necessarily in that order if you have a spare
disk.

To resize AdvFS, there is an elegant shortcut if you have the Utilities
license.  For any file system but the root, you can add a partition to
the domain for the file system and then remove the original.  AdvFS
will migrate the data to the new space.  For the root you still have
to create the new domain by hand, then backup/restore.

If you can't keep the spare disk online during the migration, it is
little different than restoring a backup after a system crash.  The
system management documentation may have guidelines for how to do
that.

On some versions, it is wise to run verify on the domain before using
addvol/rmvol to migrate data.
--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Resizing disks
  1999-07-19  4:00 Resizing disks david minor
  1999-07-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1999-07-20  4:00 ` Keith Moodie
  1999-07-25  4:00 ` Nikola Milutinovic
  2 siblings, 0 replies; 7+ messages in thread
From: Keith Moodie @ 1999-07-20  4:00 UTC (permalink / raw)


david minor wrote:
> 
> Hi. I'm new to the UNIX admin game and I have what I hope is a
> straightforward question:
> 
> This is for an Alpha Server 2100 running DU 3.2c
> 
> Our rz0 disk is 1.2 gig in size and nearing capacity. We have a 4 gig
> drive that we would like to replace it  with. At the same time we would
> like to resize / from 64 to 128 mb and /usr from 1.7 to 2.5 gig.
> 
> What would be the least painful way to do this?
> 

Hi, I upgraded from 4.0C to 4.0D about 6 months ago, and at the same
time went from a small disk to a larger one, this is what I did. There
are probably some things that could be done better. This was on a
Personal Workstation 433au.


First good news for you is that there is no need to remove / relabel the
disks in the machine. 

Your steps are 
1 configure the 4 GB disk
  1.1 Make sure there is nothing you want on it.
  1.2 (Assuming you are using Common Desktop Environment 'CDE')
      Anyone who has experience with 3.2c please check this
      Select the application manager 
         select system admin
           select configuration
             select disk utility
               now select your 4 GB disk and partition it
               NB stay with BSD ufs

2 copy old disk to new
  Use vdump to copy everything on your old disk to the corresponding
areas on the new disk.
  Configure the swap partition on the new disk

3 fix the /etc/fstab file on the new disk

  #/dev/rz16b     swap1   ufs    sw  0  2
  #/dev/rz16a     /       ufs    rw  1  1
  #/dev/rz16g     /usr    ufs    rw  1  2
  /dev/rz16a      /root_old       ufs    rw 1 1
  /dev/rz16g      /usr_old       ufs    rw 1 1

  /dev/rz18a      /       ufs    rw 1 1
  /dev/rz18g      /usr    ufs    rw  1  2
  /dev/rz18b      swap2   ufs    sw 0 2


3 test the new disk
  Shutdown your computer.
  at the >>> prompt you can BOOT whichever disk you want
  check how to do this with HELP BOOT  (my machine is up so I cant)

  Test the the new disk works OK 

  Shutdown and change the BOOT disk using a SET command
    SET DEFAULT_BOOTDEV or something like that
  again check the >>> HELP

NB it is sometimes usefull to have two system disks, even if one is an
older version of the OS. Just make sure you comment out the bits of
fstab for all other disks

  eg on your old system disk comment out anything in /etc/fstab that
doesnt refer to the old system disk.


Hope this helps.

-- 

Keith Moodie,

moodiek@dnr.qld.gov.au



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Resizing disks
  1999-07-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1999-07-20  4:00   ` Eric Bennett
@ 1999-07-20  4:00   ` Thor Lancelot Simon
  1 sibling, 0 replies; 7+ messages in thread
From: Thor Lancelot Simon @ 1999-07-20  4:00 UTC (permalink / raw)


In article <7n09od$uk3$1@nntpd.lkg.dec.com>,
Alan Rollow - Dr. File System's Home for Wayward Inodes. <alan@nabeth.cxo.dec.com> wrote:
>
>It depends on the file system, the content and what licenses you have.
>
>To resize UFS, you have to backup the data, resize the partition and
>restore the data.  Not necessarily in that order if you have a spare
>disk.

That's not, strictly speaking, true.  It's pretty easy to grow a UFS, and
there's plenty of code out there to do it.  You can probably find some with
AltaVista or DejaNews.

Shrinking one, on the other hand... that's hard.  Do what Alan said. :-)

-- 
Thor Lancelot Simon	                                      tls@rek.tjls.com
	"And where do all these highways go, now that we are free?"



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Resizing disks
  1999-07-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1999-07-20  4:00   ` Eric Bennett
  1999-07-20  4:00     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1999-07-20  4:00   ` Thor Lancelot Simon
  1 sibling, 1 reply; 7+ messages in thread
From: Eric Bennett @ 1999-07-20  4:00 UTC (permalink / raw)


In article <7n09od$uk3$1@nntpd.lkg.dec.com>, alan@nabeth.cxo.dec.com (Alan
Rollow - Dr. File System's Home for Wayward Inodes.) wrote:


> On some versions, it is wise to run verify on the domain before using
> addvol/rmvol to migrate data.

If you don't mind my asking...

which versions, and why?

-- 
Eric Bennett (www.pobox.com/~ericb)
Department of Chemistry & Chemical Biology, Cornell University

Hofstadter's Law: It always takes longer than you expect,
even when you take into account Hofstadter's Law.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Resizing disks
  1999-07-20  4:00   ` Eric Bennett
@ 1999-07-20  4:00     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1999-07-20  4:00 UTC (permalink / raw)



In article <ericb-2007991501290001@x3066.resnet.cornell.edu>, ericb@pobox.com (Eric Bennett) writes:

>In article <7n09od$uk3$1@nntpd.lkg.dec.com>, I wrote:
>Rollow - Dr. File System's Home for Wayward Inodes.) wrote:
>
>> On some versions, it is wise to run verify on the domain before using
>> addvol/rmvol to migrate data.
>
>If you don't mind my asking...
>
>which versions, and why?

I've never had the problem myself, so I don't know which versions
may have a problem.  As to why...  Normal day to day activity
doesn't exercise every nook and cranny of a file system.  Subtle
corruptions from old bugs (or current ones) can creep into a file
system.  The data migration that occurs with a rmvol should
exercise every bit of the domain on the device being removed.
If such a corruption exists on that device, it may cause the
rest of the domain, and thus you, grief.

>-- 
>Eric Bennett (www.pobox.com/~ericb)

--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Resizing disks
  1999-07-19  4:00 Resizing disks david minor
  1999-07-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1999-07-20  4:00 ` Keith Moodie
@ 1999-07-25  4:00 ` Nikola Milutinovic
  2 siblings, 0 replies; 7+ messages in thread
From: Nikola Milutinovic @ 1999-07-25  4:00 UTC (permalink / raw)


david minor wrote:

> - vdump from current rz0. Physically pull it out of the machine.
> disklabel the new drive as rz0 and partition it in the sizes we want.
> vrestore the directories into their new home.
> 
> - vdump from current rz0. disklabel rz0 something else (doesn't matter
> what). disklabel the new drive as rz0 and partition it in the sizes we
> want. vrestore the directories into their new home.

First of all, there is no such thing as "disklabel the new drive as
rz0". You simply disklabel the drive and its number depends on it's SCSI
ID and a SCSI controller number.

rz0  - SCSI0 ID0
rz1  - SCSI0 ID1
....
rz8  - SCSI1 ID0
....

So, you can have both drives in the machine, disklabel the second *the
way you want it*, create any file systems you like (don't forget the
swap area) and do "vdump | vrestore" thing. No tapes needed.

> ps. this is also in anticipation of upgrading from 3.2c to 4.0e

There are a lot of changes and there is an upgrade path to be followed.

3.2c - 3.2g - 4.0a - 4.0b/c - 4.0d - 4.0e

Nix




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-07-25  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-19  4:00 Resizing disks david minor
1999-07-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-07-20  4:00   ` Eric Bennett
1999-07-20  4:00     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-07-20  4:00   ` Thor Lancelot Simon
1999-07-20  4:00 ` Keith Moodie
1999-07-25  4:00 ` Nikola Milutinovic

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