I
I
ironfist852021-02-16 14:56:41
RAID
ironfist85, 2021-02-16 14:56:41

Reinstalling debian on raid without wiping?

Welcome all!
Please don't throw stones. I want to hear advice. The situation is the following.
There is a rented server from hetzner. Installed debian via installimage on soft raid1 + lvm (ssd datacenter). I ran proxmox. After that, I assembled another raid1 from nvme disks (for sql), mounted it as a directory in proxmox. In general, the server "dropped"... Installed debian again via installimage on the same disks (ssd) where it was originally installed from the rescue system without erasing the metadata of the old raid1. After installation, the array was synchronized. I look at uid
mdadm --detail --scan: (this is also written in /etc/mdadm/mdadm.conf)
ARRAY /dev/md/2 metadata=1.2 name=gaspar:2 UUID=3e45a9d5:9d119ab8:b60f5d4f:587bf397
ARRAY / dev/md/1 metadata=1.2 name=rescue:1 UUID=231a0dca:8326f571:b1d971e2:86ee808b
ARRAY /dev/md/0 metadata=1.2 name=rescue:0 UUID=5900d7b9:c7777a7e:74b7b992:435f6107

blkid:
/dev/md2: UUID="75b8b63b-043c-41be-ad63-8db5baf80eda" TYPE="ext4"
/ dev/md1: UUID="La3925-aiLZ-gE0K-Aq6s-wsfv-NqZ2-qmEMtz" TYPE="LVM2_member"
/dev/md0: UUID="0ceabee7-8939-4ed8-87f1-9467514417db" TYPE="ext3"

Array md2 mounted to a directory and connected to proxmox.

What is the risk of not erasing metadata and reassembling the array in the future (server in production)? Confused what uid to prescribe in /etc/fstab for automatic mounting md2. Please give advice right ... do not kick too much please ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2021-02-17
@ironfist85

Confused what uid to prescribe in /etc/fstab for automatic mounting md2.
To mount, you need the UUID that refers to the file system, i.e. this one (specific FS ext4 is specified):
/dev/md2: UUID="75b8b63b-043c-41be-ad63-8db5baf80eda" TYPE="ext4"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question