From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,148e4de4d1d57db3 X-Google-Attributes: gidfee84,public From: john@avante.WPI.EDU (John Stoffel) Subject: Re: ADVFS: can you addvol partial disks? Date: 1995/12/22 Message-ID: #1/1 X-Deja-AN: 122585052 sender: john@avante.WPI.EDU references: <4bcs3a$d7i@lynx.unm.edu> organization: Worcester Polytechnic Institute newsgroups: comp.unix.osf.osf1 >>>>> "Cheryl" == Cheryl Haaker writes: In article <4bcs3a$d7i@lynx.unm.edu> haaker@technet.nm.org (Cheryl Haaker) writes: Cheryl> We recently added a 4GB disk, and were of the opinion that we Cheryl> could use partitions of it to increase the size of the /var Cheryl> domain and some of the special /usr/ Cheryl> partitions, and add another swap partition. We assumed we Cheryl> could get a lot of milage out of 4 Gigs, and by using AdvFS, Cheryl> could avoid having to back up, repartition, then restore the Cheryl> entire system. Cheryl> But the AdvFS documentation, such as it is, emphasizes that Cheryl> you should only add in FULL DISKS when you addvol, and all of Cheryl> the examples use the full c partition!! They emphasize using only full partitions for performance reasons. You can use addvol to add any partition on a disk to an existing domain without problems. Now one way you can get around having to dump, repartition and restore is to use the Advfs utilities to add and delete volumes from a domain. This lets you migrate info from one disk to another fairly easily. In your case, what I would do is use disklabel to make some new partitions on the 4Gb disk for some of the /usr paritions you wanted to expand. The partition should be the total size you want it hold. Say you have /usr/foo which is 500Mb and you want it to be 1Gb, and it's current parition is rz0h and the new disk is rz1x. You could do: disklabel -e rz1 [ create a 1Gb partition at 'd' ] addvol /dev/rz1d domain_foo rmvol /dev/rz0g domain_foo You've now moved /usr/foo to another disk and increased it's size, all without bothering your users or any downtime. Of course the rmvol command will take a while to run as it moves the data over, plus your system will be taking a performance hit during this time, so it's probably best to do this late at night. Now that you have more room on rz0, you can expand /var by either addvol'ing a new partition to it's current domain, or simply using the sae technique as above to move it to a bigger partition. John John F. Stoffel | Kill your television. john@wpi.edu | College Computer Center |