Re: Software raid VS hardware raid

2013-01-30 Thread Modulok
 My other concern is what happens when one drive goes down if we use
 gmirror? Is it completelly transparent
 and bad drive can be hot swapped while server is running and rebuild
 started?
 I am thinking now about gpt+gmirror (including boot and swap)

 Artem


Yes. In fact, you can test this by unplugging the data or power cable to a
drive while the server is running. I've done this with consumer sata drives
and, so far, not had a problem. The server stays up and running and disk access
is not interrupted. I can then plug in a new disk and add it to the gmirror and
the array rebuilds.

I've not tried this with gpt, so I can't comment there.
-Modulok-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Booting Problem

2013-01-30 Thread Doug Hardie

On 29 January 2013, at 20:25, d...@safeport.com wrote:

 
 On Tue, 29 Jan 2013, Doug Hardie wrote:
 
 On 29 January 2013, at 07:18, Mario Lobo wrote:
 
 On Mon, 28 Jan 2013 15:16:14 -0800
 Doug Hardie bc...@lafn.org wrote:
 
 I have a relatively old machine that I am trying to boot 9.1 on.  The
 bios will not boot from USB stick.  I am using an external CD drive.
 It starts the boot process fine and gets to the Bootstrap loader
 message with revision 1.1.  Then it puts out the machine, date, time
 the CD was created and starts the spinner.  It spins around about 2
 times and stops.  The system continues to read from the drive for
 another couple minutes.  Then everything stops.  Nothing more happens.
 
 The CD is good.  I can boot it just fine using the same external
 drive on another machine.  While I could remove the drive and
 temporarily mount in in the working machine and build it there, I
 would like to find a way to successfully boot from CD.  This will
 become a remote machine and taking it apart later is not a viable
 option.
 
 What is the system you are using? What external devices does it have built-in 
 support for? In the absence of any data - how about trying an external hard 
 drive?

9.1 release - Generic.  Basically the disk1.  Don't have an extra external 
drive.

 
 Why not remove the hard drive, use another system to put FreeBSD on the 
 drive, and put it back. From that point on you should be able to use the 
 network to upgrade.

I have done that before and it does work.  However,  with the various changes 
to the system, the root partition I had previously built that way for 8.2 is 
just not large enough for 9.1.  Also, I wanted to go to a single partition (the 
9.1 default).  Probably freebsd-update will take me through major releases 
after this, but I was hoping for a better solution so I could avoid having to 
transport the machine a long way twice to be able to update it.


 
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Booting Problem

2013-01-30 Thread Joshua Isom

On 1/29/2013 10:25 PM, d...@safeport.com wrote:


What is the system you are using? What external devices does it have
built-in support for? In the absence of any data - how about trying an
external hard drive?

Why not remove the hard drive, use another system to put FreeBSD on the
drive, and put it back. From that point on you should be able to use the
network to upgrade.



I had to do something like this to try out PC-BSD years ago.  I had one 
computer that wouldn't boot the install CD.  I moved the hard drive to a 
computer that would boot the install CD.  The catch was the computer 
that could boot the install CD wouldn't boot PC-BSD from the hard drive. 
 Sometimes you just find hardware that doesn't behave.  I'd also double 
check your BIOS settings for USB emulation.  Most external CD drives are 
just an IDE or SATA drive with an adapter.  If you take it apart, you 
can put the drive into the computer and see if skipping the USB helps it 
to boot.  It's also a nice way to find a cheap drive.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Network PHY driver source code

2013-01-30 Thread Hrisikesh sahu
Hi all,
Could you guide me where I can find all the supported PHY driver source
code details ?
I want to know what are the PHY drivers supported within Freebsd 9.1
Release.

Please help me on this.

Regards
Hrisikesh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Artem Kuchin


30.01.2013 1:01, Warren Block:

On Tue, 29 Jan 2013, Artem Kuchin wrote:



29.01.2013 18:57, Warren Block:

On Tue, 29 Jan 2013, Artem Kuchin wrote:

The Handbook chapter on gmirror talks about the problems with GPT 
and GEOM metadata.  In short: right now, they conflict. It's 
possible to mirror GPT partitions, but be aware that if you mirror 
more than one partition on a drive, a rebuild after replacing a 
drive could thrash the heads as mirrors are rebuilt simultaneously.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html 





So,
gmirror+GPT=conflict on last sector
GPT+gmirror = hardrive head kill

nice...

So, for no more than 2TB disks the best way to go is GMIRROR of the 
drive +PARTITION on top of it?


GPT partitions should work, just limit it to one mirrored partition 
per drive.


Please, clarify what you mean here.



Or maybe there is a way to instruct gmirror do rebuild only what i 
say (manual rebuild) ?


'gmirror configure -n' ?  Have not tried it.  The trick would be to do 
that before multiple mirrors start rebuilding, which they will as soon 
as geom_mirror.ko is loaded.




As i understand from the man page -n  setup the device not to auto 
rebuild  ever. So, this is probably the thing i want.  I need to setup a 
test system and play with it

a bit.


Artem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network PHY driver source code

2013-01-30 Thread Bas Smeelen

On 01/30/2013 12:13 PM, Hrisikesh sahu wrote:

Hi all,
Could you guide me where I can find all the supported PHY driver source
code details ?
I want to know what are the PHY drivers supported within Freebsd 9.1
Release.

Please help me on this.

Regards
Hrisikesh


Hi
My guess: /usr/src/sys/dev/mii



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Booting Problem

2013-01-30 Thread Fbsd8

Doug Hardie wrote:

On 29 January 2013, at 07:18, Mario Lobo wrote:


On Mon, 28 Jan 2013 15:16:14 -0800
Doug Hardie bc...@lafn.org wrote:


I have a relatively old machine that I am trying to boot 9.1 on.  The
bios will not boot from USB stick.  I am using an external CD drive.
It starts the boot process fine and gets to the Bootstrap loader
message with revision 1.1.  Then it puts out the machine, date, time
the CD was created and starts the spinner.  It spins around about 2
times and stops.  The system continues to read from the drive for
another couple minutes.  Then everything stops.  Nothing more happens.

The CD is good.  I can boot it just fine using the same external
drive on another machine.  While I could remove the drive and
temporarily mount in in the working machine and build it there, I
would like to find a way to successfully boot from CD.  This will
become a remote machine and taking it apart later is not a viable
option. ___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions To
unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org

Can you boot a different OS (Win, Ububtu, gparted, etc ...) from the
same drive on the same machine?


Not so far.  The drive works fine on other systems.




You said in your orginal post The bios will not boot from USB stick.
I see no reason why you would think your PC would BOOT from any USB 
attached devices.


Since you have another PC that does boot off of usb cd drive, swap hard 
drives and use that pc to load FreeBSD to the hard drive. This method 
will work for you.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: http://localhost/phpmyadmin

2013-01-30 Thread Fbsd8

Rasel Ahmed wrote:

Please help me what the applied host in website ?

Sent from my iPhone



You have to provide details of your problem before
some one can help you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Andrea Venturoli

On 01/28/13 21:43, Artem Kuchin wrote:


I am planning to use mirror configuration of two SATA 7200rpm 2TB disks.


I personally vote for gmirror in this case; I've used it a lot and found 
it very good wrt to both performance and robustness.


You can spend the extra money you spare on the controller buying good 
disks; as someone else pointed out don't get desktop-class ones, but 
24x7 ones.


Just my 2c.

 bye
av.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network PHY driver source code

2013-01-30 Thread Hrisikesh sahu
Thanks a lot for quick reply.
There is no file within /usr/src folder.

Could you please tell me how to get those source files for freebsd 9.1
release?





On Wed, Jan 30, 2013 at 6:31 PM, Bas Smeelen b.smee...@ose.nl wrote:

 On 01/30/2013 12:13 PM, Hrisikesh sahu wrote:

 Hi all,
 Could you guide me where I can find all the supported PHY driver source
 code details ?
 I want to know what are the PHY drivers supported within Freebsd 9.1
 Release.

 Please help me on this.

 Regards
 Hrisikesh


 Hi
 My guess: /usr/src/sys/dev/mii



 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Artem Kuchin


30.01.2013 18:06, Warren Block:

On Wed, 30 Jan 2013, Artem Kuchin wrote:



30.01.2013 1:01, Warren Block:

On Tue, 29 Jan 2013, Artem Kuchin wrote:



29.01.2013 18:57, Warren Block:

On Tue, 29 Jan 2013, Artem Kuchin wrote:

The Handbook chapter on gmirror talks about the problems with GPT 
and GEOM metadata.  In short: right now, they conflict. It's 
possible to mirror GPT partitions, but be aware that if you mirror 
more than one partition on a drive, a rebuild after replacing a 
drive could thrash the heads as mirrors are rebuilt simultaneously.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html 



So,
gmirror+GPT=conflict on last sector
GPT+gmirror = hardrive head kill

nice...

So, for no more than 2TB disks the best way to go is GMIRROR of the 
drive +PARTITION on top of it?


GPT partitions should work, just limit it to one mirrored partition 
per drive.


Please, clarify what you mean here.


If only one GPT partition on a drive is mirrored with another GPT 
partition on another drive, head contention never comes up.  There is 
only one mirror.


It does nearly eliminate the usefulness of GPT partitioning.

Um... and how can i do that if i have a simple mirror with two drives 
and want to mirror everything on them? As i understand i will have at least
bootable, swap and ufs parttions on those drives, that is 3 partitions 
at least.


Artem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Network PHY driver source code

2013-01-30 Thread Bas Smeelen

On 01/30/2013 02:43 PM, Hrisikesh sahu wrote:

Thanks a lot for quick reply.
There is no file within /usr/src folder.

Could you please tell me how to get those source files for freebsd 9.1
release?



You didn't install the sources when installing FreeBSD?
For 9.1-RELEASE i386 you can get the sources from
ftp://ftp.nl.freebsd.org/mirror/FreeBSD/releases/i386/9.1-RELEASE/src.txz
for instance
or the amd64 sources from
ftp://ftp.nl.freebsd.org/mirror/FreeBSD/releases/amd64/9.1-RELEASE/src.txz

Then unpack with tar xf src.txc
The result is usr/src unpacked in your current directory, move src to /usr/src





On Wed, Jan 30, 2013 at 6:31 PM, Bas Smeelen b.smee...@ose.nl wrote:


On 01/30/2013 12:13 PM, Hrisikesh sahu wrote:


Hi all,
Could you guide me where I can find all the supported PHY driver source
code details ?
I want to know what are the PHY drivers supported within Freebsd 9.1
Release.

Please help me on this.

Regards
Hrisikesh


Hi
My guess: /usr/src/sys/dev/mii




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Paul Kraus
On Jan 30, 2013, at 8:10 AM, Andrea Venturoli wrote:

 You can spend the extra money you spare on the controller buying good disks; 
 as someone else pointed out don't get desktop-class ones, but 24x7 ones.

Server Class drives buy you some improvement, but my recent experience with 
Seagate Barracuda ES.2 drives is not that good. I have had 50% of them fail 
within the 5-year warranty period. My disks run 24x7 and I use ZFS under 
FreeBSD 9 so I have not lost any data. I have:

2 x Seagate ES.2 250 GB (one has failed)
4 x Seagate ES.2 1 TB (two have failed)
2 x Hitachi UltraStar 1 TB (pre-WD acquisition), no failures, but they are less 
than 2 years old. They are also noticeably faster than the Seagate ES.2

I just ordered 2 x WD RE4 500 GB, we'll see how those do

I go out of my way to purchase disks with a 5-year warranty, they are still out 
there but you have to look for them.

--
Paul Kraus
Deputy Technical Director, LoneStarCon 3
Sound Coordinator, Schenectady Light Opera Company

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Artem Kuchin

There seems to be one more advantage to gmirror
If i understood correctly

gmirror label -v -b split -s 2048 data da0 da1 da2

will create a tripple mirror raid 1, that is
triple redundancy, which is hardly available on any hardware raid.

Am i correct here?

Also, does anyone know how to choose split threshold (-s 2048) correctly ?

Artem




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Warren Block

On Wed, 30 Jan 2013, Artem Kuchin wrote:


30.01.2013 18:06, Warren Block:


GPT partitions should work, just limit it to one mirrored partition per 
drive.


Please, clarify what you mean here.


If only one GPT partition on a drive is mirrored with another GPT partition 
on another drive, head contention never comes up.  There is only one 
mirror.


It does nearly eliminate the usefulness of GPT partitioning.

Um... and how can i do that if i have a simple mirror with two drives and 
want to mirror everything on them? As i understand i will have at least
bootable, swap and ufs parttions on those drives, that is 3 partitions at 
least.


If you want to use the same drive for booting, it's possible.  Create 
all three partitions on both drives manually.  Then mirror the 
freebsd-ufs partition only.  The contents of the freebsd-boot partition 
don't change often, and swap does not have to be mirrored.


Not that it's easy or convenient, but it's an option.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Paul Kraus
On Jan 30, 2013, at 10:22 AM, Warren Block wrote:

 If you want to use the same drive for booting, it's possible.  Create all 
 three partitions on both drives manually.  Then mirror the freebsd-ufs 
 partition only.  The contents of the freebsd-boot partition don't change 
 often, and swap does not have to be mirrored.

Note that if you do NOT mirror SWAP, then in the event of a disk 
failure you will most likely crash when the system tries to swap in some data 
from the failed drive. If you mirror swap then you do not risk a crash due to 
missing swap data.

--
Paul Kraus
Deputy Technical Director, LoneStarCon 3
Sound Coordinator, Schenectady Light Opera Company

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Artem Kuchin


30.01.2013 19:28, Paul Kraus:

On Jan 30, 2013, at 10:22 AM, Warren Block wrote:


If you want to use the same drive for booting, it's possible.  Create all three 
partitions on both drives manually.  Then mirror the freebsd-ufs partition 
only.  The contents of the freebsd-boot partition don't change often, and swap 
does not have to be mirrored.

Note that if you do NOT mirror SWAP, then in the event of a disk 
failure you will most likely crash when the system tries to swap in some data 
from the failed drive. If you mirror swap then you do not risk a crash due to 
missing swap data.



yes, that's what i wanted to say.
Also, not being able to boot if first disk has some error in boot 
section or just strangly dead is not an option too. However, i was just 
thinking,
if i use gmirror then bios does not know anything about it. I may set 
both harddisk as boot disk, but if first disk is brain damaged then bios 
may just stuck
trying to boot from it and will not pass boot attempt to the second 
disk. I don't know, it depends on bios of course. But this seems to be a 
disadvantage to

a software raid.

Artem



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Software raid VS hardware raid

2013-01-30 Thread Warren Block

On Wed, 30 Jan 2013, Artem Kuchin wrote:

Also, not being able to boot if first disk has some error in boot 
section or just strangly dead is not an option too. However, i was 
just thinking, if i use gmirror then bios does not know anything about 
it. I may set both harddisk as boot disk, but if first disk is brain 
damaged then bios may just stuck trying to boot from it and will not 
pass boot attempt to the second disk. I don't know, it depends on bios 
of course. But this seems to be a disadvantage to a software raid.


That's true.  The similar situation with hardware RAID is when the 
controller fails.  The metadata is probably specific to that 
manufacturer and maybe to that model of controller.  It's a good idea to 
get spares, because as Murphy is my witness, in an emergency that 
controller will not be available in the same town, district, country, or 
continent.  More likely it will have been long discontinued, with no 
data migration path.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Supported Hardware list update request.

2013-01-30 Thread Jean-Luc BLANC
Hello,

I would like to know the process to have a new version of hardware product 
listed in this page: http://bsssd.sourceforge.net/hardware.html#hardware

Our TPM is fully compliant with the current driver provided as a module with 
latest FreeBSD 9.1.

Best Regards,


Jean-Luc BLANC
TPM Application engineer
Applications team
Secure Microcontrollers Division (SMD)
Microcontrollers, Memories  Secure microcontrollers (MMS) Group
[cid:image001.jpg@01CDFF18.B99414C0]http://www.st.com/internet/com/common/flv.jsp?url=https://s3.amazonaws.com/st-videos/newbrand_film_st_HD.flvwidth=800height=450title=TITLE

STMicroelectronics
 190 Av Celestin Coq - ZI
13106  ROUSSET cedex
FRANCE
* +33 4 42 68 84 72
6 +33 4 42 68 87 29
* jean-luc.bl...@st.commailto:jean-luc.bl...@st.com

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Booting Problem

2013-01-30 Thread Doug Hardie

On 30 January 2013, at 05:16, Fbsd8 wrote:

 Doug Hardie wrote:
 On 29 January 2013, at 07:18, Mario Lobo wrote:
 On Mon, 28 Jan 2013 15:16:14 -0800
 Doug Hardie bc...@lafn.org wrote:
 
 I have a relatively old machine that I am trying to boot 9.1 on.  The
 bios will not boot from USB stick.  I am using an external CD drive.
 It starts the boot process fine and gets to the Bootstrap loader
 message with revision 1.1.  Then it puts out the machine, date, time
 the CD was created and starts the spinner.  It spins around about 2
 times and stops.  The system continues to read from the drive for
 another couple minutes.  Then everything stops.  Nothing more happens.
 
 The CD is good.  I can boot it just fine using the same external
 drive on another machine.  While I could remove the drive and
 temporarily mount in in the working machine and build it there, I
 would like to find a way to successfully boot from CD.  This will
 become a remote machine and taking it apart later is not a viable
 option. ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions To
 unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org
 Can you boot a different OS (Win, Ububtu, gparted, etc ...) from the
 same drive on the same machine?
 Not so far.  The drive works fine on other systems.
 
 
 You said in your orginal post The bios will not boot from USB stick.
 I see no reason why you would think your PC would BOOT from any USB attached 
 devices.
 
 Since you have another PC that does boot off of usb cd drive, swap hard 
 drives and use that pc to load FreeBSD to the hard drive. This method will 
 work for you.

Yes that works now.  But starting this weekend it will be about 100 miles away. 
 That no longer will be practical.

 
 
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Booting Problem

2013-01-30 Thread doug



On Wed, 30 Jan 2013, Doug Hardie wrote:



On 30 January 2013, at 05:16, Fbsd8 wrote:


Doug Hardie wrote:

On 29 January 2013, at 07:18, Mario Lobo wrote:

On Mon, 28 Jan 2013 15:16:14 -0800
Doug Hardie bc...@lafn.org wrote:


I have a relatively old machine that I am trying to boot 9.1 on.  The
bios will not boot from USB stick.  I am using an external CD drive.
It starts the boot process fine and gets to the Bootstrap loader
message with revision 1.1.  Then it puts out the machine, date, time
the CD was created and starts the spinner.  It spins around about 2
times and stops.  The system continues to read from the drive for
another couple minutes.  Then everything stops.  Nothing more happens.

The CD is good.  I can boot it just fine using the same external
drive on another machine.  While I could remove the drive and
temporarily mount in in the working machine and build it there, I
would like to find a way to successfully boot from CD.  This will
become a remote machine and taking it apart later is not a viable
option. ___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions To
unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org

Can you boot a different OS (Win, Ububtu, gparted, etc ...) from the
same drive on the same machine?

Not so far.  The drive works fine on other systems.



You said in your orginal post The bios will not boot from USB stick.
I see no reason why you would think your PC would BOOT from any USB attached 
devices.

Since you have another PC that does boot off of usb cd drive, swap hard 
drives and use that pc to load FreeBSD to the hard drive. This method will 
work for you.


Yes that works now.  But starting this weekend it will be about 100 miles 
away.  That no longer will be practical.


The CD will not be of much help then either. The problem started with the root 
partition being too small. Just repartition to make sure that does not come up 
for a while. While you have you hands of the machine you should see if you can 
figure out if it can do a pixe boot. You should also see if you can arrange for 
a serial console into the system.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


9.1 install wipes out gpart boot blocks?

2013-01-30 Thread Gary Aitken
I used gpart to set up a new disk,
then went through a 9.1 install.
Everything seemed to go fine, but when time came to boot the new drive,
it wouldn't boot.

When doing the 9.1 install, 
I selected the disk and had to assign the partitions to the various filesystems.
AFIK, I did not otherwise modify the filesystems.

Does the 9.1 install process trash the boot areas?

My gpart setup was:

  clean up (delete) the original partitions
  gpart destroy ada3
  gpart create -s GPT ada3
  gpart bootcode -b /boot/pmbr ada3
  gpart add -t freebsd-boot -i 1 -s 512K -l gptboot ada3
  gpart bootcode -p /boot/gptboot -i 1 ada3
  gpart add -t freebsd-ufs -a 4K -b 1M -s 4G -i 2 -l fbsdroot ada3  # /
  gpart add -t freebsd-swap -a 4K -s 2G -i 3 -l fbsdswap ada3 # swap
  gpart add -t freebsd-ufs -a 4K -s 2G -i 4 -l fbsdvar ada3 # /var
  gpart add -t freebsd-ufs -a 4K -s 2G -i 5 -l fbsdtmp ada3 # /tmp
  gpart add -t freebsd-ufs -a 4K -i 6 -l fbsdusr ada3   # /usr
  newfs /dev/ada3p2   # /
  newfs -U -b 4096 -g 8192 -i 1024 /dev/ada3p4# /var
  newfs -U /dev/ada3p5# /tmp
  newfs -U /dev/ada3p6

At this point:

gpart show -l ada3
=   34  488397101  ada3  GPT  (232G)
 34   1024 1  gptboot  (512k)
   1058  6- free -  (3.0k)
   10648388608 2  fbsdroot  (4.0G)
83896724194304 3  fbsdswap  (2.0G)
   125839764194304 4  fbsdvar  (2.0G)
   167782804194304 5  fbsdtmp  (2.0G)
   20972584  467424544 6  fbsdusr  (222G)
  488397128  7- free -  (3.5k)

The / /var and /usr partitions seem to have been written properly.
Do I simply need to rewrite the boot areas, 
or is something more fundamental screwed up?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


9.1 install wipes out gpart boot blocks?

2013-01-30 Thread Robert Huff

Gary Aitken writes:

  I used gpart to set up a new disk,
  then went through a 9.1 install.
  Everything seemed to go fine, but when time came to boot the new drive,
  it wouldn't boot.

While the it wouldn't boot is catastrophically imprecise, I
had what sounds like a similar problem about a month ago.
I installed from the 9.0 CD and everything appeared to go
correctly.  However, on final re-boot the loader couldn't identify
the root partition.
The solution was to identify the disks using the GPT labels in
fstab.
Check the archive of questions@ for more details.



Robert Huff

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 9.1 install wipes out gpart boot blocks?

2013-01-30 Thread Warren Block

On Wed, 30 Jan 2013, Gary Aitken wrote:


I used gpart to set up a new disk,
then went through a 9.1 install.
Everything seemed to go fine, but when time came to boot the new drive,
it wouldn't boot.


What did it say?


When doing the 9.1 install,
I selected the disk and had to assign the partitions to the various filesystems.
AFIK, I did not otherwise modify the filesystems.

Does the 9.1 install process trash the boot areas?

My gpart setup was:

 clean up (delete) the original partitions
 gpart destroy ada3


These two steps can be replaced with
  gpart destroy -F ada3


 gpart create -s GPT ada3
 gpart bootcode -b /boot/pmbr ada3
 gpart add -t freebsd-boot -i 1 -s 512K -l gptboot ada3
 gpart bootcode -p /boot/gptboot -i 1 ada3


I do the bootcode in one step:
  gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada3


 gpart add -t freebsd-ufs -a 4K -b 1M -s 4G -i 2 -l fbsdroot ada3  # /
 gpart add -t freebsd-swap -a 4K -s 2G -i 3 -l fbsdswap ada3 # swap
 gpart add -t freebsd-ufs -a 4K -s 2G -i 4 -l fbsdvar ada3 # /var
 gpart add -t freebsd-ufs -a 4K -s 2G -i 5 -l fbsdtmp ada3 # /tmp
 gpart add -t freebsd-ufs -a 4K -i 6 -l fbsdusr ada3   # /usr


It's not necessary to use partition numbers with add, gpart will just 
use the next one available.


Here are my notes:
http://www.wonkity.com/~wblock/docs/html/disksetup.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org