From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078701111350.tru64-unix-managers.marc@archive.invalid> From: Erkan Durmus Date: Tue, 10 Mar 1998 11:38:22 +0000 To: tru64-unix-managers Subject: SUMMARY: Enlarging root file system X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078701111350 Hello Gurus, Sorry for late SUMARY. Thanks for your responses. > -----Original Message----- > From: Erkan Durmus [SMTP:erkan@sigorta.com] > Sent: Wednesday, March 04, 1998 3:19 PM > To: DEC UNIX Managers > Subject: Enlarging \root file sytem > > Dear Managers, > How can increase the size of the root file system on OSF3.2? > Thanks in advance. > E.D. Paul Crittenden: The way I did it was to backup the root file system, rewrite the disklabel and restore the data back to the new file system Barry Treahy: With UFS, I don't believe you can without backing up, repartitioning your hard drive, and then restoring... Perhaps you have already thought about this, but you have moved your /usr directory to another partition, right? If not, this is a much less painful way of accomplishing your task. By moving /usr off the root partition, you'll regain tons of space, presuming you have space on another partituin that you can move /usr too... Masson Christophe: If you have a ufs file system, i know only the following solution (i have succefuly tested) : - boot on cdrom - mount the / file system RO - mount a another file system RW or a tape - dump the / file system in a file in the second file system (or on tape) - I make two dumps .... - increase the / file system. If you swap as b partition, it's easy. If not you must dump file system, edit the partition table and after restore. - restore / file system Alan Rollow - Dr. File System's Home for Wayward Inodes.: Migrate it to a larger partition. If you have a spare disk create a new file system on that and use the appropriate backup/restore software to move. You'll need to do this running single user. Having your root mirrored by LSM by complicate this a lot, but for a single partition using AdvFS or UFS it isn't too bad. If you don't have a spare partition, then you'll have to take space away from the page/swap partition, back it up to tape, recreate the file system from the standalone system and then restore it. If you can create a larger file system on an alternate disk, the simplest command to move the data is: dump 0f - / | ( cd /mnt ; restore rf - ) or vdump 0f - / | ( cd /mnt ; vrestore xf - ) Use the first if the root file system is UFS, the 2nd if it is AdvFS. You need to have the alternate root mounted as /mnt. If you're using AdvFS, be sure to use the "-t advfs" option on the disklabel command to get the AdvFS boot block. Once the data has been moved, edit /etc/fstab to reflect the new device name for the root and default page/swap space. If you're using the default page/swap mode, change the link /sbin/swapdefault to be the new device. Tim Winders: I'm pretty sure the only way is to backup, create a new partition and restore... Thomas Leitner: There is no other way than to backup the root file system, boot from another disk (or CD-ROM), modify the root partition and restore it. If you're experienced and have a spare disk, though, it can be done with a minimum downtime of a couple of minutes by preparing everyting on the spare disk (including the new disklabel), booting from the spare disk, installing the new disklabel, restoring root and pronto. FaRgO: The only way I know is to backup your fs, resize your partition and then restore it. John Robens: I did it last week by: 1.booting the system from the cdrom 2. make all the devices you need (for the one I did, cd /dev ./MAKEDEV rz9 for the root disk ./MAKEDEV tz88 for the tape drive) 3. mounted the root file system (I use advfs, so it was mount -t advfs root_domain#root /mnt) and dump it to the tape. Mount and dump anything else that may on on this disk. unmount the volumes. 4. edit the partition table on the root device (export TERM=; export EDITOR=; disklabel -e rz9). If you mirror the root device you will also have to edit the partition table on the mirror. 5. mount the disks again and copy the data back. I was recommended this method by one DEC engineer. Another did suggest booting from the mirror, and editing the original, then doing the same with the mirror. You could try this, but I still wouldn't do anything without a full dump. Jim Belonis backup to tape, boot from CDROM. re-partition disk, restore from tape. Lars Bro : Hi, You got to relabel the system disk. This is no fun though. The following is what I have documented for our system integration staff. The problem is that you need to make a backup of the root, usr and var filesets then restore those when booted on the CD-ROM But the vrestore on the CD-ROM is too old for the vdump of the installed system. Note that I use advfs for all file systems on the root disk. You might use UFS in which case you should use dump and restore It all takes an hour or two of downtime. Ana Pedraz: -add an extra disk on the machine -back your system disk up -convert both disks in to one single file domain by using ADVFS -mount it and then recover your data. Then when ever you need to increase the size, add some more volumes in to the domain. If you don't want to go through that, what about moving some directories to other disks and then just creating a link from their new locations to the place where they used to be.