* [linux-lvm] lvm + raid (confused)
@ 2005-11-30 7:01 Wallace Wadge
2005-11-30 8:48 ` Heinz Mauelshagen
2005-11-30 9:08 ` [linux-lvm] " Wallace Wadge
0 siblings, 2 replies; 3+ messages in thread
From: Wallace Wadge @ 2005-11-30 7:01 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 618 bytes --]
Hi,
I've got a hardware raid in place. I'd like to add snapshots via lvm to it
but unfortunately the underlying filesystem is ext3 which cannot be resized
downwards; therefore I would like to add another disk.
Now for the problem:
I would like to add a secondary (physical) disk to the mix and use it for
snapshots only. However I do not want the lvm to stay writing to that disk
for normal data since this seconday disk would not be part of my hardware
raid. In other words, I wouldn't care if the snapshot drive failed because I
would just replace it.
Is this at all possible?
Thanks.
Wallace
[-- Attachment #2: Type: text/html, Size: 647 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] lvm + raid (confused)
2005-11-30 7:01 [linux-lvm] lvm + raid (confused) Wallace Wadge
@ 2005-11-30 8:48 ` Heinz Mauelshagen
2005-11-30 9:08 ` [linux-lvm] " Wallace Wadge
1 sibling, 0 replies; 3+ messages in thread
From: Heinz Mauelshagen @ 2005-11-30 8:48 UTC (permalink / raw)
To: LVM general discussion and development; +Cc: hjm
On Wed, Nov 30, 2005 at 08:01:20AM +0100, Wallace Wadge wrote:
> Hi,
>
> I've got a hardware raid in place. I'd like to add snapshots via lvm to it
> but unfortunately the underlying filesystem is ext3 which cannot be resized
> downwards; therefore I would like to add another disk.
>
> Now for the problem:
>
> I would like to add a secondary (physical) disk to the mix and use it for
> snapshots only. However I do not want the lvm to stay writing to that disk
> for normal data since this seconday disk would not be part of my hardware
> raid. In other words, I wouldn't care if the snapshot drive failed because I
> would just replace it.
>
> Is this at all possible?
Hi Wallace,
yes, it is.
pvcreate the physical disk and vegextend your VG by it.
When creating snapshots, add the path to that PV (say /dev/sdc) to the lvcreate
command line:
lvcreate -LSnapshotSize -nSnapshotName /dev/YourVG/YourLV /dev/sdc
You need to make sure though, that spave for LVs you want to be resilient, gets
allocated on your HW RAID, rather than to the single drive PV.
There's 2 ways to achive that:
o add the path to your HW-RAID to all your lvcreate/lvextend commands
(but the ones to create snapshots)
o if your snapshots are short-term (which is typical), vgreduce the
VG by the single drive PV until you need to create (a) snapshot(s) again;
of course that solution falls short with respect to creating/extending
LVs *while* the PV is a member of your VG
>
> Thanks.
> Wallace
> _______________________________________________
> 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/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Cluster and Storage Development 56242 Marienrachdorf
Germany
Mauelshagen@RedHat.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 3+ messages in thread* [linux-lvm] Re: lvm + raid (confused)
2005-11-30 7:01 [linux-lvm] lvm + raid (confused) Wallace Wadge
2005-11-30 8:48 ` Heinz Mauelshagen
@ 2005-11-30 9:08 ` Wallace Wadge
1 sibling, 0 replies; 3+ messages in thread
From: Wallace Wadge @ 2005-11-30 9:08 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 426 bytes --]
Perfect! Thanks!
Sadly I cannot extend the filesystem anyway thanks to the installer
defaulting to ext3 so I'm using lvm for almost nothing except snapshots (i.e.
I shouldn't be needing lvcreate/lvextend).
What I was worried was: my fs is definetely on the HW raid (logically), but
I wasn't sure if free blocks would have come from somewhere else.
Anyway this seems to do the trick. Thanks once again.
Wallace
[-- Attachment #2: Type: text/html, Size: 445 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-30 9:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-30 7:01 [linux-lvm] lvm + raid (confused) Wallace Wadge
2005-11-30 8:48 ` Heinz Mauelshagen
2005-11-30 9:08 ` [linux-lvm] " Wallace Wadge
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).