2 and more discs include ssd

mlebeda
Beiträge: 42
Registriert: 27 Sep 2012, 15:43

2 and more discs include ssd

Beitrag von mlebeda »

Hello,
I want to ask if OPSI can recognize SSD drive, preferably a priority to set the system partition on it. So far, it occurred to me only in the "setup.py" sort array of disks: getHarddisks disks = () to put the SSD in the first place, the rest of the disk behind it. But I fear that if I modify the file, after furter OPSI updating I lose my edits which could be a big problem.
Any suggestions what is the best way to solve this?

Regards
Martin Lebeda
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: 2 and more discs include ssd

Beitrag von d.oertel »

Hi,

without looking at the code i supose that 'disks' have out of the box no information if a disk is SSD or not.
So I think the first thing we need is a command line command which tells us this disk is a SSD or not.
If there is such a command and is part of our bootimage it would be not too much work.
If not we need at first a new bootimage (with this command) and perhaps an extension of the disk structure in the opsi python library.

regards
d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


mlebeda
Beiträge: 42
Registriert: 27 Sep 2012, 15:43

Re: 2 and more discs include ssd

Beitrag von mlebeda »

Hello,
in links to diff files (patches) that should be enough to prioritize SSD drive are here:
http://dior.ics.muni.cz/~mlebeda/Posix.py.diff
http://dior.ics.muni.cz/~mlebeda/setup.py.diff

Unfortunately, we were not able to integrate file Posix.py into miniroot.bz2 because a known bug:

Code: Alles auswählen

RAMDISK: incomplete write (-28! = 4096)
Compressed file ends unexpectedly
Please sent me guide how to make your own miniroot for later testing, so that the kernel not report errors mentioned above. The parameter ramdisk_size did not help.

p.s.:
Do you want to do script for SSD installation TRIM erase? First write is much faster.

Regards
Martin Lebeda
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: 2 and more discs include ssd

Beitrag von n.wenselowski »

Hello Mr. Lebeda,

thank you for your suggestions and patches.
I opened tickets in our internal bugtracker so that preferred usage of an SSD may become a feature in future versions.


Kind regards

Niko Wenselowski

Code: Alles auswählen

import OPSI
mlebeda
Beiträge: 42
Registriert: 27 Sep 2012, 15:43

Re: 2 and more discs include ssd

Beitrag von mlebeda »

Hello,
any news on the SSD (choose first with installation) and the possibility not to delete the data partition after reinstallation netboot OS? This functionality is essential for us.If it's in a test could you post link with .opsi package. I can help with testing.

Regards
Martin Lebeda
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: 2 and more discs include ssd

Beitrag von n.wenselowski »

Hello mlebeda,

unfortunately we we're not yet able to include this into one of our products.

We will come back to you when we have a package for that.


Kind regards

N. Wenselowski

Code: Alles auswählen

import OPSI
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: 2 and more discs include ssd

Beitrag von n.wenselowski »

Hello mlebeda,

just wanted to let you know the rotational attribute on the Harddisk class will be implemented in python-opsi 4.0.4.2.
Any bootimage build with that version will include that feature.


Kind regards

N. Wenselowski

Code: Alles auswählen

import OPSI
mlebeda
Beiträge: 42
Registriert: 27 Sep 2012, 15:43

Re: 2 and more discs include ssd

Beitrag von mlebeda »

Hello N. Wenselowski,
thank you very much for the information. I appreciate your efforts.


Regards
Martin Lebeda
mlebeda
Beiträge: 42
Registriert: 27 Sep 2012, 15:43

Re: 2 and more discs include ssd

Beitrag von mlebeda »

Hello,
updated to testing python-opsi_4.0.4.2-1_all.deb and opsi-linux-bootimage_20131121-1_all.deb and still nio rotational check. Just want to ask, if are there some problems with code and want any help?


Regards
Martin Lebeda
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: 2 and more discs include ssd

Beitrag von n.wenselowski »

Hello Martin,

I am not sure if python-opsi 4.0.4.2 is yet included in that version of the opsi-linux-bootimage.
Because of this bug in opsi-linux-bootimage 20131121-1 we are currently preparing another release of the bootimage. My check with current development version indicates that this includes python-opsi in 4.0.4.2 with the rotational attribute at the Harddisk.


Kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten