====== Pré-requis / Généralités ======
* [[Systèmes de fichiers]].
* [[Opérations volumes SCSI.]]
* [[Managing partitions]].
* [[Découpage Disques]].
* [[UUID disque]].
====== Volumes simples ======
* [[Création volume simple]].
* [[Augmentation volume simple]].
====== Volumes LVM ======
* [[Généralités LVM]] à lire avant de lire les sous-parties.
===== Création volume LVM =====
* [[Création volume LVM sur disque]].
* [[Création volume LVM sur partition]].
* Deprecated [[Création FileSystem supérieur à 2To]].
===== Augmentation volume LVM =====
* [[Augmentation volume LVM sur disque]].
* [[Augmentation volume LVM sur partition ExtensionPV]].
* [[Augmentation volume LVM sur partition AjoutPV]].
===== Réduction volume LVM =====
* [[Réduction volume LVM]].
===== Renommage de volumes =====
*[[Renommage volume LVM]]. Suite à une migration.
====== Montage volume RAID ======
To mount a disk from a Synology RAID with mdadm.
* https://michaelheap.com/mount-synology-hdd-linux
# mkdir /mnd/dd
# mount /dev/sdd5 /mnt/dd
mount: /media/test: unknown filesystem type 'linux_raid_member'.
Unknown filesystem type? Looks like I need to create a software RAID to mount it in to!
# mdadm --assemble --run /dev/md0 /dev/sdd5
mdadm: /dev/sdb5 is busy - skipping
Busy? But it’s not mounted. Let’s take a look
# mdadm --examine /dev/sdd
/dev/sdb:
MBR Magic : aa55
Partition[0] : 4294967295 sectors at 1 (type ee)
Run ls /dev/md then press tab to see what auto-completes. For me, it was /dev/md127. Let’s stop that and create a software RAID at /dev/md0
# ls /dev/md
# mdadm --stop /dev/md127
# mdadm --assemble --run /dev/md0 /dev/sdd5
mdadm: /dev/md0 has been started with 1 drive (out of 2).
That’s correct! There were two drives and I’ve only provided one. Let’s mount it
# mount /dev/md0 /mnt/dd
mount: /media/test: unknown filesystem type 'LVM2_member'.
Another unknown error. This is because it’s an LVM volume. Let’s see which are available using vgs
# vgs
VG #PV #LV #SN Attr VSize VFree
vg1000 1 1 0 wz--n- 5.45t 0
vg1000, I see you! Let’s mount that volume group now
# mount -o ro /dev/mapper/vg1000-lv /mnt/dd