Contenu | Rechercher | Menus

Annonce

Ubuntu 16.04 LTS
Commandez vos DVD et clés USB Ubuntu-fr !

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

#1 Le 16/05/2017, à 17:54

michael10fr

problem lors du clonage d'un server avec clonezilla

Bonjour

j'ai deja réussi une premiere fois à faire une image avec clonezilla mais la j'y arrive plus du tout..
Je vous explique ce que je veux faire.

je doit cloner l'image disque d'un server qui sur le disque /dev/sda qui à une capacité de 1.8Tera
contenant les partition suivante:

/dev/sda1 > correspond à 32GIGA SWAP
/dev/sda2> data du reste du disque

Il existe aussi un deuxieme disque sur le serveur mais je l'utilise pas qui est /dev/sdb

Pour créer l'image je suis chez un hebergeur chez hetzner , j'ai pas accés au server phisyquement
je suis obliger de bouter en mode rescue
ou j'ai os minimum .
j'installe donc clonezilla :

Dans rescue mode


apt-get install clonezilla

cd /home
mkdir partimag
clonezilla
device-image
samba_server 
IP : server de backup ou je pose mon image >>monserver.your-backup.de
Domain in the samba server:  your-backup.de
Account : moncompte >monusers

The Directory..: /images >> effacer images  et changer par  /backup car l’hébergeur c'est son nom de repertoire
which security mode do you want ? : je choisie >>  [b]ntlm Use NTLM password hashing (older , weak mode, for some NAS)[/b]
OK
OK
Password for monusers@// monserver.your-backup.de/backup: password
Resultat connexion ok super

binfmt_misc                         0     0     0    - /proc/sys/fs/binfmt_misc
// monserver.your-backup.de/backup  4.9T  4.0T  995G  81% /home/partimag
*****************************************************.
Press "Enter" to continue......
Beginner mode > OK
Save partition to image
OK
Nom de image
pbx5-img
OK

et voila sauf que quand je restaure je fait la même opération inverse

pareil qu'en haut , je me connecte a mon stockage avec samba

puis je choisie

Beginner mode > OK
restoredisk OK
puis je coche le disque sda à restaurer

puis voila comment çà fini

Press "Enter" to continue......
done!
Setting the TERM as xterm
Starting /usr/sbin/ocs-sr at 2017-05-16 17:27:33 CEST...
Choose the mode for ocs-sr
*****************************************************.
Clonezilla image dir: /home/partimag
*****************************************************.
Shutting down the Logical Volume Manager
  No volume groups found
Finished Shutting down the Logical Volume Manager
Excluding busy partition or disk...
Selected device [sda] found!
The selected devices: sda
*****************************************************.
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 2000 -fsck-src-part -p choose savedisk pbx7-4 sda
This command is also saved as this file name for later use if necessary: /tmp/ocs-pbx7-4-2017-05-16-17-28
*****************************************************.
Press "Enter" to continue...
setterm: terminal xterm does not support --blank
Activating the partition info in /proc... done!
Selected device [sda] found!
The selected devices: sda
Searching for data partition(s)...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sda1 sda2
Collecting info... done!
Searching for swap partition(s)...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sda1 sda2
Collecting info... done!
The data partition to be saved:   sda1 sda2
The swap partition to be saved:
setterm: terminal xterm does not support --blank
Activating the partition info in /proc... done!
Selected device [sda1] found!
Selected device [sda2] found!
The selected devices: sda1 sda2
Getting /dev/sda1 info...
Getting /dev/sda2 info...
*****************************************************.
The following step is to save the hard disk/partition(s) on this machine as an image:
*****************************************************.
Machine: Z10PA-U8 Series
sda (2000GB_HGST_HUS724020AL_HGST_HUS724020ALA640_PN2161P5G2K6PX)
sda1 (32G(In_HGST_HUS724020AL)_HGST_HUS724020ALA640_PN2161P5G2K6PX)
sda2 (1.8T_ext4(In_HGST_HUS724020AL)_HGST_HUS724020ALA640_PN2161P5G2K6PX)
*****************************************************.
-> "/home/partimag/pbx7-4".
Are you sure you want to continue? (y/n) y
OK, let's do it!!
Shutting down the Logical Volume Manager
  No volume groups found
Finished Shutting down the Logical Volume Manager
Saving block devices info in /home/partimag/pbx7-4/blkdev.list...
Saving block devices attributes in /home/partimag/pbx7-4/blkid.list...
Checking the integrity of partition table in the disk /dev/sda...
Reading the partition table for /dev/sda...RETVAL=0
*****************************************************.
The first partition of disk /dev/sda starts at 2048.
Saving the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by                                                                                                          :
dd if=/dev/sda of=/home/partimag/pbx7-4/sda-hidden-data-after-mbr skip=1 bs=512 count=2047
2047+0 records in
2047+0 records out
1048064 bytes (1.0 MB) copied, 0.0271776 s, 38.6 MB/s
*****************************************************.
done!
Saving the MBR data for sda...
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00081875 s, 625 kB/s
*****************************************************.
*****************************************************.
Not dev_ assigned in function fsck_partition!
Press "Enter" to continue......

je sais pas ce que j'ai fait pour que cela fonctionne pas??
si quelqu'un peu m’éclairer car la j'ai recommencer au moins 20 fois
rien à faire??

oui j'oublier je comprend pas pourquoi clonezilla utilise partclone et des fois dd??
c'est clonezilla qu'il doit utiliser alors la je comprend pas??

c'est comme ci norton ghost utiliser copy de windows??
merci de votre aide

Dernière modification par michael10fr (Le 17/05/2017, à 08:58)

Hors ligne

#2 Le 16/05/2017, à 19:06

cqfd93

Re : problem lors du clonage d'un server avec clonezilla

Bonjour,

Ajout des balises au message #1 :

  • Cliquer sur  le lien « Modifier » en bas à droite du message

  • Sélectionner le texte

  • Cliquer sur le <> de l'éditeur de message
    1471986854.png

En ligne

#3 Le 17/05/2017, à 08:00

michael10fr

Re : problem lors du clonage d'un server avec clonezilla

up personne pour aider?

Hors ligne

#4 Le 17/05/2017, à 08:19

cqfd93

Re : problem lors du clonage d'un server avec clonezilla

Modération

Je répète…

Ajout des balises au message #1 :

  • Cliquer sur  le lien « Modifier » en bas à droite du message

  • Sélectionner le texte

  • Cliquer sur le <> de l'éditeur de message
    1471986854.png

En ligne

#5 Le 17/05/2017, à 08:22

michael10fr

Re : problem lors du clonage d'un server avec clonezilla

c'est bon la?

Hors ligne

#6 Le 17/05/2017, à 08:37

cqfd93

Re : problem lors du clonage d'un server avec clonezilla

Nettement mieux mais je pense que tu peux encore en mettre pour certains passages de la première moitié du message.

En ligne

#7 Le 17/05/2017, à 08:59

michael10fr

Re : problem lors du clonage d'un server avec clonezilla

et voila mais c'est pas pour çà que j'ai eu une reponse..lol
personne me donne une soluce...:(

Hors ligne

#8 Le 17/05/2017, à 13:41

michael10fr

Re : problem lors du clonage d'un server avec clonezilla

çà marche plus du tout ,

voila ce que je fait quand je creer l'image



Press "Enter" to continue......
done!
Setting the TERM as xterm
Starting /usr/sbin/ocs-sr at 2017-05-17 10:23:19 CEST...
Choose the mode for ocs-sr
*****************************************************.
Clonezilla image dir: /home/partimag
*****************************************************.
Excluding busy partition or disk...
Selected device [sda] found!
The selected devices: sda
*****************************************************.
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 2000 -p choose savedisk pbx5-bis2 sda
This command is also saved as this file name for later use if necessary: /tmp/oc                                                                             s-pbx5-bis2-2017-05-17-10-23
*****************************************************.
Press "Enter" to continue...
setterm: terminal xterm does not support --blank
Activating the partition info in /proc... done!
Selected device [sda] found!
The selected devices: sda
Searching for data partition(s)...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sda1 sda2
Collecting info... done!
Searching for swap partition(s)...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sda1 sda2
Collecting info... done!
The data partition to be saved:   sda1 sda2
The swap partition to be saved:
setterm: terminal xterm does not support --blank
Activating the partition info in /proc... done!
Selected device [sda1] found!
Selected device [sda2] found!
The selected devices: sda1 sda2
Getting /dev/sda1 info...
Getting /dev/sda2 info...
*****************************************************.
The following step is to save the hard disk/partition(s) on this machine as an i                                                                             mage:
*****************************************************.
Machine: Z10PA-U8 Series
sda (2000GB_WDC_WD2000FYYZ-0_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
sda1 (32G(In_WDC_WD2000FYYZ-0)_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
sda2 (1.8T_ext4(In_WDC_WD2000FYYZ-0)_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
*****************************************************.
-> "/home/partimag/pbx5-bis2".
Are you sure you want to continue? (y/n) y
OK, let's do it!!
Saving block devices info in /home/partimag/pbx5-bis2/blkdev.list...
Saving block devices attributes in /home/partimag/pbx5-bis2/blkid.list...
Checking the integrity of partition table in the disk /dev/sda...
Reading the partition table for /dev/sda...RETVAL=0
*****************************************************.
The first partition of disk /dev/sda starts at 2048.
Saving the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partitio                                                                             n, which might be useful for some recovery tool, by:
dd if=/dev/sda of=/home/partimag/pbx5-bis2/sda-hidden-data-after-mbr skip=1 bs=5                                                                             12 count=2047
2047+0 records in
2047+0 records out
1048064 bytes (1.0 MB) copied, 0.026239 s, 39.9 MB/s
*****************************************************.
done!
Saving the MBR data for sda...
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000809556 s, 632 kB/s
*****************************************************.
*****************************************************.
Starting saving /dev/sda1 as /home/partimag/pbx5-bis2/sda1.XXX...
/dev/sda1 filesystem: Unknown or unsupported.
*****************************************************.
Checking the disk space...
This file system is not supported by smart programs, e.g. partclone, partimage o                                                                             r ntfsclone, or you force to use dd to save the file system:
dd will save and restore all the blocks in the harddrive, no matter if the block                                                                              is used or not.
THIS WILL BE VERY INEFFICIENT AND MIGHT TAKE VERY LONG TIME...
Use this method to save the image instead of partclone, partimage or ntfsclone:                                                                              partclone.dd + pigz
Image file will be split with size limit 2000 MB.
If this action fails or hangs after several minutes, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.dd -z 10485760 -N -L /var/log/partclone.log -s /dev/sda                                                                             1 --output - | pigz -c --fast -b 1024 -p 16 -R | split -b 2000m - /home/partimag                                                                             /pbx5-bis2/sda1.dd-img. 2> /tmp/split_error.XaubvU
Cloned successfully.
Checking the disk space...
>>> Time elapsed: 467.93 secs (~ 7.798 mins)
*****************************************************.
Finished saving /dev/sda1 as /home/partimag/pbx5-bis2/sda1.dd-img
*****************************************************.
*****************************************************.
*****************************************************.
Starting saving /dev/sda2 as /home/partimag/pbx5-bis2/sda2.XXX...
/dev/sda2 filesystem: ext4.
*****************************************************.
Checking the disk space...
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 2000 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /de                                                                             v/sda2 --output - | pigz -c --fast -b 1024 -p 16 -R | split -b 2000m - /home/par                                                                             timag/pbx5-bis2/sda2.ext4-ptcl-img.gz. 2> /tmp/split_error.JIlGlJ
Cloned successfully.
Checking the disk space...
>>> Time elapsed: 484.47 secs (~ 8.074 mins)
*****************************************************.
Finished saving /dev/sda2 as /home/partimag/pbx5-bis2/sda2.ext4-ptcl-img.gz
*****************************************************.
Saving DMI info...
Saving PCI info...
Saving package info...
End of saveparts job for image /home/partimag/pbx5-bis2.
*****************************************************.
This image was saved successfully: pbx5-bis2
End of savedisk job for image pbx5-bis2.
Start checking the saved image pbx5-bis2 if restorable...
Setting the TERM as xterm
The image to be checked: pbx5-bis2
This is a whole disk image, saved from harddrive: sda
The partition to be checked: sda1 sda2
setterm: terminal xterm does not support --blank
*****************************************************.
Checking the partition table in the image "pbx5-bis2"...
Partition table file for disk was found: sda
*****************************************************.
Checking the swap partition info in the image "pbx5-bis2"...
Finding swap partition(s) in MBR table /home/partimag/pbx5-bis2/sda-pt.sf...
*****************************************************.
Checking the MBR in the image "pbx5-bis2"...
MBR file for this disk was found: sda
*****************************************************.
Checking the partition sda1 in the image "pbx5-bis2"...
Image was saved by dd. No need to check the file system integrity: sda1
*****************************************************.
Checking the partition sda2 in the image "pbx5-bis2"...
*****************************************************.
Checked successfully.
This partition in the image is restorable: sda2
*****************************************************.
All the images of partition or LV devices in this image were checked and they ar                                                                             e restorable: pbx5-bis2
Summary of image checking:
==========================
Partition table file for disk was found: sda
MBR file for this disk was found: sda
Image was saved by dd. No need to check the file system integrity: sda1
This partition in the image is restorable: sda2
All the images of partition or LV devices in this image were checked and they ar                                                                             e restorable: pbx5-bis2
==========================
*****************************************************
*****************************************************
Checking if udevd rules have to be restored...
This program is not started by Clonezilla server, so skip notifying it the job i                                                                             s done.
Finished!
Now syncing - flush filesystem buffers...

Voila la restauration mais qui échoue?????


Press "Enter" to continue......
done!
Setting the TERM as xterm
Starting /usr/sbin/ocs-sr at 2017-05-17 10:44:40 CEST...
Choose the mode for ocs-sr
*****************************************************.
Clonezilla image dir: /home/partimag
*****************************************************.
Searching for images............
Excluding busy partition or disk...
*****************************************************.
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -g auto -e1 auto -e2 -c -r -j2 -p choose restoredisk pbx5-bis2                                                                              sda
This command is also saved as this file name for later use if necessary: /tmp/oc                                                                             s-pbx5-bis2-2017-05-17-10-45
*****************************************************.
Press "Enter" to continue...
setterm: terminal xterm does not support --blank
Activating the partition info in /proc... done!
Getting /dev/sda1 info...
Getting /dev/sda2 info...
*****************************************************.
The following step is to restore an image to the hard disk/partition(s) on this                                                                              machine: "/home/partimag/pbx5-bis2" -> "sda sda1 sda2"
The image was created at: 2017-0517-1042
WARNING!!! WARNING!!! WARNING!!!
WARNING. THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! AL                                                                             L EXISTING DATA WILL BE LOST:
*****************************************************.
Machine: Z10PA-U8 Series
sda (2000GB_WDC_WD2000FYYZ-0_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
sda1 (32G(In_WDC_WD2000FYYZ-0)_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
sda2 (1.8T_ext4(In_WDC_WD2000FYYZ-0)_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
*****************************************************.
Are you sure you want to continue? (y/n) y
OK, let's do it!!
This program is not started by clonezilla server.
*****************************************************.
Let me ask you again.
The following step is to restore an image to the hard disk/partition(s) on this                                                                              machine: "/home/partimag/pbx5-bis2" -> "sda sda1 sda2"
The image was created at: 2017-0517-1042
WARNING!!! WARNING!!! WARNING!!!
WARNING. THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! AL                                                                             L EXISTING DATA WILL BE LOST:
*****************************************************.
Machine: Z10PA-U8 Series
sda (2000GB_WDC_WD2000FYYZ-0_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
sda1 (32G(In_WDC_WD2000FYYZ-0)_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
sda2 (1.8T_ext4(In_WDC_WD2000FYYZ-0)_WDC_WD2000FYYZ-01UL1B2_WD-WMC1P0F5HN9F)
*****************************************************.
Are you sure you want to continue? (y/n) y
OK, let's do it!!
Creating partition in /dev/sda...
Trying to clean the MBR and GPT partition table on the destination disk first: /                                                                             dev/sda
Informing kernel the partition table has changed...
Informing kernel the file system has been changed...... done!
Error: /dev/sda: unrecognised disk label
*****************************************************.
Wed May 17 10:45:28 CEST 2017
Writing the partition table...
No partition table exists in target disk /dev/sda, try to initialize one so that                                                                              we can get the disk size by parted... Running: parted -s /dev/sda mklabel msdos
done!
Running sfdisk --force /dev/sda < /home/partimag/pbx5-bis2/sda-pt.sf
sfdisk: Checking that no-one is using this disk right now ...
sfdisk: OK
sfdisk: Warning: partition 1 does not end at a cylinder boundary
sfdisk: Warning: partition 2 does not start at a cylinder boundary
sfdisk: Warning: partition 2 does not end at a cylinder boundary
sfdisk: Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.

Disk /dev/sda: 243201 cylinders, 255 heads, 63 sectors/track
Old situation:
Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1          0       -       0          0    0  Empty
/dev/sda2          0       -       0          0    0  Empty
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty
New situation:
Units: sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sda1          2048  67110911   67108864  82  Linux swap / Solaris
/dev/sda2      67110912 3907027119 3839916208  83  Linux
/dev/sda3             0         -          0   0  Empty
/dev/sda4             0         -          0   0  Empty
Successfully wrote the new partition table

sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1                                                                             )
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
Re-reading the partition table ...

This was done by sfdisk --force /dev/sda < /home/partimag/pbx5-bis2/sda-pt.sf
Checking the integrity of partition table in the disk /dev/sda...
*****************************************************.
  No volume groups found
Informing kernel the partition table has changed...
Informing kernel the file system has been changed...... done!
*****************************************************.
The first partition of disk /dev/sda starts at 2048.
Restoring the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st parti                                                                             tion, which might be useful for some recovery tool, by:
dd if=/home/partimag/pbx5-bis2/sda-hidden-data-after-mbr of=/dev/sda seek=1 bs=5                                                                             12 count=2047
2047+0 records in
2047+0 records out
1048064 bytes (1.0 MB) copied, 0.0206108 s, 50.9 MB/s
*****************************************************.
*****************************************************.
Restoring partition /dev/sda1...
*****************************************************.
*****************************************************.
Clean filesystem header in device /dev/sda1...
*****************************************************.
The image was saved from dd. Use dd to restore the image instead of smart progra                                                                             ms, e.g. partimage, ntfsclone or partclone...
dd will save and restore all the blocks in the harddrive, no matter if the block                                                                              is used or not.
THIS WILL BE VERY INEFFICIENT AND MIGHT TAKE VERY LONG TIME...
*****************************************************.
Starting unicast restoring image pbx5-bis2 to /dev/sda1...
If this action fails or hangs after several minutes, check:
* Is the saved image /home/partimag/pbx5-bis2/sda1.dd-img.* corrupted ?
*****************************************************.
Partclone fail, please check /var/log/partclone.log !
Failed to use partclone program to save or restore an image!
Press "Enter" to continue......

Ya personne pour aideR??

Dernière modification par michael10fr (Le 17/05/2017, à 13:41)

Hors ligne