LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-25-2014, 12:52 PM   #1
SOABEE
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Rep: Reputation: Disabled
lvextend command - will it destroy existing data


Hi All,

I am having a linux system running on OEL 5.7 in production environment.

at /etc/oracle-release
Oracle Linux Server release 5.70

I already have a /u02 mount and wanted to add additional disk space to it. The actual HDD for the server is 600GB but only 400GB is being used used and partitioned. The remaining 200GB is the capacity that not yet configure to any of the system file or shared use. i am using below commands to add space to my volume group.


implement step
1. lvextent -L +200G /dev/mapper/osvg-u02.fs
2. resize2fs /dev/mapper/osvg-u02.fs
3. df -h



Will this lvextend/resize2fs command lose/destroy or corrupt any existing data which is residing in /u02 mount now ?/

Anybody seen such issues ?


Please help.
 
Old 09-25-2014, 02:56 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by SOABEE View Post
1. lvextent -L +200G /dev/mapper/osvg-u02.fs
2. resize2fs /dev/mapper/osvg-u02.fs
3. df -h

Will this lvextend/resize2fs command lose/destroy or corrupt any existing data which is residing in /u02 mount now ?/
It should not, but the emphasis is on the "should." Anything that makes overall changes to a filesystem should be done only with a good recent backup. I do recall seeing a fix for an ext4 filesystem resize bug that could corrupt data under certain, fairly unusal conditions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lvextend command - will it destroy existing data SOABEE Linux - General 1 09-25-2014 02:45 PM
Did mdadm --create destroy my data? sleeping Linux - General 1 04-16-2014 05:35 AM
lvextend - where's my data? zdenisl Linux - Software 4 05-13-2006 08:36 AM
Will RHEL 4 beta 2 destroy an existing XP partition? latino Linux - Distributions 2 12-03-2004 10:01 PM
need to destroy data on drive syx Linux - Hardware 11 10-01-2004 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration