Seite 1 von 1

ntfs-restore-image

Verfasst: 19 Mai 2011, 10:21
von linuxer
Hallo Zusammen,

ich teste derzeit mit Opsi in einer virtuellen Umgebung und habe auch schon einiges am laufen.
Als Client dient eine VM. Diese wurde erst per netboot mit Windows XP Pro installiert und später davon
ein Image mit ntfs-write-image erstellt.
Dann hab ich die Festplatte mit wipedisk gelöscht um die ntfs-restore-image Funktion zu testen.

Nun versuche ich das erstelle Image wieder mit ntfs-restore-image aufzuspielen.
Der Client startet legt die Partition an und scannt dann wohl das Image.
Dabei bleibt er aber hängen. Ich hab ihn jetzt auch mal 24Std. in dem Zustand stehen gelassen aber selbst nach der Zeit
tut sich nix.

Log:

Code: Alles auswählen

[5] [May 18 13:13:56] Creating unix socket '/var/run/opsipxeconfd/opsipxeconfd.socket' (OpsiPXEConfd.py|60)
[5] [May 18 13:15:17] Application 'opsi linux bootimage 20110419' on client '10.176.1.214' did not send cookie (workers.py|157)
[5] [May 18 13:15:17] New session created (session.py|74)
[5] [May 18 13:15:17] Authorization request from host testxp.domain.corp@10.176.1.214 (application: opsi linux bootimage 20110419) (workers.py|182)
[4] [May 18 13:15:17] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|355)
[5] [May 18 13:15:17] -----> Executing: backend_getInterface() (JsonRpc.py|123)
[5] [May 18 13:15:17] -----> Executing: configState_getClientToDepotserver([], u'testxp.domain.corp', True, []) (JsonRpc.py|123)
[5] [May 18 13:15:17] -----> Executing: productOnDepot_getIdents(u'dict', {'depotId': u'testopsi.domain.corp', 'productType': u'NetbootProduct', 'productId': u'ntfs-restore-image'}) (JsonRpc.py|123)
[5] [May 18 13:15:17] -----> Executing: product_getObjects([], {'packageVersion': u'1', 'id': u'ntfs-restore-image', 'productVersion': u'4.0'}) (JsonRpc.py|123)
[5] [May 18 13:15:17] -----> Executing: backend_setOptions({u'addProductPropertyStateDefaults': True}) (JsonRpc.py|123)
[5] [May 18 13:15:18] -----> Executing: productPropertyState_getObjects([], {'objectId': u'testxp.domain.corp', 'productId': u'ntfs-restore-image'}) (JsonRpc.py|123)
[5] [May 18 13:15:18] -----> Executing: backend_setOptions({u'addConfigStateDefaults': True}) (JsonRpc.py|123)
[5] [May 18 13:15:18] -----> Executing: configState_getObjects([], {'objectId': u'testxp.domain.corp'}) (JsonRpc.py|123)
[5] [May 18 13:15:18] -----> Executing: user_getCredentials(u'pcpatch', u'testxp.domain.corp') (JsonRpc.py|123)
[5] [May 18 13:15:18] -----> Executing: host_getObjects([], {'type': u'OpsiDepotserver', 'id': u'testopsi.domain.corp'}) (JsonRpc.py|123)
[5] [May 18 13:15:18] -----> Executing: productOnClient_updateObjects(<ProductOnClient clientId 'testxp.domain.corp', productId 'ntfs-restore-image', installationStatus 'None', actionRequest 'None'>) (JsonRpc.py|123)
[5] [May 18 13:16:22] -----> Executing: productOnClient_updateObjects(<ProductOnClient clientId 'testxp.domain.corp', productId 'ntfs-restore-image', installationStatus 'unknown', actionRequest 'None'>) (JsonRpc.py|123)
[5] [May 18 13:16:23] -----> Executing: getDepotId(u'testxp.domain.corp') (JsonRpc.py|123)
[5] [May 18 13:16:23] -----> Executing: getDepot_hash(u'testopsi.domain.corp') (JsonRpc.py|123)
[5] [May 18 13:16:23] Application 'opsi jsonrpc module version 4.0.1' on client '10.176.1.214' did not send cookie (workers.py|157)
[5] [May 18 13:16:23] New session created (session.py|74)
[5] [May 18 13:16:23] Authorization request from host testxp.domain.corp@10.176.1.214 (application: opsi jsonrpc module version 4.0.1) (workers.py|182)
[4] [May 18 13:16:23] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|355)
[5] [May 18 13:16:23] -----> Executing: backend_getInterface() (JsonRpc.py|123)
[5] [May 18 13:16:23] -----> Executing: getPcpatchRSAPrivateKey() (JsonRpc.py|123)
[5] [May 18 13:16:24] -----> Executing: getHostRSAPublicKey() (JsonRpc.py|123)
[5] [May 18 13:16:24] -----> Executing: exit() (JsonRpc.py|123)
Hat wer eine Idee woran das liegen könnte?

Viele Grüße,
Dennis

Re: ntfs-restore-image

Verfasst: 20 Mai 2011, 15:45
von d.oertel
Hi,

hier wäre das Log des bootimages wichtig....

gruss
d.oertel

Re: ntfs-restore-image

Verfasst: 23 Mai 2011, 15:34
von linuxer
Leider hab ich kein Log vom bootimage. Weder in der GUI noch unter /var/log/opsi/*.
Einziges Log was geschrieben wird ist: /var/log/opsi/opsiconfd/testxp.domain.corp.log
Kann ich für das bootimage noch ein separates LogLevel einstellen?

Viele Grüße,
Dennis

Re: ntfs-restore-image

Verfasst: 23 Mai 2011, 16:23
von c.kampka
Hallo,

das linux Bootimage legt sein Log unter /tmp/log ab. Wenn es nicht zum Server übertragen wird, kann man es dort noch einsehen.

Viele Grüße,
Christian Kampka

Re: ntfs-restore-image

Verfasst: 24 Mai 2011, 07:31
von linuxer
Hab das Log gefunden und die letzte Zeile hat mir dann die Augen geöffnet :oops:

Code: Alles auswählen

[7] [Mai 24 05:32:44]  -->>> Calculating bitmap... Please wait... Target partition size(10734 MB) is smaller than source(21460 MB). Use option -C to disable size checking(Dangerous). (Posix.py|2123)
Dann werde ich mal ein neues Image erstellen...

Viele Dank für die Hilfe.