[Mondo-devel] Fwd: Restoring from Bootable USB can't find config file/archives

classic Classic list List threaded Threaded
7 messages Options
JP
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mondo-devel] Fwd: Restoring from Bootable USB can't find config file/archives

JP
Recreated USB stick
Rebooted PC and issued command - compare usb=/dev/sdc
The program booted up to the "I am thinking" prompt then said it couldn't find the archives do you want to pick another location?
I said yes and selected harddrive and then it asked me for the ISO prepend name which didn't make any sense so I copied the logs off and rebooted.

I have attached the logs.

Any words of wisdom as I am going an endless loop and I am sure it is a simple fix :-~

On Thu, Dec 29, 2016 at 11:07 AM, JP <[hidden email]> wrote:
Changed the command to:

compare usb=/dev/sdc

the system now executes the mondorestore command.

but now it can't find the archives.

Guidance much appreciated!



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel

logs-zip (38K) Download Attachment
JP
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mondo-devel] Fwd: Restoring from Bootable USB can't find config file/archives

JP
I created a boot USB and copied the Mondo ISO files to it using a modified version of this procedure: 


My customized procedure is:

dd if=/dev/zero of=/dev/sdc bs=1M count=10

fdisk /dev/sdc << EOF
n
p
1


t
b
a
1
w
EOF

mkdosfs -F 32 /dev/sdc1

mount /dev/sdc1 /mnt/usb

mount /mnt/backups/mondo-tools-server/Tools-Server_          /mnt/iso -o loop

rsync --progress -a /mnt/iso /mnt/usb    (cp -v -a /mnt/iso/* /mnt/usb)

dd if=/usr/share/syslinux/mbr.bin of=/dev/sdc
syslinux -s /dev/sdc1

umount /mnt/iso

umount /mnt/usb


The USB boots up fine and the archive files are where they should be under the archives directory on the USB.

The script that I used to create the Mondo iso is:

DATE=`date +%Y%m%d%H%M` # e.g 201307210400
SERVER="Tools-Server"
FILENAME=$SERVER"_"$DATE".iso";
BACKUPDIR="/mnt/backups/mondo-tools-server/";
EXCLUDEFILES="'|/var/log|/opt/splunk/var/lib/splunk/defaultdb/db|/mnt|'"
MAXSIZE="7375m"

/usr/sbin/mondoarchive -G -O -i -p $FILENAME -s $MAXSIZE -d $BACKUPDIR -I / -E "$EXCLUDEFILES" -T /tmp -9

I rebooted the PC and issued command

compare usb=/dev/sdc

The program boots up to the "I am thinking" prompt then said it couldn't find the archives do you want to pick another location?

I said yes and selected harddrive and then it asked me for the ISO prepend name which didn't make any sense so I copied the logs off and rebooted.

You can find the logs here: https://sabercathost.com/Os0/logs-zip

Any words of wisdom as I am going an endless loop and I am sure it is a simple fix :-~

On Thu, Dec 29, 2016 at 11:07 AM, JP <[hidden email]> wrote:
Changed the command to:

compare usb=/dev/sdc

the system now executes the mondorestore command.

but now it can't find the archives.

Guidance much appreciated!




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel

logs-zip (38K) Download Attachment
JP
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mondo-devel] Fwd: Restoring from Bootable USB can't find config file/archives

JP
Removing the attachement as it is now stored on the cloud :-)

I created a boot USB and copied the Mondo ISO files to it using a modified version of this procedure: 


My customized procedure is:

dd if=/dev/zero of=/dev/sdc bs=1M count=10

fdisk /dev/sdc << EOF
n
p
1


t
b
a
1
w
EOF

mkdosfs -F 32 /dev/sdc1

mount /dev/sdc1 /mnt/usb

mount /mnt/backups/mondo-tools-server/Tools-Server_          /mnt/iso -o loop

rsync --progress -a /mnt/iso /mnt/usb    (cp -v -a /mnt/iso/* /mnt/usb)

dd if=/usr/share/syslinux/mbr.bin of=/dev/sdc
syslinux -s /dev/sdc1

umount /mnt/iso

umount /mnt/usb


The USB boots up fine and the archive files are where they should be under the archives directory on the USB.

The script that I used to create the Mondo iso is:

DATE=`date +%Y%m%d%H%M` # e.g 201307210400
SERVER="Tools-Server"
FILENAME=$SERVER"_"$DATE".iso";
BACKUPDIR="/mnt/backups/mondo-tools-server/";
EXCLUDEFILES="'|/var/log|/opt/splunk/var/lib/splunk/defaultdb/db|/mnt|'"
MAXSIZE="7375m"

/usr/sbin/mondoarchive -G -O -i -p $FILENAME -s $MAXSIZE -d $BACKUPDIR -I / -E "$EXCLUDEFILES" -T /tmp -9

I rebooted the PC and issued command

compare usb=/dev/sdc

The program boots up to the "I am thinking" prompt then said it couldn't find the archives do you want to pick another location?

I said yes and selected harddrive and then it asked me for the ISO prepend name which didn't make any sense so I copied the logs off and rebooted.

You can find the logs here: https://sabercathost.com/Os0/logs-zip

Any words of wisdom as I am going an endless loop and I am sure it is a simple fix :-~

On Thu, Dec 29, 2016 at 11:07 AM, JP <[hidden email]> wrote:
Changed the command to:

compare usb=/dev/sdc

the system now executes the mondorestore command.

but now it can't find the archives.

Guidance much appreciated!





------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] Fwd: Restoring from Bootable USB can't find config file/archives

Bruno Cornec-4
In reply to this post by JP
JP said on Fri, Dec 30, 2016 at 08:03:09AM -0600:
>I said yes and selected harddrive and then it asked me for the ISO prepend
>name which didn't make any sense so I copied the logs off and rebooted.

It's not a harddrive, it's a USB device. They are not handled the same way. So select a USB key and that should behave differently and better in your case.

Bruno.
--
Open Source Profession, WW Linux Community Lead     http://www.hpintelco.net
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
FLOSS projects:    http://mondorescue.org         http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
JP
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] Fwd: Restoring from Bootable USB can't find config file/archives

JP
I tried it using interactive mode and selecting compare - when it failed-  I used the USB selection on then menu -

It failed again - I repeated it and failed again

shouldn't the command option "usb=/dev/sdc" have done this during the initial invocation of the program?

I noticed that the program said that it was mounting /dev/sdc1 to /mnt/cdrom - when I check /mnt/cdrom it is empty - could this be the problem?

On Sat, Dec 31, 2016 at 5:31 AM, Bruno Cornec <[hidden email]> wrote:
JP said on Fri, Dec 30, 2016 at 08:03:09AM -0600:
>I said yes and selected harddrive and then it asked me for the ISO prepend
>name which didn't make any sense so I copied the logs off and rebooted.

It's not a harddrive, it's a USB device. They are not handled the same way. So select a USB key and that should behave differently and better in your case.

Bruno.
--
Open Source Profession, WW Linux Community Lead     http://www.hpintelco.net
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
FLOSS projects:    http://mondorescue.org         http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
JP
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] Fwd: Restoring from Bootable USB can't find config file/archives

JP
This is the directory listing of my bootable USB stick that I created using: http://trac.mondorescue.org/wiki/FAQ#Q42HowtotransformamondoCDDVDintoamondoUSBdevice

 Directory of E:\

12/29/2016  05:58 AM    <DIR>          archives
12/29/2016  05:06 AM    <DIR>          images
12/29/2016  05:06 AM    <DIR>          syslinux
10/02/2014  09:05 PM    <DIR>          usr
12/29/2016  05:02 AM                 4 LAST-FILELIST-NUMBER
12/29/2016  05:02 AM                16 HOSTNAME
12/29/2016  05:58 AM             1,717 autorun
12/29/2016  05:06 AM        64,128,211 initrd.img
12/29/2016  05:06 AM         4,269,936 vmlinuz
12/30/2016  01:51 PM    <DIR>          logs
12/30/2016  07:56 AM            28,541 logs-zip
               6 File(s)     68,428,425 bytes
               5 Dir(s)   1,699,864,576 bytes free

From some of the messaging I see scroll by It seems like it is looking for an ISO not the actual files when using compare usb=/dev/sdc

Does this make sense?  

It is my understanding that the procedure I pulled from the FAQ link above created a bootable USB with all of the content to perform a restore using only this USB stick, is that correct?

Thanx alot!

On Sat, Dec 31, 2016 at 10:02 AM, JP <[hidden email]> wrote:
I tried it using interactive mode and selecting compare - when it failed-  I used the USB selection on then menu -

It failed again - I repeated it and failed again

shouldn't the command option "usb=/dev/sdc" have done this during the initial invocation of the program?

I noticed that the program said that it was mounting /dev/sdc1 to /mnt/cdrom - when I check /mnt/cdrom it is empty - could this be the problem?

On Sat, Dec 31, 2016 at 5:31 AM, Bruno Cornec <[hidden email]> wrote:
JP said on Fri, Dec 30, 2016 at 08:03:09AM -0600:
>I said yes and selected harddrive and then it asked me for the ISO prepend
>name which didn't make any sense so I copied the logs off and rebooted.

It's not a harddrive, it's a USB device. They are not handled the same way. So select a USB key and that should behave differently and better in your case.

Bruno.
--
Open Source Profession, WW Linux Community Lead     http://www.hpintelco.net
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
FLOSS projects:    http://mondorescue.org         http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
JP
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mondo-devel] Fwd: Restoring from Bootable USB can't find config file/archives

JP
I have uploaded the complete file list on this USB here: https://sabercathost.com/Ov2/usb-filelist.txt

On Sat, Dec 31, 2016 at 10:24 AM, JP <[hidden email]> wrote:
This is the directory listing of my bootable USB stick that I created using: http://trac.mondorescue.org/wiki/FAQ#Q42HowtotransformamondoCDDVDintoamondoUSBdevice

 Directory of E:\

12/29/2016  05:58 AM    <DIR>          archives
12/29/2016  05:06 AM    <DIR>          images
12/29/2016  05:06 AM    <DIR>          syslinux
10/02/2014  09:05 PM    <DIR>          usr
12/29/2016  05:02 AM                 4 LAST-FILELIST-NUMBER
12/29/2016  05:02 AM                16 HOSTNAME
12/29/2016  05:58 AM             1,717 autorun
12/29/2016  05:06 AM        64,128,211 initrd.img
12/29/2016  05:06 AM         4,269,936 vmlinuz
12/30/2016  01:51 PM    <DIR>          logs
12/30/2016  07:56 AM            28,541 logs-zip
               6 File(s)     68,428,425 bytes
               5 Dir(s)   1,699,864,576 bytes free

From some of the messaging I see scroll by It seems like it is looking for an ISO not the actual files when using compare usb=/dev/sdc

Does this make sense?  

It is my understanding that the procedure I pulled from the FAQ link above created a bootable USB with all of the content to perform a restore using only this USB stick, is that correct?

Thanx alot!

On Sat, Dec 31, 2016 at 10:02 AM, JP <[hidden email]> wrote:
I tried it using interactive mode and selecting compare - when it failed-  I used the USB selection on then menu -

It failed again - I repeated it and failed again

shouldn't the command option "usb=/dev/sdc" have done this during the initial invocation of the program?

I noticed that the program said that it was mounting /dev/sdc1 to /mnt/cdrom - when I check /mnt/cdrom it is empty - could this be the problem?

On Sat, Dec 31, 2016 at 5:31 AM, Bruno Cornec <[hidden email]> wrote:
JP said on Fri, Dec 30, 2016 at 08:03:09AM -0600:
>I said yes and selected harddrive and then it asked me for the ISO prepend
>name which didn't make any sense so I copied the logs off and rebooted.

It's not a harddrive, it's a USB device. They are not handled the same way. So select a USB key and that should behave differently and better in your case.

Bruno.
--
Open Source Profession, WW Linux Community Lead     http://www.hpintelco.net
HPE EMEA EG FLOSS Technology Strategist http://www.hpe.com/engage/opensource
FLOSS projects:    http://mondorescue.org         http://project-builder.org
Musique ancienne?   http://www.musique-ancienne.org  http://www.medieval.org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
Loading...