LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2015, 07:26 AM   #16
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823

Quote:
Originally Posted by descendant_command View Post
So if an LV spans several disks and one fails, you loose the lot?
Or is it possible to (fairly easily) rebuild / salvage what is on the unfailed disks?
You can (attempt to) mount a lv "partial" - LVM will drop the missing device(s). Truncating a filesystem makes an awful mess - fsck will fix the f/s; your files are your responsibility. It is possible you can get files back - but the fsck will "fix" any files where necessary. Check "lost+found" for fragments.
The only sensible alternative is to add new volume(s) and restore.
 
Old 05-13-2015, 07:32 AM   #17
willc86
Member
 
Registered: Dec 2014
Posts: 54

Original Poster
Rep: Reputation: Disabled
thanks everyone for the help! seems to be working. Only thing I did was just change the path of my scripts from /backup to /backups (which I am sure I could have kept the same name, but just for testing purposes)
so that directory is completely dedicated on 1TB for just back ups.

what I pretty much did was use - for people who are curious about partitioning and adding a new drive.

#sudo lshw -C disk (let it run)
#fdisk /dev/sdb
#n
#p
#1
#1
#w

then

# df -h (searched for /dev/sdb1 and made sure it had the memeory)
mkdir /backups
mount /dev/sdb1 /backups
vim /etc/fstab and add the line in there


mount /dev/sdb1

The format I used was ext3, which I gues sit is a standard for ubuntu machines

Later on, I am going to do a virtual server (just virtual box or KVM, nothing crazy) and do some ZFS snapshots and keep anyone who is interested
 
Old 05-13-2015, 08:25 AM   #18
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,385

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by syg00 View Post
You always need backups.
Of course.
Quote:
Originally Posted by syg00 View Post
You can (attempt to) mount a lv "partial" - LVM will drop the missing device(s). Truncating a filesystem makes an awful mess - fsck will fix the f/s; your files are your responsibility. It is possible you can get files back - but the fsck will "fix" any files where necessary. Check "lost+found" for fragments.
The only sensible alternative is to add new volume(s) and restore.
Thanks, that's about what I thought - you are trading the added features for a multiplied risk of failure.
 
  


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
[SOLVED] Why does Gparted give the option to delete my drive space? Advice Pro Linux - Hardware 5 02-15-2011 11:12 AM
How to free up space on a Linux Red Hat Server running Kerio Mail Server ohioguy47 Linux - Newbie 6 08-04-2008 09:49 PM


All times are GMT -5. The time now is 07:22 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration