On July 2, 2014 6:48:10 AM EDT, lynn <lynn@steve-ss.com> wrote:
On Wed, 2014-07-02 at 12:34 +0200, Bernhard Voelker wrote:
On 07/02/2014 11:50 AM, lynn wrote:
On Wed, 2014-07-02 at 11:25 +0200, Per Jessen wrote:
lynn wrote:
Can I make /home a partition? Without repartitioning? If someone can reply with an acronym, I think I've got it. But the documentation doesn't make it easy.
If you have a spare partition, you could copy /home over there and mount that.
No, the whole disk is one partition:(
You could create a file system in a (huge) file [1][2], loop-mount it somewhere [3], move /home/* to there [4], umount it [5], and mount it (still with -o loop) on /home [6].
[0] export IMG="/somewhere/home.img" [1] dd if=/dev/zero of=$IMG bs=1G count=100 [2] /sbin/mkfs.ext4 -F $IMG /mnt [3] mount -o loop $IMG /mnt [4] mv /home/* /mnt [5] umount /mnt [6] mount -o loop $IMG /home
Notes: a) Loop-mounting is of course a bit slower than a native disk. b) The sizes of the dd(1) command above may need to be adjusted. c) The mv(1) command above may have to be tweaked to match all directories there (or for omitting lost+found). d) You'd have to adapt /etc/fstab to mount /home automatically on boot.
You didn't tell why you want /home on a separate file system, so I can't judge if the above suffices your needs.
No, sorry. I have, for my sins, to get some sort of failover for our domain file server. Having failed so badly with dfs, I'm going to try drdb. The test boxes I have have the sync data in /home but /home is a folder. Your loop mount is looking good. Does it count as a drdb block device thingy? Thanks, L x
Drdb? I assume you mean drbd? Distributed - replicated- block device I think a loop mount will work for that, but it may fail your testing where real disks / partitions / logical volumes would pass. See http://lists.linbit.com/pipermail/drbd-user/2011-May/016009.html which ends with a statement not o do it. If this is for testing only why not hook up a second drive for a while. Sata / eSata / usb3 would all work fine I would think. Sata / eSata run faster, but you can get almost 100 MB / sec out of usb3. I have a laptop with 2 usb3 ports. One ran 20% faster than the other on a recent simultaneous test. (Md5sum of 500 GB of identical data on both disks.) Anyway, don't assume all usb3 ports are the same speed. You could also consider iscsi but you might hit issues with that you would not have with physical disks, especially if you have a high i/o load during the testing. Greg -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org