Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Other Operating Systems

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 15th January 2008, 10:09 PM   #1
Fettrix Thread Starter
Member
 
Fettrix's Avatar
 
Join Date: Jul 2002
Location: Eastern, VIC, (Knox)
Posts: 1,357
Default Failed dist upgrade now worry over lvm data

hi all,

I had a debian 3.1 install that I tried to upgrade to 4.0. Now as it turns out the OS HDD (/dev/hda) has something seriously wrong with it so I need to replace the drive.

My concern is for the data I have on my LVM set up which is as follows:

/dev/hdc1 - LVM
/dev/hdd1 - LVM
/dev/hde1 - LVM
/dev/hdf1 - LVM
/dev/hdg1 - LVM


Would it be safe to replace hda with a new HDD, and do a fresh install on that? If so how would I be able to keep the LVM data as it currently is?

Any help would be great as my last back up was 27/9/7 an I have since added more things which i dont have a copy of.


Many thanks for any info

Fett.
__________________
* Google * Trades * DVD’s * Ç¥BËRÇÔRË * Last.fm * Steam Games * Indie Count *
__________________
"Two there should be; no more, no less. One to embody power, the other to crave it."
Fettrix is offline   Reply With Quote

Join OCAU to remove this ad!
Old 15th January 2008, 10:40 PM   #2
cleary
Mental in the Face
 
cleary's Avatar
 
Join Date: Apr 2003
Location: Griffith NSW
Posts: 3,878
Default

Quote:
Originally Posted by Fettrix View Post
...
My concern is for the data I have on my LVM set up which is as follows:

/dev/hdc1 - LVM
/dev/hdd1 - LVM
/dev/hde1 - LVM
/dev/hdf1 - LVM
/dev/hdg1 - LVM

...
this is not enough info - lvm consists of physical volumes, volume groups and logical volumes.
LVM stands for Logical Volume Management - that refers to the process of managing the the three items mentioned above.

Can you paste the output of
Code:
lvdisplay
and
Code:
vgdisplay
__________________
SmugMug
cleary is offline   Reply With Quote
Old 15th January 2008, 11:02 PM   #3
Fettrix Thread Starter
Member
 
Fettrix's Avatar
 
Join Date: Jul 2002
Location: Eastern, VIC, (Knox)
Posts: 1,357
Default

Quote:
Originally Posted by cleary View Post
this is not enough info - lvm consists of physical volumes, volume groups and logical volumes.
LVM stands for Logical Volume Management - that refers to the process of managing the the three items mentioned above.

Can you paste the output of
Code:
lvdisplay
and
Code:
vgdisplay
I wish i could paste the info, but as it is, the machine no longer connects to my network due to the corrupted primary hdd. I have tried /etc/init.d/ssh restart but get command not found, which i get when i try to run most things on the box.

I have taken some photos though. Sorry for the blurr.

Code:
lvdisplay

Click to view full-sized image!
Hosted by UGBox Image Store

Code:
vgdisplay

Click to view full-sized image!
Hosted by UGBox Image Store
__________________
* Google * Trades * DVD’s * Ç¥BËRÇÔRË * Last.fm * Steam Games * Indie Count *
__________________
"Two there should be; no more, no less. One to embody power, the other to crave it."

Last edited by Fettrix; 15th January 2008 at 11:17 PM.
Fettrix is offline   Reply With Quote
Old 16th January 2008, 10:24 AM   #4
DaveQB
Member
 
DaveQB's Avatar
 
Join Date: Apr 2002
Location: Narellan, Sydney
Posts: 2,659
Default

Physical Volumes in an LVM has metadata on them. So simply re-install the OS onto a new disk at /dev/hda and then bring your LVM back up.

done
__________________
AMD Phenom X6 1090t @3,600 Mhz (stock) | GA 870A-UD3 | Corsair 16GB DDR3 1333 | GTS 250 stock | 6TB of storage | Running Linux Mint 13 |
trades || My Blog || Linux User 417163 || Twitter || Vegan Australia
DaveQB is offline   Reply With Quote
Old 16th January 2008, 11:12 AM   #5
Fettrix Thread Starter
Member
 
Fettrix's Avatar
 
Join Date: Jul 2002
Location: Eastern, VIC, (Knox)
Posts: 1,357
Default

Quote:
Originally Posted by DaveQB View Post
Physical Volumes in an LVM has metadata on them. So simply re-install the OS onto a new disk at /dev/hda and then bring your LVM back up.

done
OK but going via those pics, (don't forget I am a total noob at this) it seems that there are 6 metadata area's, does this translate into 6 hdd's? If so then wont re installing the OS on a new drive stuff up my LVM as it is?

If i am correct and I di have the LVM spread across the 6 HDD's, how can i remove the dying HDD from it?
__________________
* Google * Trades * DVD’s * Ç¥BËRÇÔRË * Last.fm * Steam Games * Indie Count *
__________________
"Two there should be; no more, no less. One to embody power, the other to crave it."
Fettrix is offline   Reply With Quote
Old 16th January 2008, 12:40 PM   #6
MWP
Member
 
MWP's Avatar
 
Join Date: Jun 2001
Location: Adelaide
Posts: 4,636
Default

Whats does your /etc/fstab contain?

Surely you are not just running one big partition across all drives
__________________
MWP
PC Database AdminCrystalfontz CrystalControl2 Author - Offical Forums
Motoring Worklog - Toyota V8 RA28 Celica
SA Classic Celica Club Member - Website
MWP is offline   Reply With Quote
Old 16th January 2008, 1:03 PM   #7
Fettrix Thread Starter
Member
 
Fettrix's Avatar
 
Join Date: Jul 2002
Location: Eastern, VIC, (Knox)
Posts: 1,357
Default

Quote:
Originally Posted by MWP View Post
Whats does your /etc/fstab contain?

Surely you are not just running one big partition across all drives
Will see what that fstab thingy has in it when i get home tonight.

As for the partition I am on hdc - hdg as that was only being used by windows for file storage, and at the time i set it up, was the simplest method.
__________________
* Google * Trades * DVD’s * Ç¥BËRÇÔRË * Last.fm * Steam Games * Indie Count *
__________________
"Two there should be; no more, no less. One to embody power, the other to crave it."

Last edited by Fettrix; 16th January 2008 at 1:06 PM.
Fettrix is offline   Reply With Quote
Old 16th January 2008, 2:57 PM   #8
DaveQB
Member
 
DaveQB's Avatar
 
Join Date: Apr 2002
Location: Narellan, Sydney
Posts: 2,659
Default

Quote:
Originally Posted by Fettrix View Post
OK but going via those pics, (don't forget I am a total noob at this) it seems that there are 6 metadata area's, does this translate into 6 hdd's? If so then wont re installing the OS on a new drive stuff up my LVM as it is?

If i am correct and I di have the LVM spread across the 6 HDD's, how can i remove the dying HDD from it?
Only mess things up if the OS is in the LV. If the OS is on its own drive, (hda?) and no part of any LV, then it has no baring on the LV and your sweet.

As for the latter question.... you cant, its not a RAID where you can hot remove and hot add, its LVM. Best to run LVM ontop of a RAID.
__________________
AMD Phenom X6 1090t @3,600 Mhz (stock) | GA 870A-UD3 | Corsair 16GB DDR3 1333 | GTS 250 stock | 6TB of storage | Running Linux Mint 13 |
trades || My Blog || Linux User 417163 || Twitter || Vegan Australia
DaveQB is offline   Reply With Quote
Old 16th January 2008, 2:58 PM   #9
DaveQB
Member
 
DaveQB's Avatar
 
Join Date: Apr 2002
Location: Narellan, Sydney
Posts: 2,659
Default

Quote:
Originally Posted by MWP View Post
Whats does your /etc/fstab contain?

Surely you are not just running one big partition across all drives

Yeah it is!!

Talking to Fetta offline and it seems hda has the OS and hdc-hdg have the LV. So he is in the clear as hda appears to be faulty.
__________________
AMD Phenom X6 1090t @3,600 Mhz (stock) | GA 870A-UD3 | Corsair 16GB DDR3 1333 | GTS 250 stock | 6TB of storage | Running Linux Mint 13 |
trades || My Blog || Linux User 417163 || Twitter || Vegan Australia
DaveQB is offline   Reply With Quote
Old 16th January 2008, 6:36 PM   #10
MWP
Member
 
MWP's Avatar
 
Join Date: Jun 2001
Location: Adelaide
Posts: 4,636
Default

Ouch... good luck with that
__________________
MWP
PC Database AdminCrystalfontz CrystalControl2 Author - Offical Forums
Motoring Worklog - Toyota V8 RA28 Celica
SA Classic Celica Club Member - Website
MWP is offline   Reply With Quote
Old 16th January 2008, 6:44 PM   #11
-=N0N@ME420=-
Member
 
-=N0N@ME420=-'s Avatar
 
Join Date: May 2004
Posts: 7,596
Default

Quote:
Originally Posted by DaveQB View Post
Yeah it is!!
Where's the redundancy?
__________________
Quote:
Originally Posted by http://www.palmyria.co.uk/humour/ipu.htm
1 And the Invisible Pink Unicorn spoke unto me, and said, "Write this stuff down."
Quote:
<@Agg> NO WAI
<@Agg> IT'S ALMOST LIKE THEY WERE DRAWING SOME KIND OF ANALOGY
-=N0N@ME420=- is offline   Reply With Quote
Old 16th January 2008, 11:23 PM   #12
f3n1x
Member
 
f3n1x's Avatar
 
Join Date: Mar 2003
Location: Armadale, Melbourne
Posts: 1,653
Default

Sorry to drag the thread semi offtopic but what the hell is with the massive almost magnetic attraction to raid, everything has to be redundant, i find this to be something of a wank factor in non-mission critical environments.

I understand people using raid to provide high-availability and such, i also understand it from the disk io/performance position, what i don't 'get' is this almost fabled faith in raid arrays for prevention of data loss.

I've come across a number of it "professionals" who have discussed how they have a RAID array and can therefore get away with only a monthly backup, my mind boggles at the mere concept.

A well thought out and properly implemented backup plan in my experience is orders of magnitude more important that disk redundancy, and in my working life i've seen a significant number of jobs, contracts and clients saved and lost on good, bad and ugly backup implementations.

As much as this may be an unpopular opinion, i feel it to be a valid one.
__________________
f3n.org|systems admin, graphics & foss software

Canon Eos 40D. Canon 50mm f1.8. Tamron SP AF28-75mm F/2.8 XR Di LD Aspherical (IF). Sigma EF 500 DG Super ETTL Flash(Broken! :/)
f3n1x is offline   Reply With Quote
Old 17th January 2008, 3:11 AM   #13
MWP
Member
 
MWP's Avatar
 
Join Date: Jun 2001
Location: Adelaide
Posts: 4,636
Default

Depends...

RAID0 and RAID1 are useful in a home environment.
Other types of RAID and LVM are overkill though and normally just complicate setups too much (like the above problems).

I keep my docs, work stuff, photos on a RAID1 drive.
Everything else is on plain XFS partitions (the linux server has 3x120Gb and 3x250Gb drives).
If my OS install falls over for whatever reason, its very easy to get everything going again.
__________________
MWP
PC Database AdminCrystalfontz CrystalControl2 Author - Offical Forums
Motoring Worklog - Toyota V8 RA28 Celica
SA Classic Celica Club Member - Website

Last edited by MWP; 17th January 2008 at 3:15 AM.
MWP is offline   Reply With Quote
Old 17th January 2008, 12:16 PM   #14
MrSnuffy
Member
 
MrSnuffy's Avatar
 
Join Date: Jun 2001
Location: Hobart
Posts: 1,235
Default

eh?! LVM is very useful in any environment.

Not everyone needs or wants redundancy for drive failures or the extra speed offered by RAID0.

I just have a bunch of disks in a volume group.
MrSnuffy is offline   Reply With Quote
Old 17th January 2008, 1:07 PM   #15
DaveQB
Member
 
DaveQB's Avatar
 
Join Date: Apr 2002
Location: Narellan, Sydney
Posts: 2,659
Default

Quote:
Originally Posted by -=N0N@ME420=- View Post
Where's the redundancy?
Yeah exactly. A bit concerning. 1 disk goes down and the whole thing is lost!!!
__________________
AMD Phenom X6 1090t @3,600 Mhz (stock) | GA 870A-UD3 | Corsair 16GB DDR3 1333 | GTS 250 stock | 6TB of storage | Running Linux Mint 13 |
trades || My Blog || Linux User 417163 || Twitter || Vegan Australia
DaveQB is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

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 On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!