Re: Is it possible to suspend to disk with geli+Root on ZFS installation

2013-10-13 Thread Ian Smith
On Sun, 13 Oct 2013 13:17:20 +1000, yudi v wrote:
  On Mon, Sep 30, 2013 at 2:47 AM, Ian Smith smi...@nimnet.asn.au wrote:
   In freebsd-questions Digest, Vol 486, Issue 7, Message: 5
   On Sat, 28 Sep 2013 16:25:33 +0200 Roland Smith rsm...@xs4all.nl wrote:
 On Fri, Sep 27, 2013 at 05:37:55PM +1000, yudi v wrote:
  Hi all,
 
  Is it possible to suspend to disk (hibernate) when using geli for
  full disk
  encryption.
[..]
   I must reiterate, FreeBSD does not support Suspend to Disk (state S4 aka
   'hibernate') on ANY platform, except - perhaps - on machines supporting
   S4 in BIOS (hw.acpi.s4bios=1) which are very rarely spotted in the wild.
  
 And even suspend to RAM doesn't work on every machine [2].

 [2]: https://wiki.freebsd.org/IdeasPage#Suspend_to_disk
  
   That page IS about Suspend to Disk - but only as a wishlist idea, as it
   has been for many years.  Someone did take it on as a Google SoC project
   years ago, but nothing ever came of it to my knowledge.
[..]

  Thanks Ian for clarifying that FreeBSD does not support Suspend to Disk. I
  just assumed all major distros supported all the suspend states. Now I am
  looking for a UPS that cleanly shuts down the machine when there is a power
  outage.

Hi Yudi,

you haven't said what sort of machine (desktop/server/laptop) or how 
long a mains power fail runtime you're after, so it's impossible to 
guess what sort of size UPS you might need ..

  I am looking at a APC Power-Saving Back-UPS ES 8 Outlet 700VA 230V AS
  3112http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=BE700G-AZtotal_watts=200tab=features,

I don't know about that model; it makes no mention of shutdown alert / 
control at all, only 'some models' have a USB connector, and I couldn't 
find the manual for it there.  Certainly not all 'desktop' UPSes support 
what's needed to communicate and shutdown cleanly, so check carefully 
both the specs and that software (apcupsd or nut) supports the model.

I gather from your timestamp (and that model) that you may be in 
Australia, in which case you could browse from here for the APCs:

http://www.apc.com/products/category.cfm?id=13ISOCountryCode=au

[However that page currently throws errors on the various model links of 
'Element CACHE.APCTOSECOUNTRYMAPPINGS is undefined in APPLICATION.' :( ]

  anyone know if apcupsd daemon works fine under FreeBSD or should I be
  looking at Network UPS Tools (NUT).

I'm sure there are people here who can advise.  I've only setup Eaton 
and PowerWare UPSes, and those on a Debian linux server, using NUT.

cheers, Ian
___
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: Is it possible to suspend to disk with geli+Root on ZFS installation

2013-10-12 Thread yudi v
On Mon, Sep 30, 2013 at 2:47 AM, Ian Smith smi...@nimnet.asn.au wrote:
 In freebsd-questions Digest, Vol 486, Issue 7, Message: 5
 On Sat, 28 Sep 2013 16:25:33 +0200 Roland Smith rsm...@xs4all.nl wrote:
   On Fri, Sep 27, 2013 at 05:37:55PM +1000, yudi v wrote:
Hi all,
   
Is it possible to suspend to disk (hibernate) when using geli for
full disk
encryption.
  
   As far as I can tell, FreeBSD doesn't support suspend to disk on all
   architectures. On amd64 the necessary infrastructure doesn't exist,
and on
   i386 FPU state is lost, there is no multiprocessor support and some
MSRs are
   not restored [1].
  
   [1]: https://wiki.freebsd.org/SuspendResume

 Roland, sorry, no; you (and that page) are talking about Suspend to RAM,
 ACPI state S3.  What you've said is correct re Suspend to RAM - though
 some running amd64 have achieved some success on some machines lately;
 most of the issues are with restoring modern video, backlight and such.

 Those i386 comments don't apply to my Thinkpad T23s, which suspend and
 resume, in console mode and X, flawlessly on 9.1-R and properly after
 various tweaks on 8.x, 7.x and 6.x - but they're a single core P3-M ..

 I must reiterate, FreeBSD does not support Suspend to Disk (state S4 aka
 'hibernate') on ANY platform, except - perhaps - on machines supporting
 S4 in BIOS (hw.acpi.s4bios=1) which are very rarely spotted in the wild.

   And even suspend to RAM doesn't work on every machine [2].
  
   [2]: https://wiki.freebsd.org/IdeasPage#Suspend_to_disk

 That page IS about Suspend to Disk - but only as a wishlist idea, as it
 has been for many years.  Someone did take it on as a Google SoC project
 years ago, but nothing ever came of it to my knowledge.

 The last laptop I have that will properly hibernate - ie save RAM and
 all state to disk and power off, then reload all RAM and state on power
 return - is a 300MHz Compaq Armada 1500C (mfg '98), but using the older
 APM BIOS rather than ACPI.  (It's still running, 24/7/365 since 2002 :)

 cheers, Ian

Thanks Ian for clarifying that FreeBSD does not support Suspend to Disk. I
just assumed all major distros supported all the suspend states. Now I am
looking for a UPS that cleanly shuts down the machine when there is a power
outage.
I am looking at a APC Power-Saving Back-UPS ES 8 Outlet 700VA 230V AS
3112http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=BE700G-AZtotal_watts=200tab=features,
anyone know if apcupsd daemon works fine under FreeBSD or should I be
looking at Network UPS Tools (NUT).

-- 
Kind regards,
Yudi
___
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: Is it possible to suspend to disk with geli+Root on ZFS installation

2013-09-29 Thread Ian Smith
In freebsd-questions Digest, Vol 486, Issue 7, Message: 5
On Sat, 28 Sep 2013 16:25:33 +0200 Roland Smith rsm...@xs4all.nl wrote:
  On Fri, Sep 27, 2013 at 05:37:55PM +1000, yudi v wrote:
   Hi all,
   
   Is it possible to suspend to disk (hibernate) when using geli for full disk
   encryption. 
  
  As far as I can tell, FreeBSD doesn't support suspend to disk on all
  architectures. On amd64 the necessary infrastructure doesn't exist, and on
  i386 FPU state is lost, there is no multiprocessor support and some MSRs are
  not restored [1].
  
  [1]: https://wiki.freebsd.org/SuspendResume

Roland, sorry, no; you (and that page) are talking about Suspend to RAM, 
ACPI state S3.  What you've said is correct re Suspend to RAM - though 
some running amd64 have achieved some success on some machines lately; 
most of the issues are with restoring modern video, backlight and such.

Those i386 comments don't apply to my Thinkpad T23s, which suspend and 
resume, in console mode and X, flawlessly on 9.1-R and properly after 
various tweaks on 8.x, 7.x and 6.x - but they're a single core P3-M ..

I must reiterate, FreeBSD does not support Suspend to Disk (state S4 aka 
'hibernate') on ANY platform, except - perhaps - on machines supporting 
S4 in BIOS (hw.acpi.s4bios=1) which are very rarely spotted in the wild.

  And even suspend to RAM doesn't work on every machine [2].
  
  [2]: https://wiki.freebsd.org/IdeasPage#Suspend_to_disk

That page IS about Suspend to Disk - but only as a wishlist idea, as it 
has been for many years.  Someone did take it on as a Google SoC project 
years ago, but nothing ever came of it to my knowledge.

The last laptop I have that will properly hibernate - ie save RAM and 
all state to disk and power off, then reload all RAM and state on power 
return - is a 300MHz Compaq Armada 1500C (mfg '98), but using the older 
APM BIOS rather than ACPI.  (It's still running, 24/7/365 since 2002 :)

cheers, Ian
___
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


Is it possible to suspend to disk with geli+Root on ZFS installation

2013-09-28 Thread Ian Smith
In freebsd-questions Digest, Vol 486, Issue 5, Message: 18
On Fri, 27 Sep 2013 17:37:55 +1000 yudi v yudi@gmail.com wrote:

  Hi all,
  
  Is it possible to suspend to disk (hibernate) when using geli for full disk
  encryption. My set-up is listed below. So I am going to have an encrypted
  container and ZFS on top. There are two options for the swap with this
  set-up, either use a swap file on the ZFS pool or use a separate partition
  for swap and encrypt that. What I want to know is will either of this work
  with suspend to disk.

FreeBSD does not support suspend to disk (ACPI state S4) at all.  It's 
been some years since I last heard of any attempts to implement STD.

Suspend to RAM (state S3) works on some machines, including mine.  If it 
works on yours then I suspect use of ZFS shouldn't be an extra issue.

I haven't used ZFS, so can't comment on the rest of your message(s).

cheers, Ian
___
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: Is it possible to suspend to disk with geli+Root on ZFS installation

2013-09-28 Thread Roland Smith
On Fri, Sep 27, 2013 at 05:37:55PM +1000, yudi v wrote:
 Hi all,
 
 Is it possible to suspend to disk (hibernate) when using geli for full disk
 encryption. 

As far as I can tell, FreeBSD doesn't support suspend to disk on all
architectures. On amd64 the necessary infrastructure doesn't exist, and on
i386 FPU state is lost, there is no multiprocessor support and some MSRs are
not restored [1].

[1]: https://wiki.freebsd.org/SuspendResume

And even suspend to RAM doesn't work on every machine [2].

[2]: https://wiki.freebsd.org/IdeasPage#Suspend_to_disk


Roland
-- 
R.F.Smith   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpR3yscCbfXL.pgp
Description: PGP signature


Is it possible to suspend to disk with geli+Root on ZFS installation

2013-09-27 Thread yudi v
Hi all,

Is it possible to suspend to disk (hibernate) when using geli for full disk
encryption. My set-up is listed below. So I am going to have an encrypted
container and ZFS on top. There are two options for the swap with this
set-up, either use a swap file on the ZFS pool or use a separate partition
for swap and encrypt that. What I want to know is will either of this work
with suspend to disk.

Reading geli(8) http://man.freebsd.org/geli/8 man page does not say
anything about suspending to disk. Geli itself has suspend and resume
commands but looks like they cannot be used on the file system where
geliutility is stored (so the root pool cannot be suspended?)

And the onetime option does not support geli suspend.

Thank you.
Yudi

PS. I haven't received any response to the email below, if someone would
still like to answer some of the questions at the end, that would be
wonderful.


-- Forwarded message --
From: yudi v yudi@gmail.com
Date: Fri, Sep 20, 2013 at 7:09 PM
Subject: geli+Root on ZFS installation
To: freebsd-questions@freebsd.org


Hi,

I managed to install with geli+root on ZFS setup but have a few
questions.  Most of the instructions just list commands but offer very
little explanation.
I adapted the instructions in
https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE  to suit my needs.

Here's the process I used for the test on a VM:

2 GB RAM
two HDDs 8 GB each mirrored - three partitions

for boot code 128 KB
for /boot 2 GB
for the rest of the system and encrypted

no key file for encrypted partitions, only passphrase
using 9.1-RELEASE
there will be no swap or handling of 4k drives, just to keep it as simple
as possible.

*Create the basic three partitions:*


gpart destroy -F da0
gpart destroy -F da1
gpart create -s gpt da0
gpart create -s gpt da1
gpart add -s 128 -t freebsd-boot da0
gpart add -s 128 -t freebsd-boot da1
gpart add -s 2G -t freebsd-zfs da0
gpart add -s 2G -t freebsd-zfs da1
gpart add -t freebsd-zfs da0
gpart add -t freebsd-zfs da1

*Write boot code to both disks:*

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1

*Load necessary modules:*

kldload zfs
kldload geom_eli
*
Encrypt the disks with only a passphrase:*

geli init -b -s 4096 /dev/da0p3
geli init -b -s 4096 /dev/da1p3

geli attach /dev/da0p3
geli attach /dev/da1p3

*Creating ZFS datasets:*

zpool create bootdir mirror /dev/da0p2 /dev/da1p2
zpool set bootfs=bootdir bootdir

zpool create -R /mnt -O canmount=off tank mirror /dev/da0p3.eli
/dev/da1p3.eli
zfs create -o mountpoint=/tank/ROOT
zfs set mountpoint=/mnt/bootdirbootdir
zfs mount bootdir

*Then exit out of the shell and go back to bsdinstall. Install as normal
and then get back to the shell after bsdinstall finishes ( do not reboot
yet).*

Once in the newly installed system:

mount -t devfs devfs /dev   ( to use ZFS commands in the new environment)

*Add the necessary variables/settings:*

echo ‘zfs_enable=”YES”‘  /etc/rc.conf
echo ‘vfs.root.mountfrom=”zfs:tank/ROOT”‘   /boot/loader.conf
echo ‘zfs_load=”YES”‘  /boot/loader.conf
echo ‘geom_eli_load=”YES”‘  /boot/loader.conf

*Then create a zpool cache file:*

 zpool set cachefile=/boot/zfs/zpool.cache tank.

*Then move the boot folder to the second partition under the bootdir
dataset:*

mv boot bootdir/
*
Then set the final mount points:*

zfs set mountpoint=legacy tank
zfs set mountpoint=/bootdir bootdir

*then reboot.*
It should boot fine into the new system.

-  My questions:  -

*1.*   Almost all the guides  I came across, do not install to the root
dataset, they only seem to use it to derive/mount other
datasets/filesystems.
One of the reasons is to user boot environments, what are the other
possible reasons for doing this?



*2*.   Is it necessary to create a symbolic link to the /boot dir? Again
one of the howtos on the web had this step (
https://www.dan.me.uk/blog/2012/05/06/full-disk-encryption-with-zfs-root-for-freebsd-9-x/
).

ln -fs bootdir/boot

*3*.   This below option is where I had most trouble. This definitely needs
to be present when using geli+ZFS, if it's only ZFS, then I think the
bootfs flag suffices. Can someone with more knowledge of this please shed
some light on when this entry is needed.

vfs.root.mountfrom=”zfs:tank/ROOT”

*4.* In the wiki link above, what is the purpose of:

# zfs set mountpoint=/  zroot/ROOT
# zfs set mountpoint=/zroot zroot

I cannot understand the logic behind the second command.
Does that mean zroot  will display under / (root of the filesystem)?  and
Why?

looking at the rest of the commands:

# zfs set mountpoint=/tmp zroot/tmp
 # zfs set mountpoint=/usr zroot/usr
 # zfs set mountpoint=/var zroot/var

so if ROOT is set to /
then tmp, usr and var all appear under ROOT, is that right?


*5.* There seems to be lot of variation on how the system directories are
mounted under ZFS. In the above wiki

geli+Root on ZFS installation

2013-09-20 Thread yudi v
Hi,

I managed to install with geli+root on ZFS setup but have a few
questions.  Most of the instructions just list commands but offer very
little explanation.
I adapted the instructions in
https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE  to suit my needs.

Here's the process I used for the test on a VM:

2 GB RAM
two HDDs 8 GB each mirrored - three partitions

for boot code 128 KB
for /boot 2 GB
for the rest of the system and encrypted

no key file for encrypted partitions, only passphrase
using 9.1-RELEASE
there will be no swap or handling of 4k drives, just to keep it as simple
as possible.

*Create the basic three partitions:*


gpart destroy -F da0
gpart destroy -F da1
gpart create -s gpt da0
gpart create -s gpt da1
gpart add -s 128 -t freebsd-boot da0
gpart add -s 128 -t freebsd-boot da1
gpart add -s 2G -t freebsd-zfs da0
gpart add -s 2G -t freebsd-zfs da1
gpart add -t freebsd-zfs da0
gpart add -t freebsd-zfs da1

*Write boot code to both disks:*

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1

*Load necessary modules:*

kldload zfs
kldload geom_eli
*
Encrypt the disks with only a passphrase:*

geli init -b -s 4096 /dev/da0p3
geli init -b -s 4096 /dev/da1p3

geli attach /dev/da0p3
geli attach /dev/da1p3

*Creating ZFS datasets:*

zpool create bootdir mirror /dev/da0p2 /dev/da1p2
zpool set bootfs=bootdir bootdir

zpool create -R /mnt -O canmount=off tank mirror /dev/da0p3.eli
/dev/da1p3.eli
zfs create -o mountpoint=/tank/ROOT
zfs set mountpoint=/mnt/bootdirbootdir
zfs mount bootdir

*Then exit out of the shell and go back to bsdinstall. Install as normal
and then get back to the shell after bsdinstall finishes ( do not reboot
yet).*

Once in the newly installed system:

mount -t devfs devfs /dev   ( to use ZFS commands in the new environment)

*Add the necessary variables/settings:*

echo ‘zfs_enable=”YES”‘  /etc/rc.conf
echo ‘vfs.root.mountfrom=”zfs:tank/ROOT”‘   /boot/loader.conf
echo ‘zfs_load=”YES”‘  /boot/loader.conf
echo ‘geom_eli_load=”YES”‘  /boot/loader.conf

*Then create a zpool cache file:*

 zpool set cachefile=/boot/zfs/zpool.cache tank.

*Then move the boot folder to the second partition under the bootdir
dataset:*

mv boot bootdir/
*
Then set the final mount points:*

zfs set mountpoint=legacy tank
zfs set mountpoint=/bootdir bootdir

*then reboot.*
It should boot fine into the new system.

-  My questions:  -

*1.*   Almost all the guides  I came across, do not install to the root
dataset, they only seem to use it to derive/mount other
datasets/filesystems.
One of the reasons is to user boot environments, what are the other
possible reasons for doing this?



*2*.   Is it necessary to create a symbolic link to the /boot dir? Again
one of the howtos on the web had this step (
https://www.dan.me.uk/blog/2012/05/06/full-disk-encryption-with-zfs-root-for-freebsd-9-x/
).

ln -fs bootdir/boot

*3*.   This below option is where I had most trouble. This definitely needs
to be present when using geli+ZFS, if it's only ZFS, then I think the
bootfs flag suffices. Can someone with more knowledge of this please shed
some light on when this entry is needed.

vfs.root.mountfrom=”zfs:tank/ROOT”

*4.* In the wiki link above, what is the purpose of:

# zfs set mountpoint=/  zroot/ROOT
# zfs set mountpoint=/zroot zroot

I cannot understand the logic behind the second command.
Does that mean zroot  will display under / (root of the filesystem)?  and
Why?

looking at the rest of the commands:

# zfs set mountpoint=/tmp zroot/tmp
 # zfs set mountpoint=/usr zroot/usr
 # zfs set mountpoint=/var zroot/var

so if ROOT is set to /
then tmp, usr and var all appear under ROOT, is that right?


*5.* There seems to be lot of variation on how the system directories are
mounted under ZFS. In the above wiki link, there seems to be separate
filesystems created under the root dataset for usr, var, tmp, usr/home 
  What's the logic? Are there any general guidelines/best practice
instructions?



Thank you.
Yudi
___
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


Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread uki
Hi,

I want to install freebsd9 (stable) on zfs root, unfortunately my bios
is unable to recognize GPT discs.
I'm using MBR disc, with BSD slice (on mbr index 4) containing
freebsd-zfs filesystem.

I've no idea how to make it bootable, I've tried using:

  zpool export sys
  dd if=/boot/zfsboot of=/dev/ada0s4 count=1
  dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024
  zpool import sys


When I select F4 (slice with zfs) whilst booting the computer just turns off.
How do I make it boot? Do I need freebsd-boot slice?

I have set bootfs property on pool, and added vfs.root.mountfrom to loader.conf.


Cheers,
Łukasz Gruner
___
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: Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread David Demelier
There are a lot of example in gpart(8) man page. You should use it

I think you should do something like

gpart bootcode -b /boot/pmbr ada0
gpart bootcode -p /boot/gptzfsboot -i 1 ada0

(The second assume that you have a freebsd-boot as first index in ada0)

Cheers,



2013/2/22 uki uka...@gmail.com

 Hi,

 I want to install freebsd9 (stable) on zfs root, unfortunately my bios
 is unable to recognize GPT discs.
 I'm using MBR disc, with BSD slice (on mbr index 4) containing
 freebsd-zfs filesystem.

 I've no idea how to make it bootable, I've tried using:

   zpool export sys
   dd if=/boot/zfsboot of=/dev/ada0s4 count=1
   dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024
   zpool import sys


 When I select F4 (slice with zfs) whilst booting the computer just turns
 off.
 How do I make it boot? Do I need freebsd-boot slice?

 I have set bootfs property on pool, and added vfs.root.mountfrom to
 loader.conf.


 Cheers,
 Łukasz Gruner
 ___
 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




-- 
Demelier David
___
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: Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread David Demelier
Sorry didn't read that you have a MBR slice instead of GPT

then you should take a look at that one
https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition


2013/2/22 David Demelier demelier.da...@gmail.com

 There are a lot of example in gpart(8) man page. You should use it

 I think you should do something like

 gpart bootcode -b /boot/pmbr ada0
 gpart bootcode -p /boot/gptzfsboot -i 1 ada0

 (The second assume that you have a freebsd-boot as first index in ada0)

 Cheers,



 2013/2/22 uki uka...@gmail.com

 Hi,

 I want to install freebsd9 (stable) on zfs root, unfortunately my bios
 is unable to recognize GPT discs.
 I'm using MBR disc, with BSD slice (on mbr index 4) containing
 freebsd-zfs filesystem.

 I've no idea how to make it bootable, I've tried using:

   zpool export sys
   dd if=/boot/zfsboot of=/dev/ada0s4 count=1
   dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024
   zpool import sys


 When I select F4 (slice with zfs) whilst booting the computer just turns
 off.
 How do I make it boot? Do I need freebsd-boot slice?

 I have set bootfs property on pool, and added vfs.root.mountfrom to
 loader.conf.


 Cheers,
 Łukasz Gruner
 ___
 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




 --
 Demelier David




-- 
Demelier David
___
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: Root on zfs (stable9) - how to make it bootable

2013-02-22 Thread uki
2013/2/22 David Demelier demelier.da...@gmail.com:
 Sorry didn't read that you have a MBR slice instead of GPT

 then you should take a look at that one
 https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition

I have used that one, unfortunately I was unable to boot.
___
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: ROOT on ZFS with MBR partitions

2011-02-27 Thread Gautham Ganapathy
On Sun, Feb 27, 2011 at 12:45 AM, Daniel Staal dst...@usa.net wrote:
 --As of February 27, 2011 12:26:04 AM +, Slawomir Wojtczak is alleged to
 have said:

 ... but none of them seems to work, after installation it hangs at boot
 like that: http://ompldr.org/vN2tscQ

 --As for the rest, it is mine.

 Hmm.  Interesting.  I'm having the same result when trying the 'root on ZFS,
 boot from UFS' guide here:
 http://wiki.freebsd.org/RootOnZFS/UFSBoot

 Anything interesting happening during your install?  I have an error late in
 the process (During 'Step 3.1') with this command:
 Fixit# mv boot bootdir/

 It gives me an error saying that /bin/cp can't found/executed.  (I've been
 trying to work around using `bin/cp -pRP boot bootdir/`.  Note the lack of
 the leading slash.)

 I had tried several of the other installs from
 http://wiki.freebsd.org/RootOnZFS successfully, but I don't think I'd
 tried the MBR install.

 Daniel T. Staal



I had the same problem. Today, I tried using the PCBSD dvd to install
FreeBSD on ZFS (with /boot on UFS). It kept giving errors just before
completion. However, some comments I found while googling about that
problem mentioned that the installation seemed to have completed,
which seems to be the case. Both FreeBSD and FreeDOS are now installed
on the same drive (in a VM, I'll try this on real h/w next). Still not
sure what caused the error during installation though.

Regards
Gautham Ganapathy
___
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


ROOT on ZFS with MBR partitions

2011-02-26 Thread Slawomir Wojtczak
Hi,

I have tried these guides:
http://wiki.freebsd.org/RootOnZFS/ZFSBootSlice
http://wiki.freebsd.org/RootOnZFS/ZFSBootPartition

... but none of them seems to work, after installation it hangs at boot like 
that:
http://ompldr.org/vN2tscQ

I am using these guides with 8.2-RELEASE amd64 version.

I know that there is way to do this on GPT partitions, but I need MBR ones ...

Any help appreciated,
vermaden
___
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: ROOT on ZFS with MBR partitions

2011-02-26 Thread Daniel Staal
--As of February 27, 2011 12:26:04 AM +, Slawomir Wojtczak is alleged 
to have said:



... but none of them seems to work, after installation it hangs at boot
like that: http://ompldr.org/vN2tscQ


--As for the rest, it is mine.

Hmm.  Interesting.  I'm having the same result when trying the 'root on 
ZFS, boot from UFS' guide here:

http://wiki.freebsd.org/RootOnZFS/UFSBoot

Anything interesting happening during your install?  I have an error late 
in the process (During 'Step 3.1') with this command:

Fixit# mv boot bootdir/

It gives me an error saying that /bin/cp can't found/executed.  (I've been 
trying to work around using `bin/cp -pRP boot bootdir/`.  Note the lack of 
the leading slash.)


I had tried several of the other installs from 
http://wiki.freebsd.org/RootOnZFS successfully, but I don't think I'd 
tried the MBR install.


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
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: ROOT on ZFS with MBR partitions

2011-02-26 Thread Slawomir Wojtczak
 Anything interesting happening during your install?

I would say no, everything seems smooth until I try to boot 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: ROOT on ZFS with MBR partitions

2011-02-26 Thread Carl Chave
How long are you waiting?  What are you booting from?

On Sat, Feb 26, 2011 at 7:54 PM, Slawomir Wojtczak verma...@gmx.com wrote:

  Anything interesting happening during your install?

 I would say no, everything seems smooth until I try to boot 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

___
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


Root on ZFS

2010-03-04 Thread Matthew Law
I am following this wiki page to move to zfs root:

http://wiki.freebsd.org/ZFSOnRoot

I got to this section:

Create bootdir directory where the boot file system will be mounted:

# mkdir /tank/bootdir
# ln -s bootdir/boot /tank/boot

I am confused about the symlink line - what is 'bootdir' ?

Thanks,

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

2010-03-04 Thread Craig Butler

On 04/03/2010 11:53, Matthew Law wrote:

I am following this wiki page to move to zfs root:

http://wiki.freebsd.org/ZFSOnRoot

I got to this section:

Create bootdir directory where the boot file system will be mounted:

# mkdir /tank/bootdir
# ln -s bootdir/boot /tank/boot

I am confused about the symlink line - what is 'bootdir' ?

Thanks,

___
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
   


Hi Matt

bootdir is where the ufs boot partition gets mounted on further down in 
the instructions...  The symbolic link is to keep everything in order when;

* upgrading or installing a new kernel
* updating any of the boot configs.

Regards

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

2010-03-04 Thread Matthew Law

On Thu, March 4, 2010 3:44 pm, Randal L. Schwartz wrote:
 Matthew == Matthew Law m...@webcontracts.co.uk writes:

 Matthew I am following this wiki page to move to zfs root:
 Matthew http://wiki.freebsd.org/ZFSOnRoot

 If you're running RELEASE-8 or later, I've gotten this to work just fine:

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

Thanks, guys.

Yes, I am on 8-RELEASE.  I was really looking to create a 3-disk raidz or
raidz2 volume with 1 hot spare.  I happened across this page:

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

and started to follow that.

 Currently live on two slices at arpnetworks.com with that.

 The trickiest part is that Arp installs an existing system on the disk,
 and the instructions there don't tell how to remove it. :(

 I can't remember the workaround, but someone in IRC told me.
 (gpart destroy didn't work, because it said already in use)

I ran into this and figured out I need to remove each slice first.  But it
did take a little head scratching.

I installed a minimal OS from a USB stick onto a single SATA drive.  After
testing it was installed and running OK, I rebooted and chose the fixit
option from sysinstall and followed the above guide.

I've got to this part:

7. 'Create ZFS Pool zroot'

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

The zpool create command fails because I don't have '/dev/gpt' - I take it
I haven't actually installed with gpt in the first place?  Can I go back
and do that and what's the advantage of gpt?

Finally, I had problems with the SAS card in this box, which is a bog
standard LSI SAS8041E.  I can install OK, but on rebooting it can't find
the root slice, panics and drops me into mountroot.  Where I get stuck.

Any help much appreciated,

Matt.


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

2010-03-04 Thread Randal L. Schwartz
 Matthew == Matthew Law m...@webcontracts.co.uk writes:

Matthew I am following this wiki page to move to zfs root:
Matthew http://wiki.freebsd.org/ZFSOnRoot

If you're running RELEASE-8 or later, I've gotten this to work just fine:

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

Currently live on two slices at arpnetworks.com with that.

The trickiest part is that Arp installs an existing system on the disk,
and the instructions there don't tell how to remove it. :(

I can't remember the workaround, but someone in IRC told me.
(gpart destroy didn't work, because it said already in use)

-- 
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.vox.com/ for Smalltalk and Seaside 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