[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: To partition or not to partition MD arrays (Was Re: smartctl cannotaccess my storage, need syntax help)



Franco Martelli (12024-01-19):
> > One case against using partitions on mdraid: if your array gets messed
> > up, you get to recreate those partition tables yourself and that's just
> > hilarious if you don't have a backup. Happened to a friend of mine,
> > reason was a UPS brownout.
> How can I get a backup of mdadm RAID partition?

You do not need a backup of the RAID partitions, that would be terribly
inefficient. You need a backup of the partition table.

Which, if you are organized, you already have in
$notes_dir/$hostname/install.md as something that looks like this:

```
sudo sfdisk /dev/sdX <<EOF
label: gpt
unit: sectors
sector-size: 512
1 : start=        2048, size=      129024, type=U, name="efi"
2 : start=      131072, size=   976640048, type=R, name="raid"
EOF
```

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature


Reply to: