corrupt or invalid GPT detected...

2010-04-14 Thread Дмитрий Бехтерев
Hello all!
I have error with GPT slice:
Apr 14 20:24:10 kernel: GEOM: ad6: corrupt or invalid GPT detected.
Apr 14 20:24:10 kernel: GEOM: ad6: GPT rejected -- may not be recoverable.

That messages I have got since I created GPT slice. So, I used following
actions (I have prepared disk for installing FreeBSD 7):
1) I divided disk on two slice - one for boot and next one for zfs pool (I
got ad0s1 and ad0s2)
2) I partitioned first slice on two partition (I got ad0s1a - for boot,
ad0s1b - swap)
3) I created GPT slice: gpart create -s GPT ad0s2
4) I added partition: gpart add -b 34 -s size -t freebsd-zfs -l datazfs
ad0s2 (so, I got ad0s2p1)
5) created GPT label: glabel label my_zfs ad0s2p1
6) Finally, I created zfs pool: zpool create tank label/my_zfs
And generally, I have got errors that I mentioned above. How can I fix that?
Thank all for answer.
___
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


Question about fstab

2010-04-14 Thread Дмитрий Бехтерев
Hello all!
I want use redundant scheme for booting my OS. For instance I have two ufs
slices and each of them keep /boot folder. For example, I want use fstab
like that:
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ad6s1b noneswapsw  0   0
/dev/ad6s1a /bootdirufs rw  1   1
/dev/ad4s1a/mnt/bootdirufs rw  1   1
That scheme will work unless one of ufs slices go out. After that I just
select bootable disk in BIOS and reboot. But during boot process I have got
error that one of slices can't be mounted. It's not convinient. How can I
get decision?
Thank all.
___
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


Create GMIRROR only one slice

2010-03-29 Thread Дмитрий Бехтерев
-- Пересланное сообщение --
От кого: Дмитрий Бехтерев dbehte...@gmail.com
Дата: 25 марта 2010 г. 19:03
Тема: Create GMIRROR only one slice
Кому: freebsd-g...@freebsd.org


Hello all!
I have problem with creating GMIRROR on select slice. So, I have two slice:
ls /dev | grep ad4
ad4
ad4s1
ad4s1a
ad4s1b
ad4s1c
ad4s2
ad4s2p1

fdisk /dev/ad4
...
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 29350692 (14331 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 29350755, size 595786590 (290911 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED

On first slice I created ufs slice and on second - ZFS pool (I build it with
glabel):
mount
/dev/ad4s1a on / (ufs, local)
devfs on /dev (devfs, local)
tank on /tank (zfs, local)
tank/usr on /usr (zfs, local)
...
tank/var on /var (zfs, local)

glabel list
Geom name: ad4s2p1
...

I want GMIRROR'ing /dev/ad4s1:
gmirror label -v -b round-robin gm0 /dev/ad4s1
but I get error Operation not permitted (although I set sysctl
kern.geom.debugflags=16).
MY OS: FreeBSD 7.3 Stable.
What should I do to do this?
Thanks all.
___
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