User Tools

Site Tools


manipulations_disques_simple_lvm

Pré-requis / Généralités

Volumes simples

Volumes LVM

Création volume LVM

Augmentation volume LVM

Réduction volume LVM

Renommage de volumes

Montage volume RAID

To mount a disk from a Synology RAID with mdadm.

# 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
manipulations_disques_simple_lvm.txt · Last modified: 2021/01/21 21:42 (external edit)