LinuxQuestions.org
Visit Jeremy's Blog.
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 05-27-2007, 12:48 AM   #1
daihard
Member
 
Registered: Jul 2003
Location: Lynnwood, WA
Distribution: Kubuntu 10.10
Posts: 912

Rep: Reputation: 32
LVM without losing data


Hi.

I would like to create a logical volume out of two physical volumes (/dev/sda1 and /dev/sdb1). Creating an LV per se is not an issue. What I'd like to do is leave the data currently on /dev/sda1 intact so they can be accessed after the LV has been created. Is it possible?

The reason I want to do it is because the hard disk for /dev/sda1 is almost full (420/500 GB), and the computer has no space to add an extra disk (except for the one for /dev/sdb1) to back up the data.

Any help/feedback would be appreciated.
 
Old 05-27-2007, 03:29 AM   #2
mmn357157
LQ Newbie
 
Registered: May 2007
Location: Bangalore
Distribution: RHEL
Posts: 20

Rep: Reputation: 0
sorry no way!!
you can check with more advanced storage space managemet tools like EVMS
http://tldp.org/LDP/EVMSUG/html/EVMSUG.html
 
Old 05-27-2007, 09:37 AM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
You could use a usb disk to temporarily move the data while making the switch. Personally I avoid LVM like the plague. The are fine until something goes wrong with them. Then life gets really ugly. If any drive fails in a LVM you loose everything that is stored on the entire LVM.
 
Old 05-27-2007, 12:07 PM   #4
daihard
Member
 
Registered: Jul 2003
Location: Lynnwood, WA
Distribution: Kubuntu 10.10
Posts: 912

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by lazlow
You could use a usb disk to temporarily move the data while making the switch. Personally I avoid LVM like the plague. The are fine until something goes wrong with them. Then life gets really ugly. If any drive fails in a LVM you loose everything that is stored on the entire LVM.
I could, except that we're talking about 400+GB of data. I never thought about your point on failure, though. That's actually scary. I'll need to think twice about LVM now.
 
Old 05-27-2007, 12:13 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
You can get usb disks up to a TB (at least that I have seen).

It is fairly easy to just add another disk. It does not have to be part of a LVM. As far as setup goes it is about the same as having a separate /home partition (seamless).
 
Old 05-27-2007, 12:50 PM   #6
daihard
Member
 
Registered: Jul 2003
Location: Lynnwood, WA
Distribution: Kubuntu 10.10
Posts: 912

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by lazlow
You can get usb disks up to a TB (at least that I have seen).

It is fairly easy to just add another disk. It does not have to be part of a LVM. As far as setup goes it is about the same as having a separate /home partition (seamless).
Wow, that's one big USB disk... I've never seen anything like that before. I guess I'm behind.
 
Old 05-27-2007, 12:54 PM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
It's not flash - it's a USB case for IDE 3.5'' HDD.
 
Old 05-27-2007, 01:06 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
http://www.wdc.com/en/products/Products.asp?DriveID=270
 
Old 05-27-2007, 03:25 PM   #9
daihard
Member
 
Registered: Jul 2003
Location: Lynnwood, WA
Distribution: Kubuntu 10.10
Posts: 912

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by raskin
It's not flash - it's a USB case for IDE 3.5'' HDD.
Ah, okay. I was wondering what a 1TB USB flash drive would look like.

Thanks!
 
Old 05-27-2007, 05:20 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,045

Rep: Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970
Ever heard of backups ???.
 
Old 05-27-2007, 11:19 PM   #11
daihard
Member
 
Registered: Jul 2003
Location: Lynnwood, WA
Distribution: Kubuntu 10.10
Posts: 912

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by syg00
Ever heard of backups ???.
I back up the most critical files on a regular basis, but not the entire 500GB. Most of the data I have on it are something I'd much rather not lose but could shrug off if a catastrophic failure should occur.
 
Old 05-28-2007, 01:11 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,045

Rep: Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970Reputation: 970
I do likewise - my systems I am prepared to re-build at any time in need. For user data I use separate partitions; backed up of course - I have not determined how I can conveniently use LVM if it all goes to hell.
Hardware RAID and EVMS would be my preferred solution probably.

Have you looked at unionfs/aufs ???.
 
Old 05-28-2007, 01:27 AM   #13
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
I think most of us just back up "have to" stuff and hope for the best for the rest. Once you get much over 300gig life starts getting pretty tough.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help me avoid ever losing data again Z038 Linux - General 12 10-09-2006 02:32 AM
Repartitionning without losing data mimithebrain Linux - General 6 10-22-2005 04:38 PM
Repartitioning without losing data Cdzin Slackware 4 01-30-2005 08:27 PM
Upgrade to RH 9.0 without losing data? habadash Linux - Newbie 3 07-31-2003 05:41 PM
keep losing data from /usr bdp Linux - General 4 07-06-2002 02:21 AM


All times are GMT -5. The time now is 09:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration