Re: growfs says 'we are not growing' ?!?!

2003-12-05 Thread Rishi Chopra
Problems have been resolved, thanks again for the help =)

-Rishi

Sergey 'DoubleF' Zaharchenko wrote:

On Thu, 04 Dec 2003 14:23:13 -0800
Rishi Chopra [EMAIL PROTECTED] probably wrote:
 

I get:

growfs: we are not growing (1048576 - 0)

So I took a look at your email, and you said:

You've grown the slice, but you need to also expand the
partition before growfs can resize the filesystem.
   

It wasn't my email.

 

This is what confuses me.  The slice (da0s1, called partition in your 
quote?) is taking up the whole disk.  It is the only slice on the disk, 
   

No, you will need to grow the *partition* using disklabel. What does
`disklabel -r da0s1' say?
 

and spans the entire disk.  Any idea why I'm getting the error?

-Rishi
   



 



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


growfs says 'we are not growing' ?!?!

2003-12-04 Thread Rishi Chopra
Trying to enlarge a partition (/usr) on a slice (da0s1) with plenty of 
space:

# fdisk

The data for partition 1 is:
sysid 165 (0xa5), (FreeBSD/NetBSD/386BSD)
   start 63, size 1171861362 (572197 Meg), flag 80 (active)
  beg: cyl 0/ head 1/ sector 1
  end: cyl 1023/ head 254/ sector 63
# df -h:

Filesystem   Size   Used   Avail   Capacity   Mounted on
/dev/da0s1a 193M  80M  98M  45%  /
/devfa  1.0K   1.0K  98M  0%/dev
/dev/da0s1d 193M 5.9M172M  3%/var
/dev/da0s1e 1.9G  670M 1.1G   37%  /usr
But when I try:

# umount /usr
# growfs /dev/da0s1e
I get:

growfs: we are not growing (1048576 - 0)

What am I missing?  The /stand/sysinstall program had some problems with 
a large /usr partition as well; when I tried installing the system 
giving /usr all the remaining space on my disk, the installation would 
choke during the fetch and install from ftp.  How can I take advantage 
of the remaning free space on my disk?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: growfs says 'we are not growing' ?!?!

2003-12-04 Thread Dan Nelson
In the last episode (Dec 04), Rishi Chopra said:
 Trying to enlarge a partition (/usr) on a slice (da0s1) with plenty of 
 space:
 
 # fdisk
 
 The data for partition 1 is:
 sysid 165 (0xa5), (FreeBSD/NetBSD/386BSD)
start 63, size 1171861362 (572197 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1
   end: cyl 1023/ head 254/ sector 63
 
 # df -h:
 
 Filesystem   Size   Used   Avail   Capacity   Mounted on
 /dev/da0s1a 193M  80M  98M  45%  /
 /dev/da0s1d 193M 5.9M172M  3%/var
 /dev/da0s1e 1.9G  670M 1.1G   37%  /usr
 
 But when I try:
 
 # umount /usr
 # growfs /dev/da0s1e

You need to extend your e slice (with disklabel -e da0s1) first. 
You've got three container objects: Fdisk slices, BSD partitions, and
filesystem.  You've grown the slice, but you need to also expand the
partition before growfs can resize the filesystem.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: growfs says 'we are not growing' ?!?!

2003-12-04 Thread Rishi Chopra
Any idea why my partitions (da0s1a, da0s1d, da0s1e) don't have valid 
disk labels?

# disklabel -A da0s1d | more
disklabel: /dev/da0s1d: no valid label found
# disklabel -A da0s1e | more
disklabel: /dev/da0s1e: no valid label found
I created the partitions and mount points when installing the os using 
the standard GUI.

-Rishi

Dan Nelson wrote:

In the last episode (Dec 04), Rishi Chopra said:
 

Trying to enlarge a partition (/usr) on a slice (da0s1) with plenty of 
space:

# fdisk

The data for partition 1 is:
sysid 165 (0xa5), (FreeBSD/NetBSD/386BSD)
  start 63, size 1171861362 (572197 Meg), flag 80 (active)
 beg: cyl 0/ head 1/ sector 1
 end: cyl 1023/ head 254/ sector 63
# df -h:

Filesystem   Size   Used   Avail   Capacity   Mounted on
/dev/da0s1a 193M  80M  98M  45%  /
/dev/da0s1d 193M 5.9M172M  3%/var
/dev/da0s1e 1.9G  670M 1.1G   37%  /usr
But when I try:

# umount /usr
# growfs /dev/da0s1e
   

You need to extend your e slice (with disklabel -e da0s1) first. 
You've got three container objects: Fdisk slices, BSD partitions, and
filesystem.  You've grown the slice, but you need to also expand the
partition before growfs can resize the filesystem.

 



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: growfs says 'we are not growing' ?!?!

2003-12-04 Thread Dan Nelson
In the last episode (Dec 04), Rishi Chopra said:
 Any idea why my partitions (da0s1a, da0s1d, da0s1e) don't have valid 
 disk labels?
 
 # disklabel -A da0s1d | more
 disklabel: /dev/da0s1d: no valid label found
 # disklabel -A da0s1e | more
 disklabel: /dev/da0s1e: no valid label found
 
 I created the partitions and mount points when installing the os
 using the standard GUI.

You don't run disklabel on partitions; you run it on slices.  Most
disks will have a single disklabel, which creates all the partitions
needed.  Let me see if I can do an ascii-art drawing of a resize
operation:

Original system:
 
1  |__DISK__|
2  |MBR|__Slice 1_|__Slice 2|
3 |_a_|___b___|__d___|___e__|
4 |_/_|   |_/var_|_/usr_|

Row 1 is the physical layout.  Row 2 is composed of the MBR and fdisk
slices.  Row 3 is BSD disklabels, and row 4 is filesystems.  In this
example, we'll say da0s1 is a non-unix filesystem and ignore it. 
da0s2b is swap, which always uses the entire space given to it, which
is why I didn't extend it to row 4.  The disklabel header for Slice 2
is actually embedded in the first block of the first partition which is
why there's no |DL| on row 3 to match the |MBR| for slices on row 2. 
UFS filesystems skip the first 8k or 64k in a partition to leave room
for the disklabel header and boot blocks.

Grow RAID array:
_
   |DISK_|
   |MBR|__Slice 1_|__Slice 2|
  |_a_|___b___|__d___|___e__|
  |_/_|   |_/var_|_/usr_|

Run fdisk on da0 and grow slice 2:
_
   |DISK_|
   |MBR|__Slice 1_|___Slice 2|
  |_a_|___b___|__d___|___e__|
  |_/_|   |_/var_|_/usr_|

Run disklabel on da0s2 and grow partition e:
_
   |DISK_|
   |MBR|__Slice 1_|___Slice 2|
  |_a_|___b___|__d___|___e___|
  |_/_|   |_/var_|_/usr__|

Run growfs on da0s2e and grow the filesystem:
_
   |DISK_|
   |MBR|__Slice 1_|___Slice 2|
  |_a_|___b___|__d___|___e___|
  |_/_|   |_/var_|_/usr__|

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]