* Expanding root partition
@ 2000-09-11 19:15 Marble Head
[not found] ` <513trskt630cfv6d6uh0u40dgu32pr95ed@4ax.com>
0 siblings, 1 reply; 13+ messages in thread
From: Marble Head @ 2000-09-11 19:15 UTC (permalink / raw)
I've got a system running v4.0F.
The / partition is UFS.
There's plenty of unused space on this disk, and plenty of unused space
on various other disks.
I want to expand the / partition.
Suggestions please?
Here's what I tried:
- Thought about using tar, but on the in-use mounted / partition, with
several other partitions also mounted, maybe not such a good idea.
- Tried using dd to copy this disk to that disk, to have a non-mounted
copy, but dd won't write to the other disk (dd bs=1024k if=/dev/rrz9c
of=/dev/rrz14c) substitute a for c, or get rid of bs, no difference.
- Check in to man dump, but having never used it before, concluded with
a strong suspicion that I would end up accidentally destroying the
partition.
^ permalink raw reply [flat|nested] 13+ messages in thread[parent not found: <513trskt630cfv6d6uh0u40dgu32pr95ed@4ax.com>]
* Re: Expanding root partition [not found] ` <513trskt630cfv6d6uh0u40dgu32pr95ed@4ax.com> @ 2000-09-13 14:32 ` Marble Head 2000-09-13 15:43 ` nick de Beer 0 siblings, 1 reply; 13+ messages in thread From: Marble Head @ 2000-09-13 14:32 UTC (permalink / raw) vdump and vrestore are for vfs. I am using ufs. I will, however, look more into dump and restore. Richard wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Mon, 11 Sep 2000 15:15:59 -0400, Marble Head > <Marble.Head@nospam.guacamole.com> wrote: > > >I've got a system running v4.0F. > >The / partition is UFS. > >There's plenty of unused space on this disk, and plenty of unused > >space on various other disks. > > > >I want to expand the / partition. > > > >Suggestions please? > > Why don't you use vdump? It will pick up only the mounted / > partition, and not the other mount points... > > vdump -0 -f - / | (cd /mnt; vrestore -x -f -) > > or > > vdump -0 -f - / | vrestore -x -f - -D /mnt > > this will move your mounted root to your new destination (in this > case, mounted at /mnt) while retaining all the file modes, etc. > > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com> > > iQA/AwUBOb6NGz0Aaqse1c2oEQKMvwCeO5VJXnCemEP45MfHBfWKPd0eBIUAnj6M > TLEcguZYvMS1+HjhfMkq4k3T > =p1Jk > -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-13 14:32 ` Marble Head @ 2000-09-13 15:43 ` nick de Beer 2000-09-13 4:00 ` Marble Head 0 siblings, 1 reply; 13+ messages in thread From: nick de Beer @ 2000-09-13 15:43 UTC (permalink / raw) To: Marble Head [-- Attachment #1: Type: text/plain, Size: 391 bytes --] Actually vdump and vrestore were modified to back up UFS. Normally the -D option is used on ufs to specify the directory. The easiest method is to boot from CD. Mount the old root on /mnt Mount the new root on /mnt2 vdump -0f - -D /mnt |vrestore -xf - -D /mnt2 change /etc/fstab according and reboot. (I would recommend migrating to advfs, but then thats just my humble opinion) hth Nick [-- Attachment #2: Card for nick de Beer --] [-- Type: text/x-vcard, Size: 202 bytes --] begin:vcard n:de Beer;Nick x-mozilla-html:FALSE org:Compaq Computer Limited;Compaq Telecoms adr:;;;;;; version:2.1 email;internet:nick.debeer@compaq.com title:UNIX Consultant fn:Nick de Beer end:vcard ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-13 15:43 ` nick de Beer @ 2000-09-13 4:00 ` Marble Head 2000-09-14 4:00 ` Adam Price 0 siblings, 1 reply; 13+ messages in thread From: Marble Head @ 2000-09-13 4:00 UTC (permalink / raw) I agree advfs is better. But I've got about 1/2 dozen machines, and this is an old one, so I don't plan to migrate it. :-) vdump -0f - -D /mnt |vrestore -xf - -D /mnt2 (cd /mnt; tar cf - ) | (cd /mnt2; tar xpf -) Do these two commands effectively do the same thing? Is there some subtle difference? When talking about dump and vdump, why is there any distinguishing between ufs and advfs? Can't a program simply traverse the tree structure and copy files with no regard to the fs, provided that the same permissions, characteristics, and attributes are supported? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-13 4:00 ` Marble Head @ 2000-09-14 4:00 ` Adam Price 2000-09-14 4:00 ` Marble Head ` (2 more replies) 0 siblings, 3 replies; 13+ messages in thread From: Adam Price @ 2000-09-14 4:00 UTC (permalink / raw) Marble Head wrote in message <39BFB7E1.8FD9565D@nospam.guacamole.com>... >I agree advfs is better. But I've got about 1/2 dozen machines, and >this is an old one, so I don't plan to migrate it. :-) > >vdump -0f - -D /mnt |vrestore -xf - -D /mnt2 >(cd /mnt; tar cf - ) | (cd /mnt2; tar xpf -) > >Do these two commands effectively do the same thing? Is there some >subtle difference? > The difference on Tru64 is that tar doesn't preserve the setuid bit, this means that many system binaries and X programs simply don't work after the copy. >When talking about dump and vdump, why is there any distinguishing >between ufs and advfs? dump/vdump act at a lower level than the filesystem, they parse the filesystem from the raw disk. > Can't a program simply traverse the tree >structure and copy files with no regard to the fs, provided that the >same permissions, characteristics, and attributes are supported? As you say the tool can and does do just that. The advantage of always using vdump is that it works for both of the normal Tru64 filesystems and so the tool will always do the job. BTW if you want to use a 'tar' compatable tool for this then check out pax the posix archive tool. On tru64 cpio and tar are implemented using pax and the tool is extremley flexable and supposedly a posix standard tool. Hope this helps Adam ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-14 4:00 ` Adam Price @ 2000-09-14 4:00 ` Marble Head 2000-09-15 5:15 ` Adam Price 2000-09-15 4:00 ` Tony Verhulst 2000-09-16 4:00 ` Stephen Carpenter 2 siblings, 1 reply; 13+ messages in thread From: Marble Head @ 2000-09-14 4:00 UTC (permalink / raw) > The difference on Tru64 is that tar doesn't preserve the setuid bit, this > means that many system binaries and X programs simply don't work > after the copy. Does the setuid bit exist on all unix-like os? I use both Tru64 4.0F, Tru64 5.0x, and Linux of various builds. In other words, will tar ever suffice as a backup tool? > Hope this helps Yes, indeed. Thank you. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-14 4:00 ` Marble Head @ 2000-09-15 5:15 ` Adam Price 0 siblings, 0 replies; 13+ messages in thread From: Adam Price @ 2000-09-15 5:15 UTC (permalink / raw) Marble Head wrote in message <39C14B60.D929C6BC@nospam.guacamole.com>... >> The difference on Tru64 is that tar doesn't preserve the setuid bit, this >> means that many system binaries and X programs simply don't work >> after the copy. > >Does the setuid bit exist on all unix-like os? I use both Tru64 4.0F, Tru64 >5.0x, and Linux of various builds. In other words, will tar ever suffice as a >backup tool? > >> Hope this helps > >Yes, indeed. Thank you. > The setuid bit is important on all unix-like os's but as to weather tar can copy it I don't know. I know that on Tru64/Digital Unix this problem exists and I couldn't find switches to tar. I don't know about gnu-tar (which is what Linux usually uses). Adam ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-14 4:00 ` Adam Price 2000-09-14 4:00 ` Marble Head @ 2000-09-15 4:00 ` Tony Verhulst 2000-09-16 4:00 ` Adam Price 2000-09-18 4:00 ` Marble Head 2000-09-16 4:00 ` Stephen Carpenter 2 siblings, 2 replies; 13+ messages in thread From: Tony Verhulst @ 2000-09-15 4:00 UTC (permalink / raw) > The difference on Tru64 is that tar doesn't preserve the setuid bit, this > means that many system binaries and X programs simply don't work > after the copy. tar (1) p [Tru64 UNIX] Restores files to their original modes, ignoring the present umask. Set-user-ID and sticky information will also be restored if the user is superuser. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-15 4:00 ` Tony Verhulst @ 2000-09-16 4:00 ` Adam Price 2000-09-18 4:00 ` Marble Head 1 sibling, 0 replies; 13+ messages in thread From: Adam Price @ 2000-09-16 4:00 UTC (permalink / raw) Tony Verhulst wrote in message <39C22905.55ABED47@zk3.dec.com>... > >> The difference on Tru64 is that tar doesn't preserve the setuid bit, this >> means that many system binaries and X programs simply don't work >> after the copy. > >tar (1) > > > p [Tru64 UNIX] Restores files to their original modes, ignoring the > present umask. Set-user-ID and sticky information will also be > restored if the user is superuser. Ooops I guess I haven't looked at that man page for a few revisions. Which version was that? I thought I had last looked at it in 4.0D but I have to confess that It may of been an even earlier version. None the less vdump and vrestore are still 'better' tools for backups than tar in my opinion. Adam Price ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-15 4:00 ` Tony Verhulst 2000-09-16 4:00 ` Adam Price @ 2000-09-18 4:00 ` Marble Head 1 sibling, 0 replies; 13+ messages in thread From: Marble Head @ 2000-09-18 4:00 UTC (permalink / raw) Here's the interesting thing: On Tru64, the p-flag is described below. On Linux, the p-flag makes no mention of setuid. I have now experimented with both systems, and found that in neither case does the information get restored properly, despite the fact that I logged in as superuser. Sounds like dump/restore, vdump/vrestore are the way to go. At least for Tru64. Tony Verhulst wrote: > > The difference on Tru64 is that tar doesn't preserve the setuid bit, this > > means that many system binaries and X programs simply don't work > > after the copy. > > tar (1) > > p [Tru64 UNIX] Restores files to their original modes, ignoring the > present umask. Set-user-ID and sticky information will also be > restored if the user is superuser. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-14 4:00 ` Adam Price 2000-09-14 4:00 ` Marble Head 2000-09-15 4:00 ` Tony Verhulst @ 2000-09-16 4:00 ` Stephen Carpenter 2000-09-19 4:00 ` Marble Head 2 siblings, 1 reply; 13+ messages in thread From: Stephen Carpenter @ 2000-09-16 4:00 UTC (permalink / raw) > > dump/vdump act at a lower level than the filesystem, they parse the > filesystem from the raw disk. Dump reads the raw disk of a UFS file system and therefore cannot be used on AdvFS but vdump is a file level backup command and can be used on any file system type (it screws up on sparse files though). Stephen. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-16 4:00 ` Stephen Carpenter @ 2000-09-19 4:00 ` Marble Head 2000-09-19 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. 0 siblings, 1 reply; 13+ messages in thread From: Marble Head @ 2000-09-19 4:00 UTC (permalink / raw) What does it mean to be "sparse files?" Stephen Carpenter wrote: > > > > dump/vdump act at a lower level than the filesystem, they parse the > > filesystem from the raw disk. > > Dump reads the raw disk of a UFS file system and therefore cannot be used on > AdvFS but vdump is a file level backup command and can be used on any file > system type (it screws up on sparse files though). > > Stephen. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Expanding root partition 2000-09-19 4:00 ` Marble Head @ 2000-09-19 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. 0 siblings, 0 replies; 13+ messages in thread From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2000-09-19 4:00 UTC (permalink / raw) In article <39C7AEBE.8E037CA3@nospam.guacamole.com>, Marble Head <Marble.Head@nospam.guacamole.com> writes: >What does it mean to be "sparse files?" File which don't have blocks allocated to potions of the file. Such potions of the file read back as NULs. Writing to these area causes blocks to be allocated. They created by seeking past the part of a file where blocks are allocated and writing at the new location. The space in between (when large enough) won't have blocks allocated. Some applications consider this to be a feature. Some don't. -- Alan Rollow alan@nabeth.cxo.dec.com ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2000-09-19 4:00 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-11 19:15 Expanding root partition Marble Head
[not found] ` <513trskt630cfv6d6uh0u40dgu32pr95ed@4ax.com>
2000-09-13 14:32 ` Marble Head
2000-09-13 15:43 ` nick de Beer
2000-09-13 4:00 ` Marble Head
2000-09-14 4:00 ` Adam Price
2000-09-14 4:00 ` Marble Head
2000-09-15 5:15 ` Adam Price
2000-09-15 4:00 ` Tony Verhulst
2000-09-16 4:00 ` Adam Price
2000-09-18 4:00 ` Marble Head
2000-09-16 4:00 ` Stephen Carpenter
2000-09-19 4:00 ` Marble Head
2000-09-19 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox