Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
I'm running XFS on top of DRBD on top of LVM on top of a hardware RAID-5. My reasoning was I didn't want to leave a ton of room for my system and log files but wanted to be able to expand them later if I needed to. I figured the easiest way was to put my whole HWRaid-5 Array into the LVM and then parse it out as needed. I'm also running several servers/apps on this cluster whose data I wanted isolated so one service couldn't be crashed by another one using all the space up. This also seemed the most flexible. /dev/sda1 (100%) -> vg0 (lvm2) [sda1 is my HWRAID-5 array] /dev/vg0 > vg0/root “/” (1G) xfs filesystem vg0/var “/var” (1G) xfs filesystem vg0/swap “swap” (1g) swap drbd0 = /dev/vg0/home - HA mounts drbd0 on /home (XFS) drbd1 = /dev/vg0/mysql - HA mounts drbd1 on /mnt/mysql (XFS) drbd2 = /dev/vg0/basic - HA mounts drbd2 on /usr/lib/basic (XFS) drbd3 = /dev/vg0/smb - HA mounts drbd3 on /mnt/smb (XFS) Expanding the drbd's is a little bit of a hassle but since I should have to do it that often I don't care that much. I wonder if there is a linux quota service somewhere that could monitor directory usage instead of using partitions to do that. Hadn't thought of that before but may need to look into it. Expanding a quota (like on a webserver) would be a lot easier. Oh well. I'd love to hear someone poke some holes in what my newbie brain came up with. Rois On Thu, 2008-02-14 at 15:46 +0100, Harald Rinker wrote: > drbd at bobich.net schrieb: > >>> What is the best solution to use LVM with drbd > >>> > >>> i think there are 2 possible way?s to do so > >>> > >>> 1. drbd on top of lvm > >>> 2. lvm on top of drbd > >>> > >>> what is the preferred? > > > > Logically, I'd have thought that LVM should be on top of DRBD. What > > scenario do you have in mind that would benefit from running it the > > other way around? > > > > Gordan > > _______________________________________________ > > drbd-user mailing list > > drbd-user at lists.linbit.com > > http://lists.linbit.com/mailman/listinfo/drbd-user > Maybe you will add pv´s to grow disk size etc. it will be a > solution. The question is is this stable because i have > runing such a config. Must i change this or it is ok. > > Harry > > > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user