یکشنبه, اوت 4, 2013 | Author:

I had a power outage affect my server’s large MD RAID array. Rather than let the server as a whole be down while waiting for it to complete an fsck, I had it boot without the large array so I could run the fsck manually.

اما, when running it manually I realised I had no way of knowing how far it was and how long it would take to complete. This is especially problematic with such a large array. With a little searching I found the tip of adding the -C parameter when calling fsck. I couldn’t find this in the documentation however: fsckhelp showed no such option.

The option turns out to be ext4-specific, and thus shows a perfectly functional progress bar with a percentage indicator. To find the information, instead offsckhelp” یا “man fsck”, you have to inputfsck.ext4help” یا “man fsck.ext4”. 🙂

اشتراک گذاری
شما می توانید هر پاسخی به این مطلب را از طریق دنبال RSS 2.0 خوراک. شما می توانید ترک یک پاسخ, یا دنبالک از سایت خودتان.

2 پاسخ

  1. 1
    totedati 

    « I couldn’t find this in the documentation however »
    واقعا!? i see it right here in fsck man page:
    « -C [fd]
    Display completion/progress bars for those filesystem checkers (currently only for ext2 and ext3) which support them. fsck will manage the filesystem checkers so that only one of them will display a progress bar at a time. GUI front-ends may specify a file descriptor fd, in which case the progress bar information will be sent to that file descriptor. »

  2. 2
    مکار 

    Man pages do change every now and again. 😉

    Ironically, on the system I happen to be logged onto right now, when I typefsckhelp”, it gives the version and nothing else. Le Sigh.

پاسخ دهید » ورود به سامانه