Koozali.org formerly Contribs.org

Update dimensione HDD su VM

Update dimensione HDD su VM
« on: February 25, 2019, 06:11:24 PM »
Buondì a tutti. Devo "allargare" il disco di un'installazione residente su ESXi.

Code: [Select]
[root@server ~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda1[0]
      255936 blocks super 1.0 [2/1] [U_]

unused devices: <none>
[root@server ~]#
E' più conveninte seguire la guida per fare l'upgrade del disco, usare Affa (quindi installazione nuovo server con disco più grande, sincro e poi spegnimento vecchio e accensione nuovo server), oppure c'è un sistema più veloce e/o performante?

SME 9.2 full updated con solo sme9admin e contrib per la coda di qmail installati.

Grazie a tutti.
Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline ReetP

  • *
  • 1,979
Re: Update dimensione HDD su VM
« Reply #1 on: February 27, 2019, 02:21:54 AM »
On a VM use "noraid nolvm" on installation.

You can then easily resize your disk. Just boot the vm with a gparted boot disk.

You may want to backup/restore and start again using those settings.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Re: Update dimensione HDD su VM
« Reply #2 on: February 28, 2019, 12:48:14 AM »
se non ricordo male quando l'ho installato ho specificato tutto ciò selezionando l'apposita opzione  durante l'installazione, giusto?

If I remember correctly when installed it I specified everything by selecting the appropriate option during installation, right?

Code: [Select]
[root@server ~]# fdisk -l

Disco /dev/sda: 107.4 GB, 107374182400 byte

255 testine, 63 settori/tracce, 13054 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00061766

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          32      256000   fd  Autorilevamento raid di                                 Linux
La partizione 1 non termina al limite del cilindro.
/dev/sda2              32         547     4128768   82  Linux swap / Solaris
La partizione 2 non termina al limite del cilindro.
/dev/sda3             547       13055   100471808   83  Linux

Disco /dev/md0: 262 MB, 262078464 byte
2 testine, 4 settori/tracce, 63984 cilindri
Unità = cilindri di 8 * 512 = 4096 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x00000000

[root@server ~]# cat /etc/fstab
#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few entries are updated during
# the template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/fstab/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
#
# /etc/fstab
# Created by anaconda on Thu Sep  1 12:16:09 2016
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=111363ce-b5f6-4f9f-be97-18910b64f528 /                       ext4    usrquo                                ta,grpquota        1 1
UUID=c977b7df-160b-4b3c-bcf9-c8135e1d870e /boot                   ext4    defaul                                ts        1 2
UUID=12274f02-cb84-4127-aa0f-ed77ada9afa8 swap                    swap    defaul                                ts        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
[root@server ~]#

Ma il raid è attivo (mi pare)...

But the raid is active (I think) ...

 :-?
« Last Edit: February 28, 2019, 12:49:49 AM by Fumetto »
Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline ReetP

  • *
  • 1,979
Re: Update dimensione HDD su VM
« Reply #3 on: February 28, 2019, 01:37:59 AM »
With SME you always get RAID on the boot partition regardless of boot options.

You should be able to boot with gparted live, resize sda3, and reboot with a bigger partition.

Just make sure you have a good backup !!

Regards... from Barbuda :-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation