Zbr's days.
December
Sun Mon Tue Wed Thu Fri Sat
           
6
         
2007
Months
Dec

About TODO Blog RSS Old blog Projects Gallery Notes

Thu, 06 Dec 2007

A simple way to crash machine using XFS and DST.

Let's suppose you want to create an XFS on top of DST array. If you mistakenly will run mkfs.xfs /dev/sda1 (let's suppose you want to create DST storage on top of /dev/sda1 device) and then start DST on top of /dev/sda1:

./dst -n storage -A alg_mirror -d /dev/sda1 -R -s0 -S0
this will overwrite the last sector of the /dev/sda1, where XFS stores its metadata. Mounting XFS after that will lead to almost 100% crash of the machine on 2.6.22 kernels because of some bugs in XFS, which appear when XFS reads corrupted metadata from the last sector.

To work with DST you have to operate with /dev/dst-$storage-$num devices (i.e. run mkfs.xfs /dev/dst-$storage-$num), and not with underlying ones.

/devel/dst :: Link / Comments (0)

Please solve this captcha to be allowed to post (need to reload in a minute): 61 - 44

Comments are closed for this story.