LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-15-2012, 03:32 AM   #1
request
LQ Newbie
 
Registered: Jan 2010
Location: Romania
Distribution: Ubuntu, Centos
Posts: 6

Rep: Reputation: 0
Question Raid + LVM add new raid device to LVM, problem


Hello, I have a LVM with 2 raid1 device, and want to add new raid1 device.

[root@fileserver ~]# lvdisplay
--- Logical volume ---
LV Name /dev/mapper_vg/share_lv
VG Name mapper_vg
LV UUID WNLEJQ-syST-Kg1M-SWLk-VcXo-o9LQ-NNpuxe
LV Write Access read/write
LV Status available
# open 1
LV Size 2,61 TB
Current LE 21376
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 252:0

[root@fileserver ~]# pvdisplay
--- Physical volume ---
PV Name /dev/md3
VG Name mapper_vg
PV Size 1,80 TB / not usable 113,25 MB
Allocatable yes (but full)
PE Size (KByte) 131072
Total PE 14707
Free PE 0
Allocated PE 14707
PV UUID hyoUPl-Nm98-MuLn-46Lr-qOHW-8ytU-Mcteac

--- Physical volume ---
PV Name /dev/md4
VG Name mapper_vg
PV Size 931,51 GB / not usable 11,12 MB
Allocatable yes
PE Size (KByte) 131072
Total PE 7452
Free PE 783
Allocated PE 6669
PV UUID 1B7HeF-dKLk-DOf4-qEXc-Pyo3-7FBN-5gV7Jr

[root@fileserver ~]# cat /proc/mdstat
Personalities : [raid1]
md5 : active raid1 sdd1[1] sdf1[0]
1926241536 blocks [2/2] [UU]
[=>...................] resync = 7.4% (144304640/1926241536) finish=151.7min speed=195682K/sec

md4 : active raid1 sdc1[0] sde1[1]
976759936 blocks [2/2] [UU]

md3 : active raid1 sda5[0] sdb5[1]
1927791872 blocks [2/2] [UU]
....................................................

[root@fileserver ~]# mdadm --detail /dev/md3
/dev/md3:
Version : 0.90
Creation Time : Tue Oct 5 21:07:35 2010
Raid Level : raid1
Array Size : 1927791872 (1838.49 GiB 1974.06 GB)
Used Dev Size : 1927791872 (1838.49 GiB 1974.06 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 3
Persistence : Superblock is persistent

Update Time : Wed Aug 15 10:39:59 2012
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : bfddaca7:45bf9290:04894333:532a878b
Events : 0.1289245

Number Major Minor RaidDevice State
0 8 5 0 active sync /dev/sda5
1 8 21 1 active sync /dev/sdb5

[root@fileserver ~]# mdadm --detail /dev/md4
/dev/md4:
Version : 0.90
Creation Time : Sat May 7 11:33:24 2011
Raid Level : raid1
Array Size : 976759936 (931.51 GiB 1000.20 GB)
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 4
Persistence : Superblock is persistent

Update Time : Wed Aug 15 10:40:14 2012
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 59f4348d:ac6274c0:77478036:3648553c (local to host fileserver.server)
Events : 0.807409

Number Major Minor RaidDevice State
0 8 33 0 active sync /dev/sdc1
1 8 65 1 active sync /dev/sde1

[root@fileserver ~]# mdadm --detail /dev/md5
/dev/md5:
Version : 0.90
Creation Time : Wed Aug 15 11:08:54 2012
Raid Level : raid1
Array Size : 1926241536 (1837.01 GiB 1972.47 GB)
Used Dev Size : 1926241536 (1837.01 GiB 1972.47 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 5
Persistence : Superblock is persistent

Update Time : Wed Aug 15 11:19:42 2012
State : active, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

Rebuild Status : 9% complete

UUID : 5e20067a:d53135ae:77478036:3648553c (local to host fileserver.server)
Events : 0.3

Number Major Minor RaidDevice State
0 8 81 0 active sync /dev/sdf1
1 8 49 1 active sync /dev/sdd1

When try to prepare new raid1 device for LVM

[root@fileserver ~]# pvcreate /dev/md5
/dev/md5: pe_align (128 sectors) must not be less than pe_align_offset (8388607 sectors)
/dev/md5: Format-specific setup of physical volume failed.
Failed to setup physical volume "/dev/md5"

[root@fileserver ~]# cat /sys/block/md5/alignment_offset
-1

other raid1 device show
[root@fileserver ~]# cat /sys/block/md3/alignment_offset
0
[root@fileserver ~]# cat /sys/block/md4/alignment_offset
0

[root@fileserver ~]# cat /sys/block/md5/queue/hw_sector_size
512
[root@fileserver ~]# cat /sys/block/md4/queue/hw_sector_size
512
[root@fileserver ~]# cat /sys/block/md3/queue/hw_sector_size
512


Any idea to add /dev/md5 to LVM ??

Last edited by request; 08-15-2012 at 07:13 AM.
 
Old 08-15-2012, 03:44 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Hi and welcome to LQ.

What is the distribution and version you are using. A google query about your issue seems to indicate that this might be a bug in LVM and/or linux kernel wrt very large disks. It might be fixed in a new version of LVM/linux.
 
Old 08-15-2012, 03:51 AM   #3
request
LQ Newbie
 
Registered: Jan 2010
Location: Romania
Distribution: Ubuntu, Centos
Posts: 6

Original Poster
Rep: Reputation: 0
problem was solved when I used CentOS, but

[root@fileserver ~]# cat /etc/redhat-release
Mandriva Linux release 2010.0 (Official) for i586

[root@fileserver ~]# uname -r
2.6.31.5-desktop-1mnb

[root@fileserver ~]# rpm -qa | grep lvm2
lvm2-2.02.53-9.2mnb2
liblvm2cmd2.02-2.02.53-9.2mnb2

How to upgrade in Mandriva ?
 
Old 08-15-2012, 04:06 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Quote:
Originally Posted by request View Post
problem was solved when I used CentOS, but

[root@fileserver ~]# cat /etc/redhat-release
Mandriva Linux release 2010.0 (Official) for i586

[root@fileserver ~]# uname -r
2.6.31.5-desktop-1mnb

[root@fileserver ~]# rpm -qa | grep lvm2
lvm2-2.02.53-9.2mnb2
liblvm2cmd2.02-2.02.53-9.2mnb2

How to upgrade in Mandriva ?
I'm sorry I don't know anything about Mandrive. I suggest you post another question (a new thread) in the specific sub-forum.
 
  


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
[SOLVED] Configuring / Usage of RAID 0 & RAID 5 with PV / VG / LVM John King Linux - Server 9 08-17-2012 10:00 PM
Anyone has experience running parted on raid device with LVM ? jkl555 Linux - Newbie 3 03-28-2011 09:09 PM
libblkid uuid_parse() failing to parse UUID for lvm volume on raid device wroom Programming 0 09-04-2010 07:08 PM
Dual drive failure in RAID 5 (also, RAID 1, and LVM) ABL Linux - Server 6 05-27-2009 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:07 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
Open Source Consulting | Domain Registration