Solved

Anyway to forego the fsck before resize2fs?

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

808 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