Opened 13 years ago

Closed 13 years ago

#495 closed defect (fixed)

libmondo-raid.c->parse_mdstat#1065: Unknown RAID level '(auto-read-only)'.

Reported by: Sven-Haegar Koch Owned by: Bruno Cornec
Priority: normal Milestone: 3.0.0
Component: mondo Version: 2.2.9.7
Severity: normal Keywords:
Cc:

Description (last modified by Bruno Cornec)

Trying to create a backup with mondo fails because it can not parse my RAID setup:

Initializing...
See /var/log/mondoarchive.log for details of backup run.
Checking sanity of your Linux distribution
Disk /dev/md127 doesn't contain a valid partition table
Disk /dev/md126 doesn't contain a valid partition table
You have RAID partitions but no /etc/raidtab - creating one from /proc/mdstat
Sorry, cannot read /proc/mdstat
Done.
---FATALERROR--- Failed to generate boot+data disks

The linux software raid setup is:

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md126 : active (auto-read-only) raid1 sda2[0] sdb2[1]
      3999872 blocks [2/2] [UU]
      bitmap: 0/123 pages [0KB], 16KB chunk

md127 : active raid1 sda3[0] sdb3[1]
      234374912 blocks [2/2] [UU]
      bitmap: 5/224 pages [20KB], 512KB chunk

unused devices: <none>

md126 is a swap partition which has not been written to since the last boot.

When parsing /proc/mdstat it should ignore the "(auto-read-only)" if it exists and use the next word as the raid level.

Greetings Sven

Change History (1)

comment:1 by Bruno Cornec, 13 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

Should be solved in rev [2869]. Will be in 2.2.9.8.

Note: See TracTickets for help on using tickets.