After the mdadm --assemble command, I get sda1 has no superblock - assembly aborted. What does that mean?
Also a few other questions just for my understanding: When the drives were originally formatted, I think they had 3 partitions, /boot, /swap and /. When I run the mdadm --assemble /dev/md0 /dev/sda(x), how do I know how many partitions to specify.
Also, with the 4 drives with 3 partitions each, do I specify them all under /dev/md0? Would I command mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev sdd1 /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sdd2 /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3?
Metadata Corruption detected
Re: Metadata Corruption detected
Look at the partitions and their sizes. I suspect you may have more than one array and it's likely that each array uses the same numbered partition on each disk - so array 1 uses e.g. /dev/sda1 /dev/sdb1 and possibly partition 1 on other disks as well. For mdadm the sizes of each member of each array is likely to be the same on each disk. You can also tell by using mdadm --examine on each disk partition whether they are mdadm members or not (it errors if they are not). Use that and the Array uuid line from each to find which partitions belong in which arrays.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Metadata Corruption detected
Following up on this. I had 2 hard drives fail and scramble the RAID so I had to reinstall. I also added a USB external hard drive (backup_hd) and am attempting to back up the system to it. I have the following command
sudo rsync -aAXv / --delete --exclude={‘/dev/‘,’/proc/‘,’/sys/‘,’/tmp/‘,’/run/‘,’/mnt/‘,’/media/‘,’/lost+found’, ‘var/lib/bluecherry/recordings/‘, ‘/backup_hd/‘} /backup_hd
When I do this, even though I've told it to exclude several locations like /proc and the /backup_hd itself, it backs them up. I keep having a recursive backup of the backup_hd as well as the /proc/ location. What am I missing in the command to prevent the indicated locations from being included?
sudo rsync -aAXv / --delete --exclude={‘/dev/‘,’/proc/‘,’/sys/‘,’/tmp/‘,’/run/‘,’/mnt/‘,’/media/‘,’/lost+found’, ‘var/lib/bluecherry/recordings/‘, ‘/backup_hd/‘} /backup_hd
When I do this, even though I've told it to exclude several locations like /proc and the /backup_hd itself, it backs them up. I keep having a recursive backup of the backup_hd as well as the /proc/ location. What am I missing in the command to prevent the indicated locations from being included?
Re: Metadata Corruption detected
You are missing the "-x" (lowercase) option. Also can be specified as "--one-file-system" .
Re: Metadata Corruption detected
I don't think that's a valid syntax for --exclude=. Perhaps use --exclude-from=file and put your exclude patterns in that file, one per line.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Metadata Corruption detected
I suspect that using the "-x" option will eliminate the need for all, or almost all those exclusions.
I usually use multiple "--exclude=" options, such as '--exclude=/media --exclude=/backups_hd'.
Re: Metadata Corruption detected
If the intent is to include other filesystems too, e.g. /home, then "--one-file-system" is not the solution.
How many things are in / that are not any of the {‘/dev/‘,’/proc/‘,’/sys/‘,’/tmp/‘,’/run/‘,’/mnt/‘,’/media/‘,’/lost+found’, ‘/backup_hd/‘}?
Perhaps they would be the shorter list?
--exclude=var/lib/bluecherry/recordings/ /etc /var /home /root /backup_hd/
Or perhaps even store the command(s) as a script file (that you also back up):
Code: Select all
#!/usr/bin/bash
for D in /etc /var /home /root
do
rsync -aAXivP --stats --delete --exclude=var/lib/bluecherry/recordings/ "${D}/" "/backup_hd/${D}/"
done