From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7792dbcda2807f7b X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,7792dbcda2807f7b X-Google-Attributes: gidfee84,public From: Keith Moodie Subject: Re: Resizing disks Date: 1999/07/20 Message-ID: <3793BBA6.41C6@dnr.qld.gov.au>#1/1 X-Deja-AN: 502919383 Content-Transfer-Encoding: 7bit References: <37938282.D58E3C2@salud.unm.edu> Organization: Queensland Centre for Climate Applications Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.sys.dec,comp.unix.osf.osf1 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