Is it possible to make opt_pcbin bigger than 50 GB?

Antworten
duda
Beiträge: 24
Registriert: 31 Mai 2011, 11:50

Is it possible to make opt_pcbin bigger than 50 GB?

Beitrag von duda »

Duda
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Is it possible to make opt_pcbin bigger than 50 GB?

Beitrag von uncle_scrooge »

Thanks for giving us such an overwhelming bunch of information in the first place.

Before grabbing the crystal ball.
What problem are you really experiencing?
Is OPSI telling you: Oops. You just hit the magic hard-coded limit of 50GB for directory /opt/pcbin.

Or does your linux box just run out of disk space?
If the latter, what are you running?
Is it the preconfigured VM-Image?
Is it an own-made box?
If the latter, what kind of Linux flavour? How is your partitioning scheme? Is LVM in place?
duda
Beiträge: 24
Registriert: 31 Mai 2011, 11:50

Re: Is it possible to make opt_pcbin bigger than 50 GB?

Beitrag von duda »

Sorry ... it happens when tired.
I am running (this time) opsi-depotserver Version 4.0.1 for VMWare downloaded from opsi.org; I have expanded the disk space in VmWare from 40GB to 140GB.
So, what I have to do get more space for installs.

Duda
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Is it possible to make opt_pcbin bigger than 50 GB?

Beitrag von uncle_scrooge »

Ok.
As the root filesystem resides on the partition you want to resize, an offline tool is needed. ext2online may work with an online root filesystem, but I haven't worked with it.

!!! So, first of all, get a complete backup of your VM. !!!
Get the gparted-ISO here http://sourceforge.net/projects/gparted ... /0.12.0-2/
!!! You do have a backup of your complete VM? !!!
Boot your VM from the gparted-ISO.
Gparted wil start and show you your partitions.
The correct one should be selected. If you can see a small rectangle with '/dev/sda<x>' and a bigger rectangle with 'unallocated' you're on the right track.
!!! You are absolutely sure that you have a backup of your complete VM? !!!
Choose 'Resize/Move' from the menu.
A new window will open.
You can change the size of your partition by 'sliding' it to the right.
If you're done, hit ok.
Choose 'Apply' from the menu.
The resizing will take a moment.
After that, you're done.
Reboot into OPSI and check the size of your partition, eg. df -h
duda
Beiträge: 24
Registriert: 31 Mai 2011, 11:50

Re: Is it possible to make opt_pcbin bigger than 50 GB?

Beitrag von duda »

How can I boot from CD when only network boot is configured ... I mean how can I get VM to boot from CD ?

Duda
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Is it possible to make opt_pcbin bigger than 50 GB?

Beitrag von d.oertel »

Hi,

here a other possibility:

Add a new hard disk to your vm
make partition and file system on it
mount it on /mnt
copy all stuff from /opt/pcbin to the new disk

Code: Alles auswählen

cd /opt/pcbin
tar cf - . | (cd /mnt ; tar xf - )
then clear /opt/pcbin and mount the new disk to /opt/pcbin

regards

d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
duda
Beiträge: 24
Registriert: 31 Mai 2011, 11:50

Re: Is it possible to make opt_pcbin bigger than 50 GB?

Beitrag von duda »

Thanks; it was not easy to get into bios, but for the rest gparted worked as a charm!

Duda
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: Is it possible to make opt_pcbin bigger than 50 GB?

Beitrag von uncle_scrooge »

duda hat geschrieben:Thanks; it was not easy to get into bios,
For future use:
You may edit the config file (*.vmx)of your VM.
And add the line: bios.bootDelay = "10000" to the top of the file.
The value of 10.000 gives you a ten second break. This is the max.
Adjust to your needs.
Antworten