Re: Add partition to existing disk

2006-03-29 Thread Kevin Kinsey

Scott Hiemstra wrote:


Thanks Jerry...  I'll give it a try this evening.


 


You may also wish to have a gander at growfs(8) ...
... the man page isn't too long, and it sounds like
"the right tool" IYKWIM.

HTH,

KDK

--
There is no security on this earth.  There is only opportunity.
-- General Douglas MacArthur


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


RE: Add partition to existing disk

2006-03-29 Thread Scott Hiemstra
Thanks Jerry...  I'll give it a try this evening.



> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Jerry McAllister
> Sent: Wednesday, March 29, 2006 10:52 AM
> To: Scott Hiemstra
> Cc: freebsd-questions@freebsd.org
> Subject: Re: Add partition to existing disk
> 
> Hi,
> 
> > I have an existing system which I cannot reinstall and 
> sysinstall seems like
> > too much of a wizard to use on a well running existing 
> system.  When I built
> > the system 2 years ago I decided to leave about 25GB of 
> unpartitioned space
> > for future unknown projects, I now have a use for the space 
> but I can't for
> > the life of me figure out exactly what steps are needed to 
> use the space.
> > 
> > The system is configured as follows:
> > Dell PE 2650 with 3x36GB drives in a Hardware RAID 5 on a 
> PERC controller
> > 4.11-STABLE
> > 
> > And the currect disklabel is:
> > #disklabel aacd0s1
> > # /dev/aacd0s1c:
> > type: ESDI
> > disk: aacd0s1
> > label:
> > flags:
> > bytes/sector: 512
> > sectors/track: 63
> > tracks/cylinder: 255
> > sectors/cylinder: 16065
> > cylinders: 8849
> > sectors/unit: 142175187
> > rpm: 3600
> > interleave: 1
> > trackskew: 0
> > cylinderskew: 0
> > headswitch: 0   # milliseconds
> > track-to-track seek: 0  # milliseconds
> > drivedata: 0
> > 
> > 8 partitions:
> > #size   offsetfstype   [fsize bsize bps/cpg]
> >   a:  409600004.2BSD 2048 1638490   # 
> (Cyl.0 - 254*)
> >   b:  3072000  4096000  swap# 
> (Cyl.  254*- 446*)
> >   c: 1421751870unused0 0# 
> (Cyl.0 -
> > 8849*)
> >   e: 12288000  71680004.2BSD 2048 1638489   # 
> (Cyl.  446*-
> > 1211*)
> >   f:  4096000 194560004.2BSD 2048 1638490   # 
> (Cyl. 1211*-
> > 1466*)
> >   g: 6144 235520004.2BSD 2048 1638489   # 
> (Cyl. 1466*-
> > 5290*)
> > 
> > As you can see I have space available from 84992000 through 
> 142175187.  I
> > have done similar things in Solaris and other OS's but I'm 
> just not sure
> > exactly what the FreeBSD steps are to utilize this space.
> > 
> > Any pointers are appreciated.
> 
> Go to single user mode.
> do:
> fsck -p(shouldn't be needed, but just in case)
> mount -u /
> mount -a
> swapon -a
> 
> run disklabel -e on the drive
> disklabel -e [-r] aacd0s1
> 
> Add the following line in the edit file it gives you.
> 
> 
>   h: *   *   4.2BSD   2048   16384   89
> 
> (I am not sure about that 89 for bps/cpg.  Just use what it wants to)
> 
> Write and quit the edit session.
> 
> Then to an newfs on the /dev/aacds1h partition
> 
>newfs -b 16384 -f 2048 -i 2048 /dev/raacd0s1h
> 
>   (You could just take the defaults for the newfs, but I like 
> to specify
>   block and frag the same as in the disklabel and the -i causes it to
>   make more inodes which I seem to need on larger file systems)
> 
> Add a mount point for it however you want, for example
> mkdir /work
> 
> add a line to your /etc/fstab
> 
> /dev/ad0s3h  /work ufs rw  2   2
> 
> Substitute your own mount point if you created one with a 
> different name.
> 
> Type mount -aand voila, you have it.
> 
> You might have to run an fsck on it.
> > 
> > 
> > Thanks,
> > Scott
> > 
> > 
> > 
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to 
> "[EMAIL PROTECTED]"
> > 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "[EMAIL PROTECTED]"
> 
> 


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


Re: Add partition to existing disk

2006-03-29 Thread Jerry McAllister
Hi,

> I have an existing system which I cannot reinstall and sysinstall seems like
> too much of a wizard to use on a well running existing system.  When I built
> the system 2 years ago I decided to leave about 25GB of unpartitioned space
> for future unknown projects, I now have a use for the space but I can't for
> the life of me figure out exactly what steps are needed to use the space.
> 
> The system is configured as follows:
> Dell PE 2650 with 3x36GB drives in a Hardware RAID 5 on a PERC controller
> 4.11-STABLE
> 
> And the currect disklabel is:
> #disklabel aacd0s1
> # /dev/aacd0s1c:
> type: ESDI
> disk: aacd0s1
> label:
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 8849
> sectors/unit: 142175187
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0   # milliseconds
> track-to-track seek: 0  # milliseconds
> drivedata: 0
> 
> 8 partitions:
> #size   offsetfstype   [fsize bsize bps/cpg]
>   a:  409600004.2BSD 2048 1638490   # (Cyl.0 - 254*)
>   b:  3072000  4096000  swap# (Cyl.  254*- 446*)
>   c: 1421751870unused0 0# (Cyl.0 -
> 8849*)
>   e: 12288000  71680004.2BSD 2048 1638489   # (Cyl.  446*-
> 1211*)
>   f:  4096000 194560004.2BSD 2048 1638490   # (Cyl. 1211*-
> 1466*)
>   g: 6144 235520004.2BSD 2048 1638489   # (Cyl. 1466*-
> 5290*)
> 
> As you can see I have space available from 84992000 through 142175187.  I
> have done similar things in Solaris and other OS's but I'm just not sure
> exactly what the FreeBSD steps are to utilize this space.
> 
> Any pointers are appreciated.

Go to single user mode.
do:
fsck -p(shouldn't be needed, but just in case)
mount -u /
mount -a
swapon -a

run disklabel -e on the drive
disklabel -e [-r] aacd0s1

Add the following line in the edit file it gives you.


  h: *   *   4.2BSD   2048   16384   89

(I am not sure about that 89 for bps/cpg.  Just use what it wants to)

Write and quit the edit session.

Then to an newfs on the /dev/aacds1h partition

   newfs -b 16384 -f 2048 -i 2048 /dev/raacd0s1h

  (You could just take the defaults for the newfs, but I like to specify
  block and frag the same as in the disklabel and the -i causes it to
  make more inodes which I seem to need on larger file systems)

Add a mount point for it however you want, for example
mkdir /work

add a line to your /etc/fstab

/dev/ad0s3h  /work ufs rw  2   2

Substitute your own mount point if you created one with a different name.

Type mount -aand voila, you have it.

You might have to run an fsck on it.
> 
> 
> Thanks,
> Scott
> 
> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

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


Add partition to existing disk

2006-03-29 Thread Scott Hiemstra
I have an existing system which I cannot reinstall and sysinstall seems like
too much of a wizard to use on a well running existing system.  When I built
the system 2 years ago I decided to leave about 25GB of unpartitioned space
for future unknown projects, I now have a use for the space but I can't for
the life of me figure out exactly what steps are needed to use the space.

The system is configured as follows:
Dell PE 2650 with 3x36GB drives in a Hardware RAID 5 on a PERC controller
4.11-STABLE

And the currect disklabel is:
#disklabel aacd0s1
# /dev/aacd0s1c:
type: ESDI
disk: aacd0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 8849
sectors/unit: 142175187
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  409600004.2BSD 2048 1638490   # (Cyl.0 - 254*)
  b:  3072000  4096000  swap# (Cyl.  254*- 446*)
  c: 1421751870unused0 0# (Cyl.0 -
8849*)
  e: 12288000  71680004.2BSD 2048 1638489   # (Cyl.  446*-
1211*)
  f:  4096000 194560004.2BSD 2048 1638490   # (Cyl. 1211*-
1466*)
  g: 6144 235520004.2BSD 2048 1638489   # (Cyl. 1466*-
5290*)

As you can see I have space available from 84992000 through 142175187.  I
have done similar things in Solaris and other OS's but I'm just not sure
exactly what the FreeBSD steps are to utilize this space.

Any pointers are appreciated.


Thanks,
Scott



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