Re: [gentoo-user] LVM and LABELS in fstab

2011-11-26 Thread James Wall
On Sun, Nov 20, 2011 at 2:32 PM, Dale wrote: > James Wall wrote: >> >> On Thu, Nov 17, 2011 at 11:18 PM, Dale  wrote: >>> >>> Is there a way to make this work?  I googled but I couldn't find anything >>> on >>> this one.  Well, a few worthless hits that just happen to have the words >>> on >>> the

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-24 Thread Neil Bothwick
On Thu, 24 Nov 2011 04:48:28 -0600, Dale wrote: > umount /data > e2fsck -f /dev/mapper/data-data1 > resize2fs /dev/mapper/data-data1 400G > lvreduce -L 400G /dev/data/data1 > pvmove -v /dev/sdb1 I feel safer reducing the filesystem to smaller than the intended partition/LV size, just in case, and

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-24 Thread Dale
Dale wrote: So, the commands is something like this: resize2fs /dev/mapper/data-data1 400G < this should make the VG a absolute size of 400Gbs which leaves a little room left over. If I used a - in front, it would reduce by that amount. > lvreduce -L 400G /dev/data/data1 < I assume I can make

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-24 Thread Alan McKinnon
On Wed, 23 Nov 2011 21:28:56 -0600 Dale wrote: > Dale wrote: > > Neil Bothwick wrote: > >> You have space in the filesystem, but the volume containing that > >> filesystem is too large to move. You must first reduce the > >> filesystem size, with resize2fs or whatever suits your fs, then > >> sh

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-23 Thread Dale
Alex Schuster wrote: Dale asks: OK. Everyone duck, I been thinking on this and Neils info above. lol This is what I sort of figured out and tell me where I am off here. I have to reduce the file system, change the partition in cfdisk (?), resize the lv, then reduce the vg, then I can run pvm

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-23 Thread Alex Schuster
Dale asks: > OK. Everyone duck, I been thinking on this and Neils info above. lol > This is what I sort of figured out and tell me where I am off here. I > have to reduce the file system, change the partition in cfdisk (?), > resize the lv, then reduce the vg, then I can run pvmove? After

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-23 Thread Dale
Dale wrote: Neil Bothwick wrote: You have space in the filesystem, but the volume containing that filesystem is too large to move. You must first reduce the filesystem size, with resize2fs or whatever suits your fs, then shrink the LV with lvresize. That will free up enough extents to be able

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-23 Thread Dale
Neil Bothwick wrote: You have space in the filesystem, but the volume containing that filesystem is too large to move. You must first reduce the filesystem size, with resize2fs or whatever suits your fs, then shrink the LV with lvresize. That will free up enough extents to be able to fit them

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-23 Thread Neil Bothwick
On Wed, 23 Nov 2011 13:07:55 -0600, Dale wrote: > I think we have a problem: > > root@fireball / # pvmove -v /dev/sdb1 > Finding volume group "data" > Archiving volume group "data" metadata (seqno 4). > Creating logical volume pvmove0 > Moving 59604 extents of logical volume d

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-23 Thread Dale
Neil Bothwick wrote: On Tue, 22 Nov 2011 23:50:08 -0600, Dale wrote: Another LVM question. If I want to remove a drive and tell pvmove to move the data off it, can the drive have files being written to it while this is done? I'm wanting to use my old spare drive to move some things around but

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-23 Thread Neil Bothwick
On Tue, 22 Nov 2011 23:50:08 -0600, Dale wrote: > Another LVM question. If I want to remove a drive and tell pvmove to > move the data off it, can the drive have files being written to it > while this is done? I'm wanting to use my old spare drive to move some > things around but right now LVM

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-22 Thread Dale
Another LVM question. If I want to remove a drive and tell pvmove to move the data off it, can the drive have files being written to it while this is done? I'm wanting to use my old spare drive to move some things around but right now LVM has it. I think it is OK but just want to make sure.

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-20 Thread Dale
James Wall wrote: On Thu, Nov 17, 2011 at 11:18 PM, Dale wrote: Is there a way to make this work? I googled but I couldn't find anything on this one. Well, a few worthless hits that just happen to have the words on the same page for some reason. Look for /dev/dm-0 to monitor your lvm partiti

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-17 Thread Dale
Neil Bothwick wrote: On Thu, 17 Nov 2011 11:37:59 -0600, Dale wrote: Also, this will only work if the VG has sufficient unused space (eg. not used by LVs) on the other disk(s) to accomodate the data moved. Thanks. Clear as mud now. lol I'm getting there. Is there a tool to see if there is

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-17 Thread Neil Bothwick
On Thu, 17 Nov 2011 11:37:59 -0600, Dale wrote: > > Also, this will only work if the VG has sufficient unused space (eg. > > not used by LVs) on the other disk(s) to accomodate the data moved. > Thanks. Clear as mud now. lol I'm getting there. Is there a tool > to see if there is enough room

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-17 Thread Dale
Joost Roeleveld wrote: On Thursday, November 17, 2011 10:43:28 AM Florian Philipp wrote: Am 17.11.2011 07:50, schrieb Dale: [...] One more question. I have two drives. A 250Gb and a 750Gb. Originally the data was on the 750Gb drive. I set the 250Gb up on LVM then moved things over from the

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-17 Thread Joost Roeleveld
On Thursday, November 17, 2011 10:43:28 AM Florian Philipp wrote: > Am 17.11.2011 07:50, schrieb Dale: > [...] > > > One more question. I have two drives. A 250Gb and a 750Gb. Originally > > the data was on the 750Gb drive. I set the 250Gb up on LVM then moved > > things over from the 750Gb.

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-17 Thread Florian Philipp
Am 17.11.2011 07:50, schrieb Dale: [...] > One more question. I have two drives. A 250Gb and a 750Gb. Originally > the data was on the 750Gb drive. I set the 250Gb up on LVM then moved > things over from the 750Gb. I then added the 750Gb to the VG and > resized the file system. So, in theory

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-16 Thread Dale
Manuel McLure wrote: You should be able to use e2label (or "tune2fs -L" as I do) on the /dev/data/data1 device to set the filesystem label. That's the logical volume that the operating system needs to mount. # tune2fs -L mylabel /dev/data/data1 should do what you need. I haven't done this with

Re: [gentoo-user] LVM and LABELS in fstab

2011-11-16 Thread Manuel McLure
On Wed, Nov 16, 2011 at 6:52 PM, Dale wrote: > OK.  I jumped into LVM.  I took my spare drive, put it to use with LVM. >  Then copied data from my super large drive to it and backed up some to DVDs > that wouldn't fit.  Then I put the big drive on LVM and put the stuff back. >  Now comes the probl

[gentoo-user] LVM and LABELS in fstab

2011-11-16 Thread Dale
OK. I jumped into LVM. I took my spare drive, put it to use with LVM. Then copied data from my super large drive to it and backed up some to DVDs that wouldn't fit. Then I put the big drive on LVM and put the stuff back. Now comes the problem. I use LABELS in fstab and would like to conti