LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-04-2017, 08:53 AM   #1
OutSiderBR
Member
 
Registered: Jan 2015
Location: São Paulo-SP-Brazil
Distribution: Slackware
Posts: 69

Rep: Reputation: Disabled
Install RAID1 with LVM partitions


I would like to introduce RAID 1 in my system with LVM partitions without loss of data, of course. The system may be rebooted as many times as necessary. I will install a second disk with exactly the same characteristics as the one already installed. I am using SLES 11 SP4.

The system is partitioned like this:

Quote:
lim1-190:~ # cat /etc/fstab
/dev/system/root_lv / ext3 acl,user_xattr,relatime 1 1
/dev/sda1 /boot ext2 acl,user_xattr 1 2
/dev/system/var_lv /var ext3 acl,user_xattr,relatime 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/local/swap/swap1 swap swap defaults 0 0
funny:~ # pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 system lvm2 a-- 118.94g 0
funny:~ # vgs
VG #PV #LV #SN Attr VSize VFree
system 1 2 0 wz--n- 118.94g 0
funny:~ # lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
root_lv system -wi-ao--- 102.94g
var_lv system -wi-ao--- 16.00g
funny:~ # fdisk -l

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005043a

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 626687 312320 83 Linux
/dev/sda2 626688 250068991 124721152 8e Linux LVM
Is there a guide of how to do it ?
Thanks in advance.
 
Old 08-04-2017, 08:59 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
LVM can do its own mirroring (a/k/a RAID1). You can add your second disk as PV in your existing VG then use lvconvert to convert the individual LVs to mirrors.
 
Old 08-04-2017, 09:07 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Newer versions can even do RAID1 rather than simple mirroring, but I would doubt SLES 11 has it.
Ask SUSE as you no doubt have a support contract.
 
Old 08-07-2017, 11:28 AM   #4
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
I had written couple of memos that suits for you:
Mirroring Linux system disk
Redundant disks without MDRAID
 
1 members found this post helpful.
Old 08-07-2017, 01:13 PM   #5
OutSiderBR
Member
 
Registered: Jan 2015
Location: São Paulo-SP-Brazil
Distribution: Slackware
Posts: 69

Original Poster
Rep: Reputation: Disabled
Thank you

Quote:
Originally Posted by voleg View Post
I had written couple of memos that suits for you:
Mirroring Linux system disk
Redundant disks without MDRAID
Thank you very much. I will follow the instructions and see if they work fine for me. Once again, thank you.
 
  


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
With bootable RAID1 and LVM, what benefit do HDD partitions provide? Cracked Pane Linux - Newbie 6 12-07-2016 11:16 PM
Question about mdadm and adding partitions to RAID1 post-install paveway Linux - Software 1 07-20-2012 08:24 AM
Install CentOS V5.6 onto pre-degraded RAID1 + LVM? goony1 Linux - Software 0 06-11-2011 01:06 AM
LXer: How To Resize LVM Software RAID1 Partitions (Shrink & Grow) LXer Syndicated Linux News 0 01-09-2009 02:11 PM
LXer: Recover Data From RAID1 LVM Partitions With Knoppix Linux LiveCD LXer Syndicated Linux News 0 04-24-2007 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:54 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