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
 
LinkBack Search this Thread
Old 07-10-2012, 08:04 AM   #1
sluge
Member
 
Registered: Dec 2006
Location: Russia,52
Posts: 97

Rep: Reputation: 6
Question How to convert mirrored LMV's LV to fully striped?


Hello!

I have mirrored LVM's LV, that was creating using command:

lvcreate -n lv_my -L 700G -i3 -I128 vg_my
lvconvert -m1 vg_my/lv_my -b

But when I take a look at my LV, I got:
lvs vg_my -a -o name,devices,segtype
LV Devices Type
lv_my lv_my_mimage_0(0),lv_my_mimage_1(0) mirror
[lv_my_mimage_0] /dev/sdc(0),/dev/sdd(0) striped
[lv_my_mimage_1] /dev/sde(0) linear
[lv_my_mimage_1] /dev/sdf(1) linear
[lv_my_mlog] /dev/sdf(0) linear

So, as you see lv_my_mimage_0 is striped, but lv_my_mimage_1 and lv_my_mimage_1 are linear!

The only way to create fully mirrored and striped LV is to launch:

lvcreate -n lv_my -L 700G -i3 -I128 vg_my -m1

lvs vg_my -a -o name,devices,segtype
LV Devices Type
lv_my lv_my_mimage_0(0),lv_my_mimage_1(0) mirror
[lv_my_mimage_0] /dev/sdc(0),/dev/sdd(0),/dev/sde(0) striped
[lv_my_mimage_1] /dev/sdf(0),/dev/sdg(0),/dev/sdh(0) striped
[lv_my_mlog] /dev/sdh(59734) linear


I need to convert existing striped LV to striped mirrored LV, is any command to do this?
 
Old 07-10-2012, 08:33 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,435
Blog Entries: 11

Rep: Reputation: 181Reputation: 181
Check if lvconvert suites

Code:
LVCONVERT(8)                                                                                                                                                                        LVCONVERT(8)

NAME
       lvconvert - convert a logical volume from linear to mirror or snapshot
 
  


Reply

Tags
lvm


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vgreduce LMV klompie Linux - General 5 06-17-2011 09:07 AM
[SOLVED] question about LMV griffinwebnet Linux - General 3 03-09-2011 03:12 PM
Failed Hardware Mirror Disk- Want to convert one drive to non-mirrored runatyr Linux - Hardware 2 08-31-2010 01:19 AM
LMV on 200 student computers that has run out of room in VMWare? cafetono Fedora 4 02-24-2009 08:13 AM
Help me convert fully to slackware ;-) rock_ya_baby Slackware 1 05-22-2004 02:36 PM


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