Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Anyway to forego the fsck before resize2fs?

Posted on 2012-04-10
2
1,129 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 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Choosing CentOS 16 106
Showing a username in UNIX and using that name in the script 4 48
Linux boot cd to do hardware report on PC? 3 50
Linux script delete files 3 47
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

792 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