Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Changing Partition size
@ 2000-05-03  4:00 Mike Hudson
  2000-05-04  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  2000-05-04  4:00 ` Adam Price
  0 siblings, 2 replies; 7+ messages in thread
From: Mike Hudson @ 2000-05-03  4:00 UTC (permalink / raw)


Hi

I got a DS20E recently, running Tru64 V4.0E.  The factory installation
had an a, b (swap) and a small g partition (about 700 MB) on the first of
my four 18Gb disks.  g is where /usr in located.

I would like to make this g partition bigger. Can I go ahead and resize it
using the Disk Configuration tool?  Somewhere I remember reading that you
can't modify partitions if they are in use, which I assume /usr is if I am
running the Disk Config in the first place ... 

Don't want to risk destroying the data talready there, so advice is
appreciated.

Mike










^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Changing Partition size
  2000-05-03  4:00 Changing Partition size Mike Hudson
  2000-05-04  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2000-05-04  4:00 ` Adam Price
  1 sibling, 0 replies; 7+ messages in thread
From: Adam Price @ 2000-05-04  4:00 UTC (permalink / raw)



Mike Hudson wrote in message ...
>Hi
>
>I got a DS20E recently, running Tru64 V4.0E.  The factory installation
>had an a, b (swap) and a small g partition (about 700 MB) on the first of
>my four 18Gb disks.  g is where /usr in located.
>
>I would like to make this g partition bigger. Can I go ahead and resize it
>using the Disk Configuration tool?  Somewhere I remember reading that you
>can't modify partitions if they are in use, which I assume /usr is if I am
>running the Disk Config in the first place ...
>
>Don't want to risk destroying the data talready there, so advice is
>appreciated.
>
First Whatever you do backup first... That removes the worry over destroying
data.

What filesystem do you have on /usr if the answer is ufs the I think you are
out of luck, and the process is ...
backup the whole disk
boot from other media (cd if nothing else)
repartition as required
restore data

If the answer is AdVFS, then you still can't change the partition size without
loosing data, but you can add partitions to the domain making it bigger.


Hope this helps.
Adam Price

PS if the data is in any way important to you BACK IT UP.






^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Changing Partition size
  2000-05-03  4:00 Changing Partition size Mike Hudson
@ 2000-05-04  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  2000-05-11  4:00   ` C. Boudreau
  2000-05-04  4:00 ` Adam Price
  1 sibling, 1 reply; 7+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2000-05-04  4:00 UTC (permalink / raw)



In article <Pine.LNX.4.10.10005031729440.1883-100000@queeg.uwaterloo.ca>, Mike Hudson <mjhudson@uwaterloo.ca> writes:

>I got a DS20E recently, running Tru64 V4.0E.  The factory installation
>had an a, b (swap) and a small g partition (about 700 MB) on the first of
>my four 18Gb disks.  g is where /usr in located.
>
>I would like to make this g partition bigger. Can I go ahead and resize it
>using the Disk Configuration tool?  Somewhere I remember reading that you
>can't modify partitions if they are in use, which I assume /usr is if I am
>running the Disk Config in the first place ... 

You can't change the size or offset of a partition that is open; has
a file system mounted on it, in use for page/swap space, etc.

Even if the partition were closed, you can't usefully change the size
because neither UFS nor AdvFS has any tools that will convince the
file system that the underlying space has grown.  You might be able
to find Open source for a program that can do this with UFS, but
you'd want to be very careful.

If you're using AdvFS and have the utilities license, you can expand
the space online using addvol.  You can either just add a device to
the domain or migrate the files to a new device by adding the new
one and removing the old one.  Doing this twice will give the
appearance of what you want when done:

1.  Add device to existing /usr domain.
2.  Remove existing device and wait for files to be migrated.
3.  Resize partition of original device.
4.  Add it do /usr domain.
5.  Remove device from #1.

The general solution which works for any file system, is to
create a new file system of the desired size, backup the
existing data, restore it on the target.  You can do these
last two steps across a pipe:

# dump 0f - /usr | ( cd /mnt ; restore rf - )

For /usr it would be best to do this running single user.  I
have indeed left out the steps of creating and mounting
the file system for /mnt.  If you're using AdvFS, then
use vdump instead of dump, vrestore instead of restore 
and the 'x' option on vrestore instead of 'r' on restore.

>Don't want to risk destroying the data talready there, so advice is
>appreciated.

If you have a backup of your system, the risk of losing something
is pretty low.  If you don't have a backup, why not?

>
>Mike

--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Changing Partition size
  2000-05-04  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2000-05-11  4:00   ` C. Boudreau
  2000-05-11  4:00     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 7+ messages in thread
From: C. Boudreau @ 2000-05-11  4:00 UTC (permalink / raw)


Does the file system for /usr have to be on the same physical disk?  I have
a similar situation as my /usr partition is 89% full.  I have no more space
on me boot drive to create another partition.

Alan Rollow - Dr. File System's Home for Wayward Inodes.
<alan@nabeth.cxo.dec.com> wrote in message
news:8esn0p$rkk$1@mailint03.im.hou.compaq.com...
>
> In article <Pine.LNX.4.10.10005031729440.1883-100000@queeg.uwaterloo.ca>,
Mike Hudson <mjhudson@uwaterloo.ca> writes:
>
> >I got a DS20E recently, running Tru64 V4.0E.  The factory installation
> >had an a, b (swap) and a small g partition (about 700 MB) on the first of
> >my four 18Gb disks.  g is where /usr in located.
> >
> >I would like to make this g partition bigger. Can I go ahead and resize
it
> >using the Disk Configuration tool?  Somewhere I remember reading that you
> >can't modify partitions if they are in use, which I assume /usr is if I
am
> >running the Disk Config in the first place ...
>
> You can't change the size or offset of a partition that is open; has
> a file system mounted on it, in use for page/swap space, etc.
>
> Even if the partition were closed, you can't usefully change the size
> because neither UFS nor AdvFS has any tools that will convince the
> file system that the underlying space has grown.  You might be able
> to find Open source for a program that can do this with UFS, but
> you'd want to be very careful.
>
> If you're using AdvFS and have the utilities license, you can expand
> the space online using addvol.  You can either just add a device to
> the domain or migrate the files to a new device by adding the new
> one and removing the old one.  Doing this twice will give the
> appearance of what you want when done:
>
> 1.  Add device to existing /usr domain.
> 2.  Remove existing device and wait for files to be migrated.
> 3.  Resize partition of original device.
> 4.  Add it do /usr domain.
> 5.  Remove device from #1.
>
> The general solution which works for any file system, is to
> create a new file system of the desired size, backup the
> existing data, restore it on the target.  You can do these
> last two steps across a pipe:
>
> # dump 0f - /usr | ( cd /mnt ; restore rf - )
>
> For /usr it would be best to do this running single user.  I
> have indeed left out the steps of creating and mounting
> the file system for /mnt.  If you're using AdvFS, then
> use vdump instead of dump, vrestore instead of restore
> and the 'x' option on vrestore instead of 'r' on restore.
>
> >Don't want to risk destroying the data talready there, so advice is
> >appreciated.
>
> If you have a backup of your system, the risk of losing something
> is pretty low.  If you don't have a backup, why not?
>
> >
> >Mike
>
> --
> Alan Rollow alan@nabeth.cxo.dec.com
>





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Changing Partition size
  2000-05-11  4:00   ` C. Boudreau
@ 2000-05-11  4:00     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  2000-05-12  4:00       ` C. Boudreau
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2000-05-11  4:00 UTC (permalink / raw)



In article <%AyS4.592$ua.35142@wagner.videotron.net>, "C. Boudreau" <cboudreau@imtpcdf.com> writes:

>Does the file system for /usr have to be on the same physical disk?  I have
>a similar situation as my /usr partition is 89% full.  I have no more space
>on me boot drive to create another partition.

The /usr file system can be on any partition/volume that the system
can see.  There might be an exception when the system disk is
mirrored with LSM, but that may just be a case that LSM mirrors
the whole disk, so you might as well use the space for something
that needs to be mirrored.

>
>Alan Rollow - Dr. File System's Home for Wayward Inodes.
><alan@nabeth.cxo.dec.com> wrote in message
>news:8esn0p$rkk$1@mailint03.im.hou.compaq.com...
>>
>> In article <Pine.LNX.4.10.10005031729440.1883-100000@queeg.uwaterloo.ca>,
>Mike Hudson <mjhudson@uwaterloo.ca> writes:

[ remaining stuff deleted... ]

>> >
>> >Mike
>>
>> --
>> Alan Rollow alan@nabeth.cxo.dec.com
--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Changing Partition size
  2000-05-11  4:00     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 2000-05-12  4:00       ` C. Boudreau
  2000-05-12  4:00         ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 7+ messages in thread
From: C. Boudreau @ 2000-05-12  4:00 UTC (permalink / raw)


By not having the /usr in the standard location will this effect future
upgrades of th OS.

Alan Rollow - Dr. File System's Home for Wayward Inodes.
<alan@nabeth.cxo.dec.com> wrote in message
news:8feopm$q34$1@mailint03.im.hou.compaq.com...
>
> In article <%AyS4.592$ua.35142@wagner.videotron.net>, "C. Boudreau"
<cboudreau@imtpcdf.com> writes:
>
> >Does the file system for /usr have to be on the same physical disk?  I
have
> >a similar situation as my /usr partition is 89% full.  I have no more
space
> >on me boot drive to create another partition.
>
> The /usr file system can be on any partition/volume that the system
> can see.  There might be an exception when the system disk is
> mirrored with LSM, but that may just be a case that LSM mirrors
> the whole disk, so you might as well use the space for something
> that needs to be mirrored.
>
> >
> >Alan Rollow - Dr. File System's Home for Wayward Inodes.
> ><alan@nabeth.cxo.dec.com> wrote in message
> >news:8esn0p$rkk$1@mailint03.im.hou.compaq.com...
> >>
> >> In article
<Pine.LNX.4.10.10005031729440.1883-100000@queeg.uwaterloo.ca>,
> >Mike Hudson <mjhudson@uwaterloo.ca> writes:
>
> [ remaining stuff deleted... ]
>
> >> >
> >> >Mike
> >>
> >> --
> >> Alan Rollow alan@nabeth.cxo.dec.com
> --
> Alan Rollow alan@nabeth.cxo.dec.com
>





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Changing Partition size
  2000-05-12  4:00       ` C. Boudreau
@ 2000-05-12  4:00         ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2000-05-12  4:00 UTC (permalink / raw)



In article <vjSS4.2150$mD6.48536@weber.videotron.net>, "C. Boudreau" <cboudreau@imtpcdf.com> writes:
>
>By not having the /usr in the standard location will this effect future
>upgrades of th OS.

I won't speak for engineering on this, but if the installation
scripts and program care more about the physical location of
a file system than the logical location, they're horribly
broken.  Most programs shouldn't care whether /usr is on the
same disk, a different disk or halfway across the county on
the other side of an ATM bridge (ok, this might cause excess
latency...).

If the location has the necessary read/write access, can be
mounted as part of the normal start-up process that mounts
file systems and can be opened by its pathname then the
location doesn't matter.
>
--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-05-12  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-03  4:00 Changing Partition size Mike Hudson
2000-05-04  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2000-05-11  4:00   ` C. Boudreau
2000-05-11  4:00     ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2000-05-12  4:00       ` C. Boudreau
2000-05-12  4:00         ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2000-05-04  4:00 ` Adam Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox