gmirror gm0

2010-08-10 Thread Dick Hoogendijk
How can I totally remove a created gmirror (gm0) I know of the option gmirror forget gm0 but does that make the mirror disappear? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions

Re: gmirror gm0

2010-08-10 Thread ill...@gmail.com
On 10 August 2010 17:33, Dick Hoogendijk d...@nagual.nl wrote:  How can I totally remove a created gmirror (gm0) I know of the option gmirror forget gm0 but does that make the mirror disappear? # gmirror clear gm0 perhaps? http://www.freebsd.org/cgi/man.cgi?query=gmirrorsektion=8apropos

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 or

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
On Thu, Jun 25, 2009 at 09:41:13AM -0700, Marcel Moolenaar wrote: On Jun 25, 2009, at 4:02 AM, Anton Shterenlikht wrote: dev_taste(DEV,mirror/gm0) g_part_taste(PART,mirror/gm0) GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid. GEOM: mirror/gm0: using the primary only --

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? ___

Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-30 Thread Lorenzo Perone
Hi, On 28.06.2009, at 10:49, Pawel Jakub Dawidek wrote: I for one never put mirror on already partitioned disk. Although it is sometimes safe to use the last sector. Gjournal already looks for UFS and if UFS is in place, it figures out if the last sector is in use - it isn't if

Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-29 Thread Anton Shterenlikht
On Thu, Jun 25, 2009 at 09:41:13AM -0700, Marcel Moolenaar wrote: On Jun 25, 2009, at 4:02 AM, Anton Shterenlikht wrote: dev_taste(DEV,mirror/gm0) g_part_taste(PART,mirror/gm0) GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid. GEOM: mirror/gm0: using the primary only --

Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-28 Thread Pawel Jakub Dawidek
On Sat, Jun 27, 2009 at 06:20:49PM -0700, Marcel Moolenaar wrote: Using the last sector is not only flawed because it creates a race condition, it's flawed in the assumption that you can always make a geom part of a mirror by storing meta-data on the geom without causing corruption. This whole

Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-28 Thread Ivan Voras
2009/6/28 Marcel Moolenaar xcl...@mac.com: Using the last sector is not only flawed because it creates a race condition, it's flawed in the assumption that you can always make a geom part of a mirror by storing meta-data on the geom without causing corruption. This whole idea of using the

Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-28 Thread Aisaka Taiga
Ivan Voras wrote: Yes, it would be cleaner to implement but it would also make the mirrored devices unbootable. But maybe the class of users needing the functionality is smaller now. Most dedicated server providers can't afford to use hardware RAID systems because that would drastically

Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-27 Thread Marcel Moolenaar
On Jun 27, 2009, at 4:15 AM, Ivan Voras wrote: Marcel Moolenaar wrote: On Jun 25, 2009, at 4:02 AM, Anton Shterenlikht wrote: dev_taste(DEV,mirror/gm0) g_part_taste(PART,mirror/gm0) GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid. GEOM: mirror/gm0: using the primary only --

gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-25 Thread Anton Shterenlikht
FreeBSD 8.0-CURRENT-200906 ia64, fresh installation Following the handbook, section 19.1 RAID1 - mirroring, I'm trying to use gmirror with 2 identical scsi disks: da0 at mpt0 bus 0 target 0 lun 0 da0: SEAGATE ST318452LC 2213 Fixed Direct Access SCSI-3 device da0: 160.000MB/s transfers

Re: gmirror gm0 destroyed on shutdown; GPT corrupt

2009-06-25 Thread Marcel Moolenaar
On Jun 25, 2009, at 4:02 AM, Anton Shterenlikht wrote: dev_taste(DEV,mirror/gm0) g_part_taste(PART,mirror/gm0) GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid. GEOM: mirror/gm0: using the primary only -- recovery suggested.