From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,96f547b8b37aff1a X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: DU4.0d and DiskConfiguration Date: 1998/11/25 Message-ID: <73hk1s$vr7$1@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 415759019 Distribution: world References: <365dfa1e.17215434@news.tu-darmstadt.de> Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Newsgroups: comp.unix.osf.osf1 In article <365dfa1e.17215434@news.tu-darmstadt.de> you write: >Hello! > >I'm very new to DU and have a few questions regarding the Disk >Configuration Utility: >1. The tool (configure partitions) looks a bit like Partition Magic, >so I had the idea that it might be possible to change the sizes of the >partitions "on the fly". After pressing the "apply" button, there is a >warning message of possible data loss. Is this a _possible_ loss, or >will the data on the changed partitions be lost? >And if it should work without what is the possability of data-loss >-more like 10 or like 90%? Neither local file system supported by Digital UNIX can handle the underlying partition changing size. Increasing the size of a partition will merely waste the space. Decreasing the size of a partition will at best result in I/O errors to the area past the end of the partition and worst look like file system corruption causing the system or domain to panic. In the case of AdvFS any I/O error accessing file system meta- data is treated as corruption. If you change the starting location of a partition, then it gets really bad. If you arrange for an unused partition to overlap an in use one, then putting the new partition in use will eventually overwrite parts of the other. The first thing, after opening a device, newfs does is that it tries to write the last sector of the partition being used. So, creating a UFS will quickly overwrite something in an overlapped partition. >2. What happens if the DU starts without or with a changed >swap-partition? re: without. It will operate in over-commit mode. This is the same result you get when you remove /sbin/swapdefault before the page/swap space is added. If you more memory than virtual memory needs, the system will continue to run. Once the system is unable to allocate page/swap space, idle processes are killed, so those trying to page and swap will have somewhere to go. re: With the size changed. It will use the amount of space indicated by the partition size. If that happens to overlap some other partition, too bad for the data on that partition. >As the preinstalled swap partition is to small I would like to change >it (see 1.) or I have to create a new one. So is it possible with just >this utility to delete the old and create a new swap partition or do I >have to change something else? The existing page/swap space is almost certainly adjcent with some other partition that's being used. To shrink the others, you have to migrate them to new space. Once you can safely increase the size of the page/swap space, the system will use whatever is there. If you have a spare disk partition, it is much simplier to add it with the swapon(8) command. The system can have more page/swap devices than you can have disks... -- Alan Rollow alan@nabeth.cxo.dec.com