Re: Problem with ZFS version 15
After reinitialized my gpt scheme, i can successfully import my zpool. After this there was a little bit trouble with my zpool.cache and booting from my pool, but now it works. Thank you to all for your help, Michael Am 20.07.2010 13:30, schrieb Michael Gusek: -Urspr?ngliche Nachricht- Von: Andrey V. Elsukov bu7c...@yandex.ru Gesendet: 20.07.2010 12:47:49 An: Michael Gusek michael.gu...@web.de Betreff: Re: Problem with ZFS version 15 On 20.07.2010 13:51, Michael Gusek wrote: and apply a new bootloader: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad0|ad1. After this, i've lost my gpt scheme ! gpart show ad0 says gpart: No such geom: ad0. How can i recover my gpt on ad0 and ad1 ? I'm running a zfs mirror on ad0 and ad1. It is very strange why this command broke your GPT. Actually incorrect PMBR can prevent probes for GEOM_PART_GPT. Yes, this is very strange. I don't have such a backup, only the whole disk for now. Everything else what can i do ? What if i initialize the gpt header: gpart create -s GPT ad0 ? Do i lost my data ? GPT headers and tables will be initialized. After that you should add all partitions with exactly same offsets and sizes. In this case your data will not be touched. Ok, i will try it. I did a backup of the first 16GB of my disk, because i don't know the exact size of my swap partition, but this is my part. Thank you, Michael -- WBR, Andrey V. Elsukov ___ GRATIS für alle WEB.DE Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
On Mon, Jul 19, 2010 at 08:31:11PM -0500, Sam Fourman Jr. wrote: On Mon, Jul 19, 2010 at 7:37 PM, Alexander Best arun...@freebsd.org wrote: how about adding a periodic script to /etc/periodic/daily to backup the information? the idea was raised a long time ago already, but was abandoned [1]. cheers. alex I think that is a good idea, if you have a script to do that I would test it ok here's a dirty dirty patch. what i did was take the etc/periodic/daily/210.backup-aliases script and do some hacking. this is the work of 2 minutes or so. that's why the script is pretty crappy and probably plain wrong in a few cases. however somebody else who has more time might be able to improve it. :) changes to etc/defaults/periodic.conf and etc/periodic/daily/Makefile (or where you want the script to go) need to be hacked in by hand. cheers. alex -- Sam Fourman Jr. Fourman Networks http://www.fourmannetworks.com --- /dev/null 2010-07-22 20:33:01.0 +0200 +++ etc/periodic/daily/220.backup-geom 2010-07-22 20:09:13.0 +0200 @@ -0,0 +1,49 @@ +#!/bin/sh +# +# $FreeBSD:$ +# + +# If there is a global system configuration file, suck it in. +# +if [ -r /etc/defaults/periodic.conf ] +then +. /etc/defaults/periodic.conf +source_periodic_confs +fi + +case $daily_backup_gpart_enable in +[Yy][Ee][Ss]) + temp=/tmp/gpart_temp.bak + gpart show $temp + if [ ! -s $temp ] + then + echo nothing to backup + rm $temp || rc=2 + else + bak=/var/backups + rc=0 + + echo + echo Backing up geom partition information: + + if [ ! -f $bak/gpart.bak ] + then + echo no $bak/gpart.bak + mv $temp $bak/gpart.bak || rc=3 + + elif ! cmp -s $bak/gpart.bak $temp + then + [ $rc -lt 1 ] rc=1 + echo geom partition layout has been altered: + diff -u $bak/gpart.bak $temp + mv $bak/gpart.bak $bak/gpart.bak2 + mv $temp $bak/gpart.bak || rc=3 + else + echo geom partition layout hasn't been altered. skipping backup. + fi + fi;; + +*) rc=0;; +esac + +exit $rc ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
-Ursprüngliche Nachricht- Von: Xin LI delp...@delphij.net Gesendet: 19.07.2010 23:20:28 An: Michael Gusek michael.gu...@web.de Betreff: Re: Problem with ZFS version 15 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 2010/07/17 06:40, Michael Gusek wrote: Hi, i updated my 8.1-PRERELEASE to ZFS version 15. The patch http://people.freebsd.org/~mm/patches/zfs/v15/head-v15-v3.patch applies fine and after reboot i upgrade my pool successfully to version 15. Now, after a new reboot the bootloader can't boot from version 15, it supports only 13. Well, i build a bootable usb pen with 8.1-PRERELEASE and ZFS version 15, boot from it and apply a new bootloader: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad0|ad1. After this, i've lost my gpt scheme ! gpart show ad0 says gpart: No such geom: ad0. How can i recover my gpt on ad0 and ad1 ? I'm running a zfs mirror on ad0 and ad1. If you have previous saved gpart information (e.g. start/end) then you can safely destroy and re-create the GPT partitions without destroying the data. Note that you may need to backup and dd the first and last sector of your hard drive before proceeding. I don't have such a backup, only the whole disk for now. Everything else what can i do ? What if i initialize the gpt header: gpart create -s GPT ad0 ? Do i lost my data ? Micha Cheers, Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMRMGcAAoJEATO+BI/yjfBbVUIAMIKRxUKMRpEdDJkPKqE3hZJ sjCUm8XveedJHVz2SupvpsQizo/hKDkgksfzeqeRd8JA1g4jerORLCNYilpcwMfc 2AiyjgvpKbsYmT27WcG4Grnl3eE4jFF+7Wm8B8WtuzE7L+YMo+QcEYiSPzL8P8hJ 1+RwLas/4nVkaDWWBW9osanLYT1v62zIN0ik1bnZypY3kYuprfJN3G7ZCKVX7ffD 4AZr7bvO57mcQOXON9gkmOMfewt89lNJiMYf5yQiGX+BL/i3pYUGSj2kt1Yc0su5 y5NyC42wiUNVEn15pVsIS5AUJVHs574pZBH2+DX5DfvDZMgxCkcUxgKq08QVnjE= =qQgN -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ GRATIS für alle WEB.DE Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
On 20.07.2010 13:51, Michael Gusek wrote: and apply a new bootloader: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad0|ad1. After this, i've lost my gpt scheme ! gpart show ad0 says gpart: No such geom: ad0. How can i recover my gpt on ad0 and ad1 ? I'm running a zfs mirror on ad0 and ad1. It is very strange why this command broke your GPT. Actually incorrect PMBR can prevent probes for GEOM_PART_GPT. I don't have such a backup, only the whole disk for now. Everything else what can i do ? What if i initialize the gpt header: gpart create -s GPT ad0 ? Do i lost my data ? GPT headers and tables will be initialized. After that you should add all partitions with exactly same offsets and sizes. In this case your data will not be touched. -- WBR, Andrey V. Elsukov signature.asc Description: OpenPGP digital signature
Re: Problem with ZFS version 15
-Urspr?ngliche Nachricht- Von: Andrey V. Elsukov bu7c...@yandex.ru Gesendet: 20.07.2010 12:47:49 An: Michael Gusek michael.gu...@web.de Betreff: Re: Problem with ZFS version 15 On 20.07.2010 13:51, Michael Gusek wrote: and apply a new bootloader: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad0|ad1. After this, i've lost my gpt scheme ! gpart show ad0 says gpart: No such geom: ad0. How can i recover my gpt on ad0 and ad1 ? I'm running a zfs mirror on ad0 and ad1. It is very strange why this command broke your GPT. Actually incorrect PMBR can prevent probes for GEOM_PART_GPT. Yes, this is very strange. I don't have such a backup, only the whole disk for now. Everything else what can i do ? What if i initialize the gpt header: gpart create -s GPT ad0 ? Do i lost my data ? GPT headers and tables will be initialized. After that you should add all partitions with exactly same offsets and sizes. In this case your data will not be touched. Ok, i will try it. I did a backup of the first 16GB of my disk, because i don't know the exact size of my swap partition, but this is my part. Thank you, Michael -- WBR, Andrey V. Elsukov ___ GRATIS für alle WEB.DE Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de signature.asc Description: OpenPGP digital signature
Re: Problem with ZFS version 15
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, Michael, On 2010/07/20 02:51, Michael Gusek wrote: I don't have such a backup, only the whole disk for now. Everything else what can i do ? What if i initialize the gpt header: gpart create -s GPT ad0 ? Do i lost my data ? No it won't touch your data (assuming you were using GPT rather than a whole disk directly in the past) as long as you create/destroy GPT partition tables/scheme on the disk. Only the partition table itself gets changed which won't modify your on-disk data. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMRdNRAAoJEATO+BI/yjfBkHEH/2io9HddIfAQ8bP1foNABqsU rI43+CjUeHlCNfXyxpfQC/u8d2UX/dsvpnoWLOTLNLaHcCALIeQ1YQW2D1Pn5zLg 15TLMJLmIkNzrwGZV1qHRuDGI0JqR4cco00A/9VqTNTESJ0Ys/nuOQz3lGDo4Df0 J2smW/q05w/+D3ZZABq4OxCoEImyWiOFvlcwky2f8vuvh5rWDSFZmuH4J0Oivj0g Ok3KOEfFYrEfWiQGDTp+1GTztXsOxo+LZ5zz1o7WsuLSoVIr/M0oTYNXiy28QxeA ovd/jDKqN/YTfbGNMBc/wUYBnVYr9nTlKU7Wo+zPhXrQWCBQzfwxT2/7FNHCEgw= =55Jr -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 2010/07/17 06:40, Michael Gusek wrote: Hi, i updated my 8.1-PRERELEASE to ZFS version 15. The patch http://people.freebsd.org/~mm/patches/zfs/v15/head-v15-v3.patch applies fine and after reboot i upgrade my pool successfully to version 15. Now, after a new reboot the bootloader can't boot from version 15, it supports only 13. Well, i build a bootable usb pen with 8.1-PRERELEASE and ZFS version 15, boot from it and apply a new bootloader: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad0|ad1. After this, i've lost my gpt scheme ! gpart show ad0 says gpart: No such geom: ad0. How can i recover my gpt on ad0 and ad1 ? I'm running a zfs mirror on ad0 and ad1. If you have previous saved gpart information (e.g. start/end) then you can safely destroy and re-create the GPT partitions without destroying the data. Note that you may need to backup and dd the first and last sector of your hard drive before proceeding. Cheers, Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMRMGcAAoJEATO+BI/yjfBbVUIAMIKRxUKMRpEdDJkPKqE3hZJ sjCUm8XveedJHVz2SupvpsQizo/hKDkgksfzeqeRd8JA1g4jerORLCNYilpcwMfc 2AiyjgvpKbsYmT27WcG4Grnl3eE4jFF+7Wm8B8WtuzE7L+YMo+QcEYiSPzL8P8hJ 1+RwLas/4nVkaDWWBW9osanLYT1v62zIN0ik1bnZypY3kYuprfJN3G7ZCKVX7ffD 4AZr7bvO57mcQOXON9gkmOMfewt89lNJiMYf5yQiGX+BL/i3pYUGSj2kt1Yc0su5 y5NyC42wiUNVEn15pVsIS5AUJVHs574pZBH2+DX5DfvDZMgxCkcUxgKq08QVnjE= =qQgN -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
If you have previous saved gpart information (e.g. start/end) then you can safely destroy and re-create the GPT partitions without destroying the data. Note that you may need to backup and dd the first and last sector of your hard drive before proceeding. Could someone post a example of how to correctly backup a gpart partition information -- Sam Fourman Jr. Fourman Networks http://www.fourmannetworks.com ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2010/07/19 14:37, Sam Fourman Jr. wrote: If you have previous saved gpart information (e.g. start/end) then you can safely destroy and re-create the GPT partitions without destroying the data. Note that you may need to backup and dd the first and last sector of your hard drive before proceeding. Could someone post a example of how to correctly backup a gpart partition information For now it would be to backup the first 34 and last 33 sectors of a given disk. Another way would be to copy what gpart show says and restore it manually. Cheers, - -- Xin LI delp...@delphij.nethttp://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMRNC6AAoJEATO+BI/yjfBEjcIAIj3e/n7DUBfXhaUKEOSrP2q fvJlAKiQoDyRpzuovT/9/c9jCUxOOgpW43S7EVQ244uzgVEGB2Su5jXOjX6dU+rZ ba0JwH60ANMB6RAsJFSk1cT6xMmQ4TMfSYCwwlx9p6Fbv2ejdd5gKE+zvbc20fwN HIojqdF9xIW2XT3gjvAngn69c/0EtHoJVG1gydlO3H3te6iDVM6CY5yHV71WJrEk cFDD6x65VYmC2GWYYbeokf2ud8nry1QjzxzBJRd9T0eHXPWweJBC7lOsIOSW5QYa 1VsyhFE8s1xPwtYTAYFUw3IhBzJdLt36n+YAEQEbrX20/G5+Qn2oo/bw0kIYrFg= =SsvG -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
how about adding a periodic script to /etc/periodic/daily to backup the information? the idea was raised a long time ago already, but was abandoned [1]. cheers. alex [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/86388 On Mon, Jul 19, 2010 at 03:24:58PM -0700, Xin LI wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2010/07/19 14:37, Sam Fourman Jr. wrote: If you have previous saved gpart information (e.g. start/end) then you can safely destroy and re-create the GPT partitions without destroying the data. Note that you may need to backup and dd the first and last sector of your hard drive before proceeding. Could someone post a example of how to correctly backup a gpart partition information For now it would be to backup the first 34 and last 33 sectors of a given disk. Another way would be to copy what gpart show says and restore it manually. Cheers, - -- Xin LI delp...@delphij.net http://www.delphij.net/ FreeBSD - The Power to Serve!Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMRNC6AAoJEATO+BI/yjfBEjcIAIj3e/n7DUBfXhaUKEOSrP2q fvJlAKiQoDyRpzuovT/9/c9jCUxOOgpW43S7EVQ244uzgVEGB2Su5jXOjX6dU+rZ ba0JwH60ANMB6RAsJFSk1cT6xMmQ4TMfSYCwwlx9p6Fbv2ejdd5gKE+zvbc20fwN HIojqdF9xIW2XT3gjvAngn69c/0EtHoJVG1gydlO3H3te6iDVM6CY5yHV71WJrEk cFDD6x65VYmC2GWYYbeokf2ud8nry1QjzxzBJRd9T0eHXPWweJBC7lOsIOSW5QYa 1VsyhFE8s1xPwtYTAYFUw3IhBzJdLt36n+YAEQEbrX20/G5+Qn2oo/bw0kIYrFg= =SsvG -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
On Mon, Jul 19, 2010 at 7:37 PM, Alexander Best arun...@freebsd.org wrote: how about adding a periodic script to /etc/periodic/daily to backup the information? the idea was raised a long time ago already, but was abandoned [1]. cheers. alex I think that is a good idea, if you have a script to do that I would test it -- Sam Fourman Jr. Fourman Networks http://www.fourmannetworks.com ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Problem with ZFS version 15
On Mon, Jul 19, 2010 at 08:31:11PM -0500, Sam Fourman Jr. wrote: On Mon, Jul 19, 2010 at 7:37 PM, Alexander Best arun...@freebsd.org wrote: how about adding a periodic script to /etc/periodic/daily to backup the information? the idea was raised a long time ago already, but was abandoned [1]. cheers. alex I think that is a good idea, if you have a script to do that I would test it unfortunately i don't. ;) i think however that for such a script using gpart to dump a fs's layout would be suited much better than dumping the primary and backup GPT table directly (using `dd` e.g.). cheers. alex -- Sam Fourman Jr. Fourman Networks http://www.fourmannetworks.com ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Problem with ZFS version 15
Hi, i updated my 8.1-PRERELEASE to ZFS version 15. The patch http://people.freebsd.org/~mm/patches/zfs/v15/head-v15-v3.patch applies fine and after reboot i upgrade my pool successfully to version 15. Now, after a new reboot the bootloader can't boot from version 15, it supports only 13. Well, i build a bootable usb pen with 8.1-PRERELEASE and ZFS version 15, boot from it and apply a new bootloader: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad0|ad1. After this, i've lost my gpt scheme ! gpart show ad0 says gpart: No such geom: ad0. How can i recover my gpt on ad0 and ad1 ? I'm running a zfs mirror on ad0 and ad1. Michael ___ Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org