Re: update from 8.2 ZFS on root to 9.0

2012-01-16 Thread Magnus Strahlert
On 15 January 2012 14:23, Dick Hoogendijk d...@nagual.nl wrote:
 Does anybody already did a *binary* update (w/ freebsd-update) from a zfs on
 root freebsd-8.2-RELEASE to a new freebsd-9.0-RELEASE zfs on root system?
 Did all went well? I know the procedure (freebsd-update, recompile all
 ports, finish freebsd-update). Succes stories please.. ;-)

Did just that with no kinks at all. It's a zfsroot system with
gptzfsloader. Had to upgrade the gpt bootcode as instructed when
upgrading the zpool for the system to boot. Installing misc/compat8x
made the ports upgrade a lot smoother.

Also had to manually fetch source.txz and extract into /usr/src/sys in
order for certain ports to build correctly such as x11/nvidia-driver,
as that was not done by freebsd-update
___
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: update from 8.2 ZFS on root to 9.0

2012-01-16 Thread Dick Hoogendijk

Op 16-1-2012 13:17, Magnus Strahlert schreef:

On 15 January 2012 14:23, Dick Hoogendijkd...@nagual.nl  wrote:

Does anybody already did a *binary* update (w/ freebsd-update) from a zfs on
root freebsd-8.2-RELEASE to a new freebsd-9.0-RELEASE zfs on root system?
Did all went well? I know the procedure (freebsd-update, recompile all
ports, finish freebsd-update). Succes stories please.. ;-)

Did just that with no kinks at all. It's a zfsroot system with
gptzfsloader. Had to upgrade the gpt bootcode as instructed when
upgrading the zpool for the system to boot. Installing misc/compat8x
made the ports upgrade a lot smoother.

Also had to manually fetch source.txz and extract into /usr/src/sys in
order for certain ports to build correctly such as x11/nvidia-driver,
as that was not done by freebsd-update
Sounds good. Where are these instructions for upgrading the gpt 
bootcode? And do you if it's normal that the souce code is nog updated 
by freebsd-update?

___
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


update from 8.2 ZFS on root to 9.0

2012-01-15 Thread Dick Hoogendijk
Does anybody already did a *binary* update (w/ freebsd-update) from a 
zfs on root freebsd-8.2-RELEASE to a new freebsd-9.0-RELEASE zfs on root 
system? Did all went well? I know the procedure (freebsd-update, 
recompile all ports, finish freebsd-update). Succes stories please.. ;-)

___
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


Best solution to install zfs on root for FBSD 9

2011-12-20 Thread bsd
Hi, 

I would like to know if there is an official howto that could help me in the 
process of installing zfs on root. 

I will need a raid 1 configuration and plan to use the whole disks to be part 
of the pool. 

How far can we go with the installer ?

Do I have to use gpart ?

What is best way to achieve this ? 


Any recent and up to date pointer will be welcome. 


Thx. 



––
- Grégory Bernard Director -
--- www.osnet.eu ---
-- Your provider of OpenSource appliances --
––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO

___
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: Best solution to install zfs on root for FBSD 9

2011-12-20 Thread Ivan Klymenko
В Tue, 20 Dec 2011 18:11:36 +0100
bsd b...@todoo.biz пишет:

 Hi, 
 
 I would like to know if there is an official howto that could help
 me in the process of installing zfs on root. 
 
 I will need a raid 1 configuration and plan to use the whole disks to
 be part of the pool. 
 
 How far can we go with the installer ?
 
 Do I have to use gpart ?
 
 What is best way to achieve this ? 
 
 
 Any recent and up to date pointer will be welcome. 
 
 
 Thx. 
 
http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot
http://www.aisecure.net/2011/05/01/root-on-zfs-freebsd-current/
___
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: Best solution to install zfs on root for FBSD 9

2011-12-20 Thread Corey Smith
On Tue, Dec 20, 2011 at 12:11 PM, bsd b...@todoo.biz wrote: I would
like to know if there is an official howto that could help me in the
process of installing zfs on root.
I have specifically used this documentation with great success:

http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror

You can also look at this link for more information:

http://wiki.freebsd.org/RootOnZFS

-Corey Smith
___
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: Best solution to install zfs on root for FBSD 9 [SOLVED]

2011-12-20 Thread bsd

Le 20 déc. 2011 à 18:42, Ivan Klymenko a écrit :

 В Tue, 20 Dec 2011 18:11:36 +0100
 bsd b...@todoo.biz пишет:
 
 Hi, 
 
 I would like to know if there is an official howto that could help
 me in the process of installing zfs on root. 
 
 I will need a raid 1 configuration and plan to use the whole disks to
 be part of the pool. 
 
 How far can we go with the installer ?
 
 Do I have to use gpart ?
 
 What is best way to achieve this ? 
 
 
 Any recent and up to date pointer will be welcome. 
 
 
 Thx. 
 
 http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot
 http://www.aisecure.net/2011/05/01/root-on-zfs-freebsd-current/

Ok thanks for your posting. 
There is an update for the post mentioned up there which is exactly what I was 
looking for : 

http://www.aisecure.net/2011/11/28/root-zfs-freebsd9/



Thx everyone. 


––
- Grégory Bernard Director -
--- www.osnet.eu ---
-- Your provider of OpenSource appliances --
––
OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO

___
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


ZFS on root backup

2011-07-11 Thread Dick Hoogendijk
OK, so now my ZFS on root FreeBSD-8.2 system runs smoothly and I'm very 
happy being able to have ZFS (coming from solaris11), but.. what is the 
best strategy to back this fbsd system up. do I create various ZFS 
backup filesystem streams or can I easely backup the zroot pool as a 
whole? And if yes, how?

Grateful for all the help I can get in these matters.
___
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: ZFS on root backup

2011-07-11 Thread Matthew Seaman
On 11/07/2011 11:20, Dick Hoogendijk wrote:
 OK, so now my ZFS on root FreeBSD-8.2 system runs smoothly and I'm very
 happy being able to have ZFS (coming from solaris11), but.. what is the
 best strategy to back this fbsd system up. do I create various ZFS
 backup filesystem streams or can I easely backup the zroot pool as a
 whole? And if yes, how?
 Grateful for all the help I can get in these matters.

Well, the best backup strategy is a very site specific thing.  There's
no one-size-fits-all answer.

Suppose your machine caught fire right now.  You're always going to lose
some data -- everything that changed since the last backup.  How much
data can you afford to lose like that?  A day's worth?  A week's worth?
 Absolutely none at all?

Given your server is destroyed, how fast do you need to get it back?
Can you wait for a week in order to source replacement kit?  Or does
every second of lost uptime cost you significant amounts of money?

Now imagine the ultimate disaster scenario: typically something like --
a fully loaded jumbo jet crashes into your datacenter and everything is
completely destroyed[*].  Will your backups survive?  Can you rebuild
your system using those backups?

Suppose someone stole your backup media: can they extract all your data
from them, and does it matter if they do?

Those are the sorts of questions you need to think about when designing
a backup system.  There's nothing particularly specific about ZFS there.

What ZFS does get you in terms of backups are two things:

   1) Really easy and unlimited amounts of snap-shotting.  As well as
  making it really simple to get a coherent point-in-time backup of
  an active filesystem, they also give you a really simple 'undo'
  type functionality, so you can unwind accidental deletions and
  other user mistakes.

   2) ZFS import and export -- again, exploiting the snap-shotting
  capability, this makes it pretty easy to create a duplicate of
  your filesystem onto another host, and to update the duplicate in
  a very efficient way.

Cheers,

Matthew

[*] As a number of companies found out to their cost, 'in the basement
of the other tower' was not sufficiently off-site to be effective.

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: ZFS on root backup

2011-07-11 Thread Joshua Isom

On 7/11/2011 5:59 AM, Matthew Seaman wrote:

On 11/07/2011 11:20, Dick Hoogendijk wrote:

OK, so now my ZFS on root FreeBSD-8.2 system runs smoothly and I'm very
happy being able to have ZFS (coming from solaris11), but.. what is the
best strategy to back this fbsd system up. do I create various ZFS
backup filesystem streams or can I easely backup the zroot pool as a
whole? And if yes, how?
Grateful for all the help I can get in these matters.


[...]

What ZFS does get you in terms of backups are two things:

1) Really easy and unlimited amounts of snap-shotting.  As well as
   making it really simple to get a coherent point-in-time backup of
   an active filesystem, they also give you a really simple 'undo'
   type functionality, so you can unwind accidental deletions and
   other user mistakes.

2) ZFS import and export -- again, exploiting the snap-shotting
   capability, this makes it pretty easy to create a duplicate of
   your filesystem onto another host, and to update the duplicate in
   a very efficient way.

Cheers,

Matthew

[*] As a number of companies found out to their cost, 'in the basement
of the other tower' was not sufficiently off-site to be effective.



I recently just converted my system from raid0 to raid1, using zfs, and 
because of mountpoints and other quirks you could end up having trouble 
with zfs send and receive.  If you're planning on backing up the whole 
pool, then using a backup drive, and virtualbox with the disk image on 
the backup drive to backup the pool might be easiest after you get 
networking working.  If you're not concerned about the whole pool, just 
just create filesystems for what you want to save and use those.  You 
could just use the zfs send command and not recreate the filesystem, but 
it's not recommended until if and when the data stream is standardized. 
 It'll work until Oracle breaks 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: ZFS on root backup

2011-07-11 Thread Randal L. Schwartz
 Matthew == Matthew Seaman m.sea...@infracaninophile.co.uk writes:

Matthew1) Really easy and unlimited amounts of snap-shotting.  As well as
Matthew   making it really simple to get a coherent point-in-time backup of
Matthew   an active filesystem, they also give you a really simple 'undo'
Matthew   type functionality, so you can unwind accidental deletions and
Matthew   other user mistakes.

And with zxfer (in ports), very simple means to transfer those snapshots
to another location.  I'm using that now on multiple machines, and it's
nearly flawless.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
___
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: ZFS on Root

2011-07-06 Thread Todor Dragnev

On 23.06.2011, at 16:08, Chris Brennan wrote:

 * Peter Toth free...@snap.net.nz [2011-06-23 22:54:59 +1200]:
 
 Did you set the mount point properly for your ZFS root? My previous post
 was intended as an example only, you need to tailor it to your setup.
 Also, you can use mfsbsd for installation very easy and straightforward
 http://mfsbsd.vx.sk/ . 
 
 This looks great, but my foggy brain isn't understanding how to use it? 
 Do I just burn the iso to media and boot it? Or is there some track that 
 involves a wand (sorry for my sarcasm lol)

Hi Chris

I just installed ZFS on ROOT on two 1TB SATA disks:

First you need to download freebsd 8.2 memstick release

http://www.freebsd.org/releases/8.2R/announce.html

After booting from memstick you must enter in Fixit shell

and then to follow step by step instructions from post in Dan's blog:

https://www.dan.me.uk/blog/2010/02/08/booting-from-zfs-raid0156-in-freebsd/

 
 
 -- 
 Chris Brennan
 -- 

___
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: ZFS on Root

2011-07-06 Thread Chris Brennan
* Todor Dragnev todor.drag...@gmail.com [2011-07-06 10:43:17 +0300]:

Inline reply:

 
 Hi Chris
 
 I just installed ZFS on ROOT on two 1TB SATA disks:
 
 First you need to download freebsd 8.2 memstick release
 
 http://www.freebsd.org/releases/8.2R/announce.html

I did this via VirtualBox first, so the livefs iso or the DVD was more 
approprite here, I choose the dvd so I had quick install times.

 After booting from memstick you must enter in Fixit shell and then to 
 follow step by step instructions from post in Dan's blog:
 
 https://www.dan.me.uk/blog/2010/02/08/booting-from-zfs-raid0156-in-freebsd/
 
A most excellent guide to follow, I made some slight adjustments for my 
environment and desire, even scripted the process a little bit (with my 
tastes of course) and it went without error. The problem came when I 
went to reboot. The system just hangs, I'm going on 7min now with it 
just sitting at what I would presume should be the loader prompt. No 
import moves things along. The last post on the link you provided pretty 
much sums up my issue currently.

If you or anyone else has some advise on this, I would be greatly 
appreciated.

-- 
 Chris Brennan
 -- 
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
 GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)

___
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: ZFS on Root

2011-06-23 Thread Joshua Isom

On 6/21/2011 7:47 PM, Chris Brennan wrote:

* Peter Tothfree...@snap.net.nz  [2011-06-22 12:16:11 +1200]:


Did you set the bootfs property on your root pool? Example: zpool set
bootfs=tank/root tank


OK, I booted back to the livefs memostick, imported my zpool (tank) and
zpool promptly tells me the following

 Fixit# zpool set bootfs=tank/root tank
 cannot set property for 'tank': no such pool or dataset.
 Fixit

But ... there is! It was a great tip and a worthy try. But it didn't
work, got any more idea's?



Try sending your results of `zpool status`, `zpool get all tank`, and 
`zfs get all tank` and maybe someone can find some quirk.

___
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: ZFS on Root

2011-06-23 Thread Peter Toth
On 06/22/11 12:47, Chris Brennan wrote:
 * Peter Toth free...@snap.net.nz [2011-06-22 12:16:11 +1200]:

 Did you set the bootfs property on your root pool? Example: zpool set
 bootfs=tank/root tank
 OK, I booted back to the livefs memostick, imported my zpool (tank) and 
 zpool promptly tells me the following

 Fixit# zpool set bootfs=tank/root tank
 cannot set property for 'tank': no such pool or dataset.
 Fixit

 But ... there is! It was a great tip and a worthy try. But it didn't 
 work, got any more idea's?

Did you set the mount point properly for your ZFS root? My previous post
was intended as an example only, you need to tailor it to your setup.
Also, you can use mfsbsd for installation very easy and straightforward
http://mfsbsd.vx.sk/ . 
___
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


ZFS on root and find performance

2011-06-23 Thread Andrew Moran

Is anyone else running zfs on root and running into very slow finds?   The 
/etc/periodic/daily/450.status-security can take over a noisy HD thrashing hour 
to finish, the culprit being the find that crawls the filesystem.

I'm hoping there is some I'm not sure if there if some simple zfs tuning I need 
to do to improve the performance on this.  I'm looking for what others use for 
their ZFS settings.

Thanks!

--Andy___
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: ZFS on root and find performance

2011-06-23 Thread Peter Vereshagin
I feel summer creepin' in and I'm tired of this town again, freebsd-questions!
2011/06/23 03:56:07 -0700 Andrew Moran amo...@forsythia.net = To 
freebsd-questions@freebsd.org :
AM 
AM Is anyone else running zfs on root and running into very slow finds?   The 
/etc/periodic/daily/450.status-security can take over a noisy HD thrashing hour 
to finish, the culprit being the find that crawls the filesystem.

I was doing, too. I believe zfs requires 4+ GB RAM and 4+ CPUs (or cores) and 
1+ TB of storage space to be useful.

AM I'm hoping there is some I'm not sure if there if some simple zfs tuning I 
need to do to improve the performance on this.  I'm looking for what others use 
for their ZFS settings.

But SGI's XFS requires nothing like that, although it is not fully supported on 
FreeBSD but on those systems it is being designed fpr it requires no tuning for 
the performance of the any kind of acceptance.

I think UFS is still a rather choice for many old machines for which FreeBSD is 
a competent option for.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.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: ZFS on Root

2011-06-23 Thread Chris Brennan
* Peter Toth free...@snap.net.nz [2011-06-23 22:54:59 +1200]:

 Did you set the mount point properly for your ZFS root? My previous post
 was intended as an example only, you need to tailor it to your setup.
 Also, you can use mfsbsd for installation very easy and straightforward
 http://mfsbsd.vx.sk/ . 

This looks great, but my foggy brain isn't understanding how to use it? 
Do I just burn the iso to media and boot it? Or is there some track that 
involves a wand (sorry for my sarcasm lol)


-- 
 Chris Brennan
 -- 
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
 GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)

___
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: ZFS on Root

2011-06-22 Thread krad
On 22 June 2011 01:47, Chris Brennan xa...@xaerolimit.net wrote:

 * Peter Toth free...@snap.net.nz [2011-06-22 12:16:11 +1200]:

  Did you set the bootfs property on your root pool? Example: zpool set
  bootfs=tank/root tank

 OK, I booted back to the livefs memostick, imported my zpool (tank) and
 zpool promptly tells me the following

Fixit# zpool set bootfs=tank/root tank
cannot set property for 'tank': no such pool or dataset.
Fixit

 But ... there is! It was a great tip and a worthy try. But it didn't
 work, got any more idea's?

 --
  Chris Brennan
  --
  A: Yes.
  Q: Are you sure?
  A: Because it reverses the logical flow of conversation.
  Q: Why is top posting frowned upon?
  http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
  GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)
 
 ___
 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



I never have the os installed in the rootfs of the pool
___
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: ZFS on Root

2011-06-22 Thread krad
On 22 June 2011 21:31, krad kra...@gmail.com wrote:



 On 22 June 2011 01:47, Chris Brennan xa...@xaerolimit.net wrote:

 * Peter Toth free...@snap.net.nz [2011-06-22 12:16:11 +1200]:

  Did you set the bootfs property on your root pool? Example: zpool set
  bootfs=tank/root tank

 OK, I booted back to the livefs memostick, imported my zpool (tank) and
 zpool promptly tells me the following

Fixit# zpool set bootfs=tank/root tank
cannot set property for 'tank': no such pool or dataset.
Fixit

 But ... there is! It was a great tip and a worthy try. But it didn't
 work, got any more idea's?

 --
  Chris Brennan
  --
  A: Yes.
  Q: Are you sure?
  A: Because it reverses the logical flow of conversation.
  Q: Why is top posting frowned upon?
  http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
  GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)
 
 ___
 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



 I never have the os installed in the rootfs of the pool




sorry finger fart, ill continue

I have a separate tree for the os, as per below (modelled on opensolaris).
Make sure the fs you boot off is also set to legacy mountpoint. Also make
sure your bootloader is a zfs aware one

[root@carrera /home/krad]# df /
Filesystem   SizeUsed   Avail Capacity  Mounted on
system-4k/be/root20110604597G5.5G591G 1%/

[root@carrera /home/krad]# zfs list | grep be
system-4k/be  55.0G   592G   180K  /system-4k/be
system-4k/be/current  1.51G   592G  1017M  legacy
system-4k/be/root20110226 2.80G   592G   882M  legacy
system-4k/be/root20110302 3.24G   592G   882M  legacy
system-4k/be/root20110306 1.32G   592G   882M  legacy
system-4k/be/root20110312 1.36G   592G   923M  legacy
system-4k/be/root20110416 1.47G   592G  1.14G
 /system-4k/be/root20110416
system-4k/be/root20110430 1.47G   592G  1.15G  legacy
system-4k/be/root20110505 2.11G   592G  1.78G  legacy
system-4k/be/root20110506 4.01G   592G  3.37G  legacy
system-4k/be/root20110604 6.23G   592G  5.50G
 /system-4k/be/root20110604
system-4k/be/tmp   900K   594G   384K  /tmp
system-4k/be/usr-local4.00G   592G  1.78G  /usr/local/
system-4k/be/usr-obj  4.45G   592G  1.45G  /usr/obj
system-4k/be/usr-ports9.47G   592G  3.84G  /usr/ports
system-4k/be/usr-ports/distfiles  2.96G   592G  1.77G
 /usr/ports/distfiles
system-4k/be/usr-src  1.56G   592G  1006M  /usr/src
system-4k/be/var  8.04G   592G  1.03G  /var
system-4k/be/var/log  6.68G   592G  4.76G  /var/log
system-4k/be/var/mysql82.5M   592G  33.9M  /var/db/mysql
[root@carrera /home/krad]# zpool get bootfs system-4k
NAME   PROPERTY  VALUE  SOURCE
system-4k  bootfssystem-4k/be/root20110604  local
___
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


ZFS on Root

2011-06-21 Thread Chris Brennan
OK, So I got ZFS installed on this new box, I had to loose two disks due 
to them being faulty, so I removed the IDE expansion card and booted 
from an SD card, all went well (according to this guide - 
http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror). I adjusted the 
instructions there for only one disk though and will worry about adding 
the others to the zpool after the fact and the system has booted on it's 
own. 

The problem is this, the system starts to boot but then fails to find 
zfs:tank, I get dropped to the mountroot prompt with the following 
advise:

Trying to mount root from zfs:tank
ROOT MOUNT ERROR:
If you have invalid mount options, reboot, and first try the following 
from the loader prompt:

set vfs.root.mountfrom.options=rw

and then remove invalid mount options from /etc/fstab.

Loader variables:
vfs.root.mountfrom=zfs:tank
vfs.root.mountfrom.options=rw

Manual root filesystem specifications:
fstype:device Mount device using filesystem fstype
  eg: ufs:/dev/da0s1a
  eg: cd9660:/dev/acd0
  This is equivalent to: mount -t cd9660 /dev/acd0 /

?   List valid disk boot devices
empty lineAbort manual input

mountroot ?

List of GEOM managed disk devices:
  ufsid/47ce961fb53808acd ufsid/47ce961fb53808ac ad6s1d ad6s1 ad7 ad6 
  ad5 gptit/f6af4300-9c1a-11e0-b38d-000ea68c8b0e gpt/disk0 
  gpt/f6a70bb3-9c1a-11e0-b38d-000ea68c8b0e gpt/swap0 
  gpt/f6a4de0c-9c1a-11e0-b8d-000ea68c8b0e ad4p3 ad4p2 ad3p1 ad4

Manual root File Specification
8 lines repeat from above

So what did I miss? I was able to follow the instructions without fail, 
the only instruction I had to do on my own was to create /tank/boot/zfs 
first to copy the cpool.cache over. All the other instructions worked 
with issue, the first time. This is the second time I've done this on 
this box in two days, the first time I made a mistake, so I scripted the 
instructions (rather crudely) to ensure I did things correctly, each 
portion of the script was modified to reflected how I wanted my system 
to be (mostly changing zpool as the pool name to tank. I can make the 
scripts available if someone would like to look at them.
-- 
 Chris Brennan
 -- 
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
 GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)

___
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: ZFS on Root

2011-06-21 Thread Peter Toth
On 06/22/11 08:15, Chris Brennan wrote:
 OK, So I got ZFS installed on this new box, I had to loose two disks due 
 to them being faulty, so I removed the IDE expansion card and booted 
 from an SD card, all went well (according to this guide - 
 http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror). I adjusted the 
 instructions there for only one disk though and will worry about adding 
 the others to the zpool after the fact and the system has booted on it's 
 own. 

 The problem is this, the system starts to boot but then fails to find 
 zfs:tank, I get dropped to the mountroot prompt with the following 
 advise:

 Trying to mount root from zfs:tank
 ROOT MOUNT ERROR:
 If you have invalid mount options, reboot, and first try the following 
 from the loader prompt:

 set vfs.root.mountfrom.options=rw

 and then remove invalid mount options from /etc/fstab.

 Loader variables:
 vfs.root.mountfrom=zfs:tank
 vfs.root.mountfrom.options=rw

 Manual root filesystem specifications:
 fstype:device Mount device using filesystem fstype
   eg: ufs:/dev/da0s1a
   eg: cd9660:/dev/acd0
   This is equivalent to: mount -t cd9660 /dev/acd0 /

 ?   List valid disk boot devices
 empty lineAbort manual input

 mountroot ?

 List of GEOM managed disk devices:
   ufsid/47ce961fb53808acd ufsid/47ce961fb53808ac ad6s1d ad6s1 ad7 ad6 
   ad5 gptit/f6af4300-9c1a-11e0-b38d-000ea68c8b0e gpt/disk0 
   gpt/f6a70bb3-9c1a-11e0-b38d-000ea68c8b0e gpt/swap0 
   gpt/f6a4de0c-9c1a-11e0-b8d-000ea68c8b0e ad4p3 ad4p2 ad3p1 ad4

 Manual root File Specification
 8 lines repeat from above

 So what did I miss? I was able to follow the instructions without fail, 
 the only instruction I had to do on my own was to create /tank/boot/zfs 
 first to copy the cpool.cache over. All the other instructions worked 
 with issue, the first time. This is the second time I've done this on 
 this box in two days, the first time I made a mistake, so I scripted the 
 instructions (rather crudely) to ensure I did things correctly, each 
 portion of the script was modified to reflected how I wanted my system 
 to be (mostly changing zpool as the pool name to tank. I can make the 
 scripts available if someone would like to look at them.
Did you set the bootfs property on your root pool? Example: zpool set
bootfs=tank/root tank
___
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: ZFS on Root

2011-06-21 Thread Chris Brennan
* Peter Toth free...@snap.net.nz [2011-06-22 12:16:11 +1200]:

 Did you set the bootfs property on your root pool? Example: zpool set
 bootfs=tank/root tank

Well, the wiki I linked has the following:

Fixit# mkdir /boot/zfs
Fixit# zpool create zroot mirror /dev/gpt/disk0 /dev/gpt/disk1
Fixit# zpool set bootfs=zroot zroot

I subsequently modified that as follows:
   Fixit# mkdir /boot/zfs
   Fixit# zpool create tank /dev/gpt/disk0
   Fixit# zpool set bootfs=tank tank

So was the wiki mistake and I do indeed need to zpool set 
bootfs=tank/root tank instead?

-- 
 Chris Brennan
 -- 
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
 GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)

___
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: ZFS on Root

2011-06-21 Thread Chris Brennan
* Peter Toth free...@snap.net.nz [2011-06-22 12:16:11 +1200]:

 Did you set the bootfs property on your root pool? Example: zpool set
 bootfs=tank/root tank

OK, I booted back to the livefs memostick, imported my zpool (tank) and 
zpool promptly tells me the following

Fixit# zpool set bootfs=tank/root tank
cannot set property for 'tank': no such pool or dataset.
Fixit

But ... there is! It was a great tip and a worthy try. But it didn't 
work, got any more idea's?

-- 
 Chris Brennan
 -- 
 A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting frowned upon?
 http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
 GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)

___
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: Problem upgrading from 8.1-8.2, ZFS as root filesystem

2011-02-28 Thread krad
On 27 February 2011 21:29, Scott Ballantyne boyva...@gmail.com wrote:
 On Sun, Feb 27, 2011 at 4:04 PM, Adam Vande More amvandem...@gmail.comwrote:

 On Sun, Feb 27, 2011 at 2:36 PM, Scott Ballantyne boyva...@gmail.comwrote:


 ===sys/boot/i386/zfsloader (install)

 cp zfsloader.sym zfsloader.bin
 cp:No such file or directory
 *** Error code 1
 Stop in /usr/src/sys/boot/i386/zfsloader
 *** Error code 1

 Stop in /usr/src/sys/boot/i386

 Any suggestions would be *very* appreciated!

 Thanks,
 Scott


 You can follow the intructions for building the loader which I believe are
 in the wiki or set LOADER_ZFS_SUPPORT=YES in /etc/src.conf prior to upgrade.


 Thanks Adam, but it still comes to a screaming stop with that set.
 ___
 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


mines in make.conf not src and it built fine
___
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


Problem upgrading from 8.1-8.2, ZFS as root filesystem

2011-02-27 Thread Scott Ballantyne
Hi,

Doing a source upgrade from 8.1-8.2, all went well up to the installworld
step:

Reboot into single user mode:

mount  -u ./

zfs mount -a

cd /usr/src

make installworld

It goes fine up to this point: (copying by hand)

===sys/boot/i386/zfsloader (install)

cp zfsloader.sym zfsloader.bin
cp:No such file or directory
*** Error code 1
Stop in /usr/src/sys/boot/i386/zfsloader
*** Error code 1

Stop in /usr/src/sys/boot/i386

Any suggestions would be *very* appreciated!

Thanks,
Scott
-- 
boyva...@gmail.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: Problem upgrading from 8.1-8.2, ZFS as root filesystem

2011-02-27 Thread Adam Vande More
On Sun, Feb 27, 2011 at 2:36 PM, Scott Ballantyne boyva...@gmail.comwrote:


 ===sys/boot/i386/zfsloader (install)

 cp zfsloader.sym zfsloader.bin
 cp:No such file or directory
 *** Error code 1
 Stop in /usr/src/sys/boot/i386/zfsloader
 *** Error code 1

 Stop in /usr/src/sys/boot/i386

 Any suggestions would be *very* appreciated!

 Thanks,
 Scott


You can follow the intructions for building the loader which I believe are
in the wiki or set LOADER_ZFS_SUPPORT=YES in /etc/src.conf prior to upgrade.


-- 
Adam Vande More
___
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: Problem upgrading from 8.1-8.2, ZFS as root filesystem

2011-02-27 Thread Scott Ballantyne
On Sun, Feb 27, 2011 at 4:04 PM, Adam Vande More amvandem...@gmail.comwrote:

 On Sun, Feb 27, 2011 at 2:36 PM, Scott Ballantyne boyva...@gmail.comwrote:


 ===sys/boot/i386/zfsloader (install)

 cp zfsloader.sym zfsloader.bin
 cp:No such file or directory
 *** Error code 1
 Stop in /usr/src/sys/boot/i386/zfsloader
 *** Error code 1

 Stop in /usr/src/sys/boot/i386

 Any suggestions would be *very* appreciated!

 Thanks,
 Scott


 You can follow the intructions for building the loader which I believe are
 in the wiki or set LOADER_ZFS_SUPPORT=YES in /etc/src.conf prior to upgrade.


Thanks Adam, but it still comes to a screaming stop with that set.
___
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


a question on ZFS boot/root in 8.0-RELEASE

2010-01-11 Thread Dan Naumov
Hello list.

My concern is this: I really really like freebsd-update and want to
continue using it. Freebsd-update however, assumes that no part of
your base system has been compiled by hand, it's intended to be used
to update from official binaries to other official binaries. I am also
gathering (from things I've read so far) that you HAVE to build a
custom loader if you want to boot off a ZFS mirror or raidz... but
what about a non-redundant ZFS pool as system root in 8.0-RELEASE? Can
I have a full ZFS FreeBSD installation on a non-redundant ZFS pool and
have the system boot off it without having to compile anything
manually with the existing binaries provided on the 8.0 install DVD?

- Sincerely,
Dan Naumov
___
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: a question on ZFS boot/root in 8.0-RELEASE

2010-01-11 Thread krad
2010/1/11 Dan Naumov dan.nau...@gmail.com

 Hello list.

 My concern is this: I really really like freebsd-update and want to
 continue using it. Freebsd-update however, assumes that no part of
 your base system has been compiled by hand, it's intended to be used
 to update from official binaries to other official binaries. I am also
 gathering (from things I've read so far) that you HAVE to build a
 custom loader if you want to boot off a ZFS mirror or raidz... but
 what about a non-redundant ZFS pool as system root in 8.0-RELEASE? Can
 I have a full ZFS FreeBSD installation on a non-redundant ZFS pool and
 have the system boot off it without having to compile anything
 manually with the existing binaries provided on the 8.0 install DVD?

 - Sincerely,
 Dan Naumov
 ___
 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


At the moment dont mix freebsd update and zfsroot. Much safer to do it from
source.
___
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


zfs on root and zpool.cache importance

2009-10-06 Thread Michal

Hello

I'm a bit confused about zpool.cache file. I've got a configuration with 
/boot sitting on a usb drive (UFS) and everything else on internal ZFS 
hard drive. I'm booting my system off the usb drive so zpool.cache file 
is there (usb drive). Basic zfs root + ufs boot setup. Everything works 
like a charm no problems so far and I would like to keep it that way 
hence my question.


I've noticed that zpool.cache on ZFS drive is being updated from time to 
time and it is different from zpool.cache file on usb drive. Even when I 
remove zpool.cache file on hard disk then it gets recreated 
automatically and system still boots and works fine because it starts 
with zpool.cache on usb drive which is intact.
Now how important it is to keep them in sync and what I'm risking by not 
doing that? Am I stomping on a thin ice? Should I copy zpool.cache from 
hard drive to usb boot disk every day or should I leave it how it is?


I know that zpool.cache is critical to boot and it keeps some 
informations about pool configuration but don't quite understand 
implications of having it outside of the pool itself (without zfs even 
knowing about that).


Michal
--
Every man dies, not every man really lives. -William Wallace

___
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


ZFS on root with atime=off

2008-10-03 Thread Artis Caune
Hi everyone,

I install ZFS on root just like in Andrew ZFSOnRoot wiki page.
I don't use legacy mount points.

I also set atime=off on tank and all partitions inherit it from tank.
When I reboot after install, root file system is mounted with atime option:
# zfs get atime tank
NAME  PROPERTY  VALUE  SOURCE
tank  atime on temporary

I can fix this with creating entry in fstab for root fs with noatime,
but maybe there is some way how to pass options to vfs.root.mountfrom?




-- 
regards,
Artis Caune

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


Re: ZFS on root with atime=off

2008-10-03 Thread Jeremy Chadwick
On Fri, Oct 03, 2008 at 11:26:52AM +0300, Artis Caune wrote:
 Hi everyone,
 
 I install ZFS on root just like in Andrew ZFSOnRoot wiki page.
 I don't use legacy mount points.
 
 I also set atime=off on tank and all partitions inherit it from tank.
 When I reboot after install, root file system is mounted with atime option:
 # zfs get atime tank
 NAME  PROPERTY  VALUE  SOURCE
 tank  atime on temporary
 
 I can fix this with creating entry in fstab for root fs with noatime,
 but maybe there is some way how to pass options to vfs.root.mountfrom?

This question should be going to freebsd-fs, not freebsd-questions.
Please re-post it there, and CC [EMAIL PROTECTED] (ZFS maintainer).

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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