Gestion de stockage Flashcards

1
Q

aficher tous les disque dans la machine

A

fdisk -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

c’est le SWAP

A

une partition qui assiste la ram en cas de saturation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

formatter une partition

A

mkfs.xfs /dev/sda

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

monter un disque

A

mount /dev/sda /mounting-file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

avantages de LVM

A

augmenter/reduire la taille | créer des snapshot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

créer un disque physique

A

pvcreate /dev/sdb

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

créer un groupe de volume

A

vgcreate vg200 /dev/sdc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

créer un volume logique

A

lvcreate -n lv1 -L +2G vg200 (must be in a volume group )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

augmenter la taille d’un volume

A

lvextend -L +5G /dev/vg200/lv1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

reduire la taille d’un volume

A

lvreduce -L -2G /dev/vg200/lv1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

créer une snapshot

A

lvcreate -s -n snapname -L 200M /dev/vg200/lv1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

restaurer un snapshot existant

A

lvconvert –mergesnapshot /dev/vg200/snapname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

monter un volume

A

mkfs.xfs /dev/vg200/lv1
mkdir /test
mount /dev/vg200/lv1 /test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly