Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Anyway to forego the fsck before resize2fs?

Posted on 2012-04-10
2
Medium Priority
?
1,295 Views
Last Modified: 2012-04-10
I have a server with a 4TB lun completely full of files that needs to be re-sized. The storage team added the extra storage but unfortunately the system got hosed and had to be hard booted... I want to now resize the ext3 filesystem but it is asking to do:

[root@server~]# resize2fs /dev/volume_vg/v1 
resize2fs 1.39 (29-May-2006)
Please run 'e2fsck -f /dev/volume_vg/v1' first.

Open in new window


Any way to forego this check?
0
Comment
Question by:Thaidog
2 Comments
 
LVL 88

Expert Comment

by:rindi
ID: 37827064
It's unsafe to do without the fsck first, as you probably have file-system errors that need to be fixed first, particularly as the system was hard-booted. Not doing this you may loose data or your system. Of course it'll probably take time on 4TB, but I'm afraid you'll need to wait.
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 37827069
Can you mount the FS?

Should you get the same or a similar message when trying to mount an fsck is imperatively required.

If the mount is successful try resizing the FS "online".

Again, if you still see the same message you must run an fsck.

And of course, to be on the safe side you should really take the time to run the check!

wmp
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month9 days, 15 hours left to enroll

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question