Re: gmirror per partition

2009-07-03 Thread Anton Shterenlikht
6 freebsd-ufs (12G) # What I want is to mirror the whole of the boot disk to da1, which is identical to da0, but following Marcel's advice, will apply gmirror per partition. So starting with efi partition: First I create GPT scheme on da1 # gpart create -s gpt da1 da1 created # gpart show

Re: gmirror per partition

2009-07-03 Thread Alban Hertroys
On Jul 3, 2009, at 12:12 PM, Anton Shterenlikht wrote: now to mirror root partition. My problem is that root is mounted and cannot (?) be unmounted, unlike /efi, on the live system. # gpart add -b 819234 -s 1048576 -t freebsd-ufs da1 da1p2 added # # gmirror label -vb round-robin root

SUCCESS: Re: gmirror per partition

2009-07-03 Thread Anton Shterenlikht
On Fri, Jul 03, 2009 at 01:18:28PM +0200, Alban Hertroys wrote: On Jul 3, 2009, at 12:12 PM, Anton Shterenlikht wrote: now to mirror root partition. My problem is that root is mounted and cannot (?) be unmounted, unlike /efi, on the live system. # gpart add -b 819234 -s 1048576

Re: gmirror per partition. Was: Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-07-02 Thread Anton Shterenlikht
On Wed, Jul 01, 2009 at 10:00:54PM +0200, Wojciech Puchar wrote: It's better to use gmirror per partition. Like this? # gmirror label -vb round-robin root /dev/da0p2 gmirror: Can't store metadata on /dev/da0p2: Operation not permitted. isn't that partition accessed by other process

Re: gmirror per partition. Was: Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-07-02 Thread Wojciech Puchar
# gmirror label -vb round-robin root /dev/da0p2 gmirror: Can't store metadata on /dev/da0p2: Operation not permitted. isn't that partition accessed by other process or mounted? should it not be mounted? yes it should not, no matter what architecture.

gmirror per partition. Was: Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-07-01 Thread Anton Shterenlikht
to use gmirror per partition. Like this? # gmirror label -vb round-robin root /dev/da0p2 gmirror: Can't store metadata on /dev/da0p2: Operation not permitted. # I've read some boot disk gmirror examples, e.g. http://people.freebsd.org/~rse/mirror however, all examples I've seen are for i386

Re: gmirror per partition. Was: Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-07-01 Thread Wojciech Puchar
It's better to use gmirror per partition. Like this? # gmirror label -vb round-robin root /dev/da0p2 gmirror: Can't store metadata on /dev/da0p2: Operation not permitted. isn't that partition accessed by other process or mounted? ___ freebsd