Re: RAID adventures

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

 



Konstantin Svist wrote:

> so I sized it down a bit:
> # mdadm --grow -z 293033472 --backup-file=/root/grow_md0_size.bak /dev/md0

And there is your error.
You resized the device without first resizing the fileystem.

The filesystem is *in* the device.
So if you want to enlarge, you enlarge the device and then the filesystem.
If you want to shrink, you shrink the filesystem and then the device.

You basically destroyed a few random blocks from the end of the filesystem.
I don't know how serious the damage is. fsck will tell you.

It is also impossible to undo the error because you have reshaped the RAID
after the shrinking, so the "lost" blocks are not easily reincludeable
(with an opposite --grow, I mean).

The small number of missing blocks and their position at the end of the disk
give you a reasonable confidence that you will save your data.
I'm not sure if it is better to run an fsck and pray or it is better
to reenlarge the device with some zeroed blocks to avoid the "read beyond
partition size" condition (I personally would think about linearly concatenation
of your RAID with another small zeroed partition (or file) just to exceed the
size of the "contained" filesystem).

-- 
   Roberto Ragusa    mail at robertoragusa.it
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux