fonction data_partition_preserve ne marche plus avec version 4.0.7

Ce forum est destiné au support entre utilisateurs de logiciel OPSI
Antworten
fraisse
Beiträge: 22
Registriert: 03 Feb 2014, 09:58

fonction data_partition_preserve ne marche plus avec version 4.0.7

Beitrag von fraisse »

Bonjour,
Suite à la mise à jour vers la version 4.0.7 d'OPSI, l'option data_partition_preserve ne fonctionne pas avec win7 et win10
Si une machine a été installé avec une partition sa re installation avec l'option always ou if possible renvoie l'erreur : Cannot create partition 0
On est obliger de sauvegarder cette partition puis de faire l'installation en re créant cette partition puis restaurer les données

fichier log :
(4679) [6] [janv. 05 11:53:43] Creating partition on '/dev/sda': number: 0, type 'primary', filesystem 'ntfs', start: 2048 sec, end: 238055423 sec. (Posix.py|2270)
(4680) [2] [janv. 05 11:53:44] Traceback: (Logger.py|753)
(4681) [2] [janv. 05 11:53:44] File "/usr/local/bin/master.py", line 1461, in <module>
(4682) execfile(actionScript)
(4683) (Logger.py|753)
(4684) [2] [janv. 05 11:53:44] File "/tmp/setup.py", line 573, in <module>
(4685) createPartitionEx("system", systemPartitionNumber, systemPartitionLabel, 0, systemPartitionSizeM, gptAutoAppend = True, boot = False, gptAttribute = "63" , useGpt = useGpt, diskDevice = disk.device, fileSystem = "ntfs", gptFileSystem="0700")
(4686) (Logger.py|753)
(4687) [2] [janv. 05 11:53:44] File "/tmp/opsisetuplib.py", line 204, in createPartitionEx
(4688) disk.createPartition(start = "%dM" % startM, end = "%s" % endstr, fs = fileSystem, boot = boot, number = partitionNumber)
(4689) (Logger.py|753)
(4690) [2] [janv. 05 11:53:44] File "/usr/lib/python2.7/dist-packages/OPSI/System/Posix.py", line 2273, in createPartition
(4691) raise Exception(u'Cannot create partition %s' % number)
(4692) (Logger.py|753)
(4693) [2] [janv. 05 11:53:44] ==>>> Cannot create partition 0 (master.py|1509)
Quelqu'un a t'il eu ce probleme ?
Merci
romi1990
Beiträge: 9
Registriert: 03 Dez 2016, 15:05

opsi-client-agent

Beitrag von romi1990 »

Salut á tous,

J ai installé mon server opsi sur une machine virtuelle et en suite j ai installé sur une autre machine physique une machine virtuelle avec un system d exploitation Windows XP(cette machine est mon client) et sur cette derniere lorsque j executes le Skript opsi-client-agent / service_setup.cmd (il s agit 4.2.1.1 Utilisation du service setup). Tout se passe bien dans l execution du Skript mais á la fin je me rends comptes que OPSI-CLIENT-AGENT n a pas été installé dans cette 2eme machine qui est mon client.
Quelles Solutions pour resourdre ce Problem svp ???
Merci d avance.
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1515
Registriert: 10 Jun 2015, 12:19

Re: fonction data_partition_preserve ne marche plus avec version 4.0.7

Beitrag von m.radtke »

fraisse hat geschrieben:Bonjour,
Suite à la mise à jour vers la version 4.0.7 d'OPSI, l'option data_partition_preserve ne fonctionne pas avec win7 et win10
Si une machine a été installé avec une partition sa re installation avec l'option always ou if possible renvoie l'erreur : Cannot create partition 0
On est obliger de sauvegarder cette partition puis de faire l'installation en re créant cette partition puis restaurer les données

fichier log :
(4679) [6] [janv. 05 11:53:43] Creating partition on '/dev/sda': number: 0, type 'primary', filesystem 'ntfs', start: 2048 sec, end: 238055423 sec. (Posix.py|2270)
(4680) [2] [janv. 05 11:53:44] Traceback: (Logger.py|753)
(4681) [2] [janv. 05 11:53:44] File "/usr/local/bin/master.py", line 1461, in <module>
(4682) execfile(actionScript)
(4683) (Logger.py|753)
(4684) [2] [janv. 05 11:53:44] File "/tmp/setup.py", line 573, in <module>
(4685) createPartitionEx("system", systemPartitionNumber, systemPartitionLabel, 0, systemPartitionSizeM, gptAutoAppend = True, boot = False, gptAttribute = "63" , useGpt = useGpt, diskDevice = disk.device, fileSystem = "ntfs", gptFileSystem="0700")
(4686) (Logger.py|753)
(4687) [2] [janv. 05 11:53:44] File "/tmp/opsisetuplib.py", line 204, in createPartitionEx
(4688) disk.createPartition(start = "%dM" % startM, end = "%s" % endstr, fs = fileSystem, boot = boot, number = partitionNumber)
(4689) (Logger.py|753)
(4690) [2] [janv. 05 11:53:44] File "/usr/lib/python2.7/dist-packages/OPSI/System/Posix.py", line 2273, in createPartition
(4691) raise Exception(u'Cannot create partition %s' % number)
(4692) (Logger.py|753)
(4693) [2] [janv. 05 11:53:44] ==>>> Cannot create partition 0 (master.py|1509)
Quelqu'un a t'il eu ce probleme ?
Merci
Excusez-moi pour la réponse tardive
Avec le opsi-linux-bootimage de
http://download.opensuse.org/repositori ... 0-testing/
le property 'data_partition_preserve' devrait fonctionner.

Excusez mon français

Salut
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Antworten