* [linux-lvm] add mirror to already existing LV?
@ 2008-02-25 21:46 Don Buchholz
0 siblings, 0 replies; 2+ messages in thread
From: Don Buchholz @ 2008-02-25 21:46 UTC (permalink / raw)
To: linux-lvm
I have Fedora 8 system with operating system installed on a small
(18GB) hard disk. A second disk (320GB) is being added to hold
user data. Now that there is a second disk, I would like to alter
the existing LVs so they have mirrors. Is this possible?
I couldn't find anything that looked promising on the lvchange(8)
man page.
- Don
=========================================================
Some of the gory details:
-------------------------
# lvmdiskscan
/dev/sda1 [ 196.08 MB]
/dev/sda2 [ 16.75 GB] LVM physical volume
/dev/sdb1 [ 196.08 MB]
/dev/sdb2 [ 297.90 GB] LVM physical volume
0 disks
2 partitions
0 LVM physical volume whole disks
2 LVM physical volumes
# pvscan
PV /dev/sda2 VG vg00 lvm2 [16.75 GB / 32.00 MB free]
PV /dev/sdb2 VG vg00 lvm2 [297.88 GB / 297.88 GB free]
Total: 2 [314.62 GB] / in use: 2 [314.62 GB] / in no VG: 0 [0 ]
# vgs
VG #PV #LV #SN Attr VSize VFree
vg00 2 5 0 wz--n- 314.62G 297.91G
# lvscan
ACTIVE '/dev/vg00/lv00_root' [8.00 GB] inherit
ACTIVE '/dev/vg00/lv04_home' [4.22 GB] inherit
ACTIVE '/dev/vg00/lv02_var' [1.50 GB] inherit
ACTIVE '/dev/vg00/lv03_varlog' [2.00 GB] inherit
ACTIVE '/dev/vg00/lv01_swap' [1.00 GB] inherit
--
- Don Buchholz, Sr. Systems Admin. <buchholz@imoveinc.com>
- iMove, Inc., 1732 NW Quimby St., Suite #200, Portland, Oregon 97209
- 503.273.2926 (phone) 503.221.2172 (fax)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] add mirror to already existing LV?
@ 2008-02-26 7:50 laurent.nicol
0 siblings, 0 replies; 2+ messages in thread
From: laurent.nicol @ 2008-02-26 7:50 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 2483 bytes --]
I think that for each existing Lv you have to make lvconvert -m1 /dev/
vg00/lv00_root and so on. at the end you have fully mirrored your existing
LV.
Cdlt / Regards,
Laurent NICOL
Orange Business Services
MHS Engineering&Tools - Server Management
BP80 rue de la Touche LAMBERT
35512 Cesson Sévigné cedex FRANCE
Phone: +33.2.23.28.62.52
Mobile Phone: +33 6 08 99 45 70
http://www.equant.com
Don Buchholz <buchholz@easystreet.net>
Sent by: linux-lvm-bounces@redhat.com
25/02/2008 22:46
Please respond to LVM general discussion and development
To: linux-lvm@redhat.com
cc:
bcc:
Subject: [linux-lvm] add mirror to already existing LV?
I have Fedora 8 system with operating system installed on a small
(18GB) hard disk. A second disk (320GB) is being added to hold
user data. Now that there is a second disk, I would like to alter
the existing LVs so they have mirrors. Is this possible?
I couldn't find anything that looked promising on the lvchange(8)
man page.
- Don
=========================================================
Some of the gory details:
-------------------------
# lvmdiskscan
/dev/sda1 [ 196.08 MB]
/dev/sda2 [ 16.75 GB] LVM physical volume
/dev/sdb1 [ 196.08 MB]
/dev/sdb2 [ 297.90 GB] LVM physical volume
0 disks
2 partitions
0 LVM physical volume whole disks
2 LVM physical volumes
# pvscan
PV /dev/sda2 VG vg00 lvm2 [16.75 GB / 32.00 MB free]
PV /dev/sdb2 VG vg00 lvm2 [297.88 GB / 297.88 GB free]
Total: 2 [314.62 GB] / in use: 2 [314.62 GB] / in no VG: 0 [0 ]
# vgs
VG #PV #LV #SN Attr VSize VFree
vg00 2 5 0 wz--n- 314.62G 297.91G
# lvscan
ACTIVE '/dev/vg00/lv00_root' [8.00 GB] inherit
ACTIVE '/dev/vg00/lv04_home' [4.22 GB] inherit
ACTIVE '/dev/vg00/lv02_var' [1.50 GB] inherit
ACTIVE '/dev/vg00/lv03_varlog' [2.00 GB] inherit
ACTIVE '/dev/vg00/lv01_swap' [1.00 GB] inherit
--
- Don Buchholz, Sr. Systems Admin. <buchholz@imoveinc.com>
- iMove, Inc., 1732 NW Quimby St., Suite #200, Portland, Oregon 97209
- 503.273.2926 (phone) 503.221.2172 (fax)
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
[-- Attachment #2: Type: text/html, Size: 4344 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-26 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25 21:46 [linux-lvm] add mirror to already existing LV? Don Buchholz
-- strict thread matches above, loose matches on Subject: below --
2008-02-26 7:50 laurent.nicol
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).