ubuntuusers.de

ubuntu 22.04 autoinstall storage

Status: Ungelöst | Ubuntu-Version: Ubuntu 22.04 (Jammy Jellyfish)
Antworten |

micneu

Avatar von micneu

Anmeldungsdatum:
19. Januar 2021

Beiträge: 704

Wohnort: Hamburg

Moin, ich versuche gerade meine Ubuntu 22.04 Installation zu automatisieren. Ich habe meine user-data Datei soweit zum laufen bekommen bis auf meine Festplatten Konfiguration. Meine "/" Partition ist immer nur 50% des möglichen speichers, google hat leider keine lösung gebracht deshalb hoffe ich das hier die Profis mir helfen können. Getestet habe ich das mit VMs auf Proxmox, Parallels Desktop & VMWare Fusion.

Auagbe von "df -h"

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
root@ansible-client04:~# df -h
Filesystem                         Size  Used Avail Use% Mounted on
tmpfs                              197M  1.2M  196M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv   30G  5.5G   23G  20% /
tmpfs                              984M     0  984M   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              984M     0  984M   0% /run/qemu
/dev/sda2                          2.0G  130M  1.7G   8% /boot
/dev/sda1                          1.1G  6.4M  1.1G   1% /boot/efi
tmpfs                              197M  4.0K  197M   1% /run/user/1001

Ausgabe von "pvs" & "lvs"

1
2
3
4
5
6
root@ansible-client04:~# pvs
  PV         VG        Fmt  Attr PSize   PFree
  /dev/sda3  ubuntu-vg lvm2 a--  <60.95g 30.47g
root@ansible-client04:~# lvs
  LV        VG        Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  ubuntu-lv ubuntu-vg -wi-ao---- 30.47g

Der Storage Bereich meiner user-data

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
storage:
      config:
      - {ptable: gpt, wipe: superblock, preserve: false, name: '',
        grub_device: true, type: disk, id: disk-0}
      - {device: disk-0, size: 1048576, flag: bios_grub, number: 1, preserve: false,
        grub_device: false, type: partition, id: partition-0}
      - {device: disk-0, size: 1073741824, wipe: superblock, flag: '', number: 2,
        preserve: false, grub_device: false, type: partition, id: partition-1}
      - {fstype: ext4, volume: partition-1, preserve: false, type: format, id: format-0}
      - {device: disk-0, size: -1, wipe: superblock, flag: '', number: 3,
        preserve: false, grub_device: false, type: partition, id: partition-2}
      - name: ubuntu-vg
        devices: [partition-2]
        preserve: false
        type: lvm_volgroup
        id: lvm_volgroup-0
      - {name: ubuntu-lv, volgroup: lvm_volgroup-0, size: -1, preserve: false,
        type: lvm_partition, id: lvm_partition-0}
      - {fstype: ext4, volume: lvm_partition-0, preserve: false, type: format, id: format-1}
      - {device: format-1, path: /, type: mount, id: mount-1}
      - {device: format-0, path: /boot, type: mount, id: mount-0}

lauf google Recherche soll es so sein das wenn ich bei "size: -1" der Restliche freie Speicher genutzt wird. wo ist mein Fehler?

Antworten |