Re: Software RAID1 problem (bad superblock?)

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

 



>>>>> "Eric" == Eric Drew Hollins <gte275e@mail.gatech.edu> writes:

Eric> /dev/md0: THe filesystem size (according to the superblock) is
Eric> 14658328 blocks.  THe physical size of the device is 14658304
Eric> blocks.  

Creating a filesystem on a partition and then making it part of a
mirror won't work.  MD will put its superblock at the end of the
partition and shrink the space visible to the filesystem a bit.

If you are creating a new filesystem and know you are going to mirror
it later, you can specify how many blocks the filesystem should occupy
on the mkfs command line. Leave some space for the MD superblock at
the end.

Or - if you have an existing filesystem - use resize2fs to chop off a
few blocks before making the partition an MD component.

-- 
Martin K. Petersen	Wild Open Source, Inc.
mkp@wildopensource.com	http://www.wildopensource.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux