[SGVLUG] MDADM support

Matthew Campbell dvdmatt at gmail.com
Mon Oct 20 22:34:51 PDT 2014


Anybody?

---------
*Matthew Campbell*
Storage and Cloud Strategy
Office of the CTO

*Kaiser Permanente*
99 S. Oakland
Pasadena, CA 91101

626-564-7228 (office)
8-338-7228 (tie-line)
818-314-9897 (mobile phone)
Green Center 3-North, 031W29
---------
*kp.org/thrive <http://kp.org/thrive>*

On Mon, Oct 20, 2014 at 11:18 AM, Matthew Campbell <dvdmatt at gmail.com>
wrote:

> Good morning everyone,
>
>
> Through an unfortunate event (a visit to the comic book store near
> Caltech) my data needs have rapidly grown.  My old data array (8 drives
> RAID-6) needs to be expanded.
>
> I have added 2 more drives to the server, but unfortunately they are
> slightly smaller than the existing drives so they won't add directly with
> mdadm --add.
>
> I am trying to reduce the size of the existing drives but it does not seem
> to work.  I am getting no log messages or other indication as to why.  Do
> you have any suggestions?
>
> matt at aslan:160% sudo mount /Backups
> matt at aslan:161% sudo df -k /Backups
> Filesystem       1K-blocks        Used Available Use% Mounted on
> /dev/md0       17469360128 16917599856 549035664  97% /Backups
> matt at aslan:162% sudo btrfs filesystem resize -100g /Backups
> Resize '/Backups' of '-100g'
> 0.000u 160.068s 1:06:09.85 4.0% 0+0k 208543776+225062784io 0pf+0w
> matt at aslan:163% time sudo btrfs scrub start -Bd /Backups
> scrub device /dev/md0 (id 1) done
>         scrub started at Mon Oct 20 00:27:31 2014 and finished after 29330
> seconds
>         total bytes scrubbed: 15.75TiB with 0 errors
> 0.185u 4877.358s 8:08:49.71 16.6%       0+0k 33835288864+47080io 10pf+0w
> matt at aslan:164% df -k /Backups
> Filesystem       1K-blocks        Used Available Use% Mounted on
> /dev/md0       17364502528 16917585648 444184208  98% /Backups
> matt at aslan:165% sudo umount /Backups
> matt at aslan:166% sudo mdadm --grow /dev/md0 --size=2928268288
> mdadm: component size of /dev/md0 unchanged at 2929036288K
> matt at aslan:167%
>
> Note "unchanged" in the last line of output.
>
> Thanks for any thoughts...
>
> Matt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sgvlug.net/pipermail/sgvlug/attachments/20141020/d0125ee5/attachment.html>


More information about the SGVLUG mailing list