Portál AbcLinuxu, 7. května 2025 22:02
cat /proc/mdstat Personalities : [raid1] md1 : active raid1 sdb2[1] 312327616 blocks [2/1] [_U] md0 : active raid1 sdb1[1] 240832 blocks [2/1] [_U] unused devices: none
server:~# fdisk -l /dev/sda Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0003422e Device Boot Start End Blocks Id System /dev/sda1 * 1 30 240943+ fd Linux raid autodetect /dev/sda2 31 38913 312327697+ fd Linux raid autodetect server:~# server:~# fdisk -l /dev/sdb Disk /dev/sdb: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0002f147 Device Boot Start End Blocks Id System /dev/sdb1 * 1 30 240943+ fd Linux raid autodetect /dev/sdb2 31 38913 312327697+ fd Linux raid autodetect
server:~# cat /etc/mdadm/mdadm.conf # mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # # by default, scan all partitions (/proc/partitions) for MD superblocks. # alternatively, specify devices to scan, using wildcards if desired. DEVICE partitions # auto-create devices with Debian standard permissions CREATE owner=root group=disk mode=0660 auto=yes # automatically tag new arrays as belonging to the local system HOMEHOST system # instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays ARRAY /dev/md0 level=raid1 num-devices=2 UUID=f611a71f:36f693cf:d2710fd2:4938d05e ARRAY /dev/md1 level=raid1 num-devices=2 UUID=99be939b:58238c48:fa8b64fc:811dc3c8 # This file was auto-generated on Fri, 16 Jan 2009 17:55:32 +0100 # by mkconf $Id$
/dev/sdb1: UUID="f611a71f-36f6-93cf-d271-0fd24938d05e" TYPE="linux_raid_member" /dev/sdb2: UUID="99be939b-5823-8c48-fa8b-64fc811dc3c8" TYPE="linux_raid_member"
Řešení dotazu:
mdadm /dev/md0 -a /dev/sda1 mdadm /dev/md1 -a /dev/sda2
mdadm --assemble /dev/md1 /dev/sda2a to mi neslo, jaky je v tom rozdil?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.