adminsys:partition
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
adminsys:partition [2020/01/25 18:44] – tonio | adminsys:partition [2023/04/22 17:21] (Version actuelle) – [Étendre votre disque] tonio | ||
---|---|---|---|
Ligne 15: | Ligne 15: | ||
- | Disk / | + | Disk / |
Units: sectors of 1 * 512 = 512 bytes | Units: sectors of 1 * 512 = 512 bytes | ||
Sector size (logical/ | Sector size (logical/ | ||
Ligne 55: | Ligne 55: | ||
Allocated PE 0 | Allocated PE 0 | ||
PV UUID | PV UUID | ||
+ | </ | ||
+ | |||
+ | ==== Création des volumes groupes (VG) à partir des PV ==== | ||
- | ===== Création des volumes groupes (VG) à partir des PV ===== | ||
VGCREATE NOMVOLUMEGROUPE /physique | VGCREATE NOMVOLUMEGROUPE /physique | ||
< | < | ||
vgcreate Nom-Volume-Groupe / | vgcreate Nom-Volume-Groupe / | ||
- | vgcreate VolGRDATA00 /dev/sdb1 | + | vgcreate VolGRDATA00 /dev/sdc1 |
- | </ | ||
**Afficher les informations sur les groupes de volumes physiques :** | **Afficher les informations sur les groupes de volumes physiques :** | ||
< | < | ||
Ligne 106: | Ligne 108: | ||
- | ===== Vérifier bien la nouvelle ligne ===== | + | ** Vérifier bien la nouvelle ligne** |
< | < | ||
Ligne 112: | Ligne 114: | ||
UUID=XXXX-XXXX-XXXX-XXXX-XXXX / | UUID=XXXX-XXXX-XXXX-XXXX-XXXX / | ||
</ | </ | ||
- | ===== Monter le disque ===== | ||
+ | ===== Monter le disque ===== | ||
< | < | ||
mkdir -p /data1 | mkdir -p /data1 | ||
mount -a | mount -a | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== Étendre votre disque | ||
+ | |||
+ | **Volumétrie initiale** | ||
+ | < | ||
+ | toot@extra: | ||
+ | Filesystem | ||
+ | / | ||
+ | |||
+ | [sam. avril 22 18:50:51] root@extra: | ||
+ | Disk /dev/xvdb: 500 GiB, 536870912000 bytes, 1048576000 sectors | ||
+ | Units: sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | Disklabel type: dos | ||
+ | Disk identifier: 0x047bacf3 | ||
+ | |||
+ | Device | ||
+ | / | ||
+ | |||
+ | |||
+ | Disk / | ||
+ | Units: sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | |||
+ | |||
+ | Disk / | ||
+ | Units: sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | </ | ||
+ | |||
+ | **Volumétrie changée** | ||
+ | < | ||
+ | |||
+ | [sam. avril 22 18:56:31] root@extra: | ||
+ | |||
+ | Disk /dev/xvdb: 600 GiB, 644245094400 bytes, 1258291200 sectors | ||
+ | Units: sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | Disklabel type: dos | ||
+ | Disk identifier: 0x047bacf3 | ||
+ | |||
+ | Device | ||
+ | / | ||
+ | |||
+ | |||
+ | Disk / | ||
+ | Units: sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | |||
+ | |||
+ | Disk / | ||
+ | Units: sectors of 1 * 512 = 512 bytes | ||
+ | Sector size (logical/ | ||
+ | I/O size (minimum/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Extension de la partition** | ||
+ | < | ||
+ | [sam. avril 22 19:00:57] root@extra: | ||
+ | GNU Parted 3.4 | ||
+ | Using /dev/xvdb | ||
+ | Welcome to GNU Parted! Type ' | ||
+ | (parted) print | ||
+ | Model: Xen Virtual Block Device (xvd) | ||
+ | Disk /dev/xvdb: 644GB | ||
+ | Sector size (logical/ | ||
+ | Partition Table: msdos | ||
+ | Disk Flags: | ||
+ | |||
+ | Number | ||
+ | | ||
+ | |||
+ | (parted) resizepart 1 | ||
+ | End? [530GB]? 643GB | ||
+ | (parted) quit | ||
+ | Information: | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Extension du volume physique: PV " | ||
+ | < | ||
+ | [sam. avril 22 19:02:00] root@extra: | ||
+ | Physical volume "/ | ||
+ | 1 physical volume(s) resized or updated / 0 physical volume(s) not resized | ||
+ | [sam. avril 22 19:04:24] root@extra: | ||
+ | PV | ||
+ | /dev/xvda3 ubuntu-vg lvm2 a-- < | ||
+ | /dev/xvdb1 EXTRA-VG | ||
+ | |||
+ | </ | ||
+ | **Extension du volume logique: LV " | ||
+ | < | ||
+ | root@extra: | ||
+ | LV VG Attr | ||
+ | DATA EXTRA-VG | ||
+ | root@extra: | ||
+ | Size of logical volume EXTRA-VG/ | ||
+ | Logical volume EXTRA-VG/ | ||
+ | root@extra: | ||
+ | LV VG Attr | ||
+ | DATA EXTRA-VG | ||
+ | root@extra: | ||
+ | ACTIVE | ||
+ | |||
+ | </ | ||
+ | **Extension du filesystem de la partition: LV " | ||
+ | < | ||
+ | [sam. avril 22 19:10:05] root@extra: | ||
+ | resize2fs 1.46.5 (30-Dec-2021) | ||
+ | Filesystem at / | ||
+ | old_desc_blocks = 62, new_desc_blocks = 75 | ||
+ | The filesystem on / | ||
+ | toot@extra: | ||
+ | Filesystem | ||
+ | / | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | |||
+ | </ | ||
+ | http:// | ||
+ | |||
adminsys/partition.1579977861.txt.gz · Dernière modification : 2020/01/25 18:44 de tonio