rjcb
Salut!
Je cherche a sauvegarder des backup via le réseau . Je possède linux rescuecd pour les sauvegardes.
POur le réseau il faut le serveur deamon partimaged.
Si qq1 a des infos merci
sika1970
rjcb
Salut!
Merci pour tes liens.
J'ai avancé un peu et suivi ceci:
http://linux.crdp.ac-caen.fr/Docs/partimage/x92.htm
pb lors au 5.5
/usr/bin/partimaged -D
il m'affiche erreur de segmentation.
Commetn faire ?
Merci
Pikachu_2014
Salut,
tu utilises la version statique ?
nouvo09
rjcb
oui c la version statique
Pikachu_2014
Bizarre... Je n'ai utilisé un temps que partimage, mais ni l'un ni l'autre n'ont pondu devant moi un «segmentation fault».
ÉDIT : je viens de (re)tester à l'instant (en particulier un «partimaged -D»), keine Probleme
???
grosminet
je viens de le tester
fonctionne sans blème
par contre le voit les partitions dans un volume logique
grosminet
je precise il voit le disque mais pas la partition
Partition to save/restore │
│ hda1 ext3fs 101.94 MiB ▒ │
│ hda2 -unknown- 9.32 GiB
alors que
df -h
Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/mapper/VolGroup00-LogVol00
2,9G 311M 2,4G 12% /
/dev/hda1 99M 15M 80M 15% /boot
tmpfs 156M 0 156M 0% /dev/shm
/dev/mapper/VolGroup00-LogVol02
3,3G 2,5G 677M 79% /usr
/dev/mapper/VolGroup00-LogVol03
2,4G 176M 2,1G 8% /var
grosminet
Pour les volumes logiques, la reponse du forum par un script (script adapter au besoin avec prudence)
These are the scripts I use to backup and restore a system using raid1+LVM, this script assumes a LOT of things (like nothing will ever blow up, as there is currently no error checking, future versions will have this) see comments next to commands for more information.
(createimage.sh)
#!/bin/bash
#I drop everything into /mnt/custom, then cp into the isoroot directory, as when you re-run the script the isoroot directory is overwritten
mount /dev/hdb1 /mnt/custom
#I put everything on a seperate drive, so I dont have to regenerate images every time I want to build an iso
sysrescuecd-custom extract
#standard step
sysrescuecd-custom cloop 300 20000
#standard step
vgchange -ay #activate LVM
vgcfgbackup --file /mnt/custom/lvmcfg.backup
#backup LVM information
cp -a /mnt/custom/lvmcfg.backup /mnt/custom/customcd/isoroot/
#copy LVM information into place
partimage -d -b -z1 -M save /dev/system/root /mnt/custom/root.img
#image root FS
partimage -d -b -M -z0 save /dev/system/var /mnt/custom/var.img
#image var FS
partimage -d -b -M -z0 save /dev/system/tmp /mnt/custom/tmp.img
#image tmp FS
partimage -d -b -z0 save /dev/md0 /mnt/custom/boot.img
#image boot "partition"
cp -a /mnt/custom/*.img.000 /mnt/custom/customcd/isoroot/
#move images into place
cp /mnt/custom/autorun /mnt/custom/customcd/isoroot
#move autorun into place
cp -a /mnt/custom/backup-sda.sf /mnt/custom/customcd/isoroot/
#move sfdisk backups into place
cp -a /mnt/custom/backup-sdb.sf /mnt/custom/customcd/isoroot/
cp -a /mnt/custom/sdambr.img /mnt/custom/customcd/isoroot/
#move mbr backups into place
cp -a /mnt/custom/sdbmbr.img /mnt/custom/customcd/isoroot/
chmod 755 /mnt/custom/customcd/isoroot/autorun
#set 755 on autorun, so it will run
sysresccd-custom setkmap us
#set default keymap so no one is prompted
sysresccd-custom isogen myclone #build iso
cd /
#get out of /mnt/custom so umount wont fail
umount /mnt/custom
#umount /mnt/custom
sync
#sync data to disks so no info is lost
exit 0
#exit 0 regardless, I will add error-checking in the future
(autorun)
#!/bin/bash
dd if=/mnt/cdrom/sdambr.img of=/dev/sda
#move MBR's back into place
dd if=/mnt/cdrom/sdbmbr.img of=/dev/sdb
sfdisk /dev/sda < /mnt/cdrom/backup-sda.sf
#move sfdisk info back into place, this has 'extended partition information' that may or may not be needed...
sfdisk /dev/sdb < /mnt/cdrom/backup-sdb.sf
/etc/init.d/udev force-reload #reload udev so that the partitions will be created in /dev
mknod /dev/md/1 b 9 1
#create md 1 device so I can work with raid
ln -s /dev/md/1 /dev/md1
#symlink md1, out of habit
mdadm -C -R /dev/md0 -c 4096 -l1 -n2 /dev/sda1 /dev/sdb1
#create md0/md1 in raid 1, with 2 devices, without question
mdadm -C -R /dev/md1 -c 4096 -l1 -n2 /dev/sda2 /dev/sdb2
pvcreate --uuid ASDFASDFASDFASDFASDF /dev/md1
#no, this isnt the real UUID... you'll use the UUID of your physical volume, you can find this from pvscan IIRC... this sets up the PV so that vgcfgrestore can do its thing
vgcfgrestore --file /mnt/cdrom/lvmcfg.backup system
#restore LVM information
vgchange -ay
#activate LVM
partimage -e -b restore /dev/md0 /mnt/cdrom/boot.img.000 #restore images
partimage -e -b restore /dev/system/root /mnt/cdrom/boot.img.000
partimage -e -b restore /dev/system/var /mnt/cdrom/var.img.000
partimage -e -b restore /dev/system/tmp /mnt/cdrom/tmp.img.000
mkswap /dev/system/swap #make swap, swap
vgchange -an
#disable LVM
sync
#sync data do disk
echo "dont forget to let your RAID sync!"
exit 0
#exit 0, regardless
There may be typo's, logical errors, and general idiocy in these scripts...I can NOT be held liable.
USE THESE AT YOUR OWN RISK! DATA CAN, MAY, AND LIKELY WILL BE LOST IF YOU DONT KNOW WHAT YOUR DOING!!!!!
This is distributed under the free beer license. Do as you will with it, copy it, take credit for it, but if you like it buy me a beer.
rjcb
Salut!
J'ai réussi a installer partimaged server via rpm pr fc3.
Donc dans cette partie, serveur:
J'ai un dossier /backup en 775
je fais donc cd /backup (dedans il y a fc5.000 en 775 )
puis partimage -L (pour nologin)
Sur le poste client, je me met sur la partition a restaurer, puis retaurer image puis se connecter ua serveur.
je fais ceci et sur le serveur je vois bien qu'un poste client se connect et cela met:
0 finished 192.168.1.5:54596
Et sur le poste client après l'écran ou l'on met l'adresse pour le serveur, j'ai un écran bleu avec
zsh: killed partimage
donc problème mais ou ?
Merci
rjcb
Personne à eu ce problème ?
grosminet
Es ru sur qu'il se connecte
le port est il ouvert sur ton firewall
ta partition est elle sans activité
personnellement le test est impossible
j'ai que tes volumes logiques
Pikachu_2014
'Têt ben sur le forum de partimage :
http://www.partimage.org/forums/viewforum.php?f=2&sid=ebec803123b9a04573e985538f745315
J'espère que tu trouveras une réponse (euh... si tu trouves, tu n'oublieras pas de poster, ça pourra servir 😉).