Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] LVM and LABELS in fstab
Date: Wed, 23 Nov 2011 19:10:09
Message-Id: 4ECD448B.3050603@gmail.com
In Reply to: Re: [gentoo-user] LVM and LABELS in fstab by Neil Bothwick
1 Neil Bothwick wrote:
2 > On Tue, 22 Nov 2011 23:50:08 -0600, Dale wrote:
3 >
4 >> Another LVM question. If I want to remove a drive and tell pvmove to
5 >> move the data off it, can the drive have files being written to it
6 >> while this is done? I'm wanting to use my old spare drive to move some
7 >> things around but right now LVM has it. I think it is OK but just want
8 >> to make sure. If it is not OK, do I have to unmount the LV first?
9 > Once you start pvmove running, LVM will not allocate any more space on
10 > the drive, so any files written to the LV will go on another drive.
11 >
12 > If you mean you want to write to it separately from LVM, of course you
13 > can, as long as you are using a different partition.
14 >
15 >
16
17 I think we have a problem:
18
19 root@fireball / # pvmove -v /dev/sdb1
20 Finding volume group "data"
21 Archiving volume group "data" metadata (seqno 4).
22 Creating logical volume pvmove0
23 Moving 59604 extents of logical volume data/data1
24 Insufficient free space: 59604 extents needed, but only 118 available
25 Unable to allocate mirror extents for pvmove0.
26 Failed to convert pvmove LV to mirrored
27 root@fireball / # pvdisplay
28 --- Physical volume ---
29 PV Name /dev/sdb1
30 VG Name data
31 PV Size 232.83 GiB / not usable 2.55 MiB
32 Allocatable yes (but full)
33 PE Size 4.00 MiB
34 Total PE 59604
35 Free PE 0
36 Allocated PE 59604
37 PV UUID Nxvrjn-BuaK-RGsF-F32S-0EaI-W4xe-H6Lnjl
38
39 --- Physical volume ---
40 PV Name /dev/sdc1
41 VG Name data
42 PV Size 698.64 GiB / not usable 4.84 MiB
43 Allocatable yes
44 PE Size 4.00 MiB
45 Total PE 178850
46 Free PE 118
47 Allocated PE 178732
48 PV UUID NF6I4G-L1L5-0VDE-HyUc-ESH3-CfV3-eUo676
49
50 root@fireball / # df
51 Filesystem 1K-blocks Used Available Use% Mounted on
52 rootfs 19534436 7249460 12284976 38% /
53 /dev/root 19534436 7249460 12284976 38% /
54 rc-svcdir 1024 120 904 12% /lib64/rc/init.d
55 udev 10240 360 9880 4% /dev
56 shm 8232972 0 8232972 0% /dev/shm
57 /dev/sda1 186663 28128 148898 16% /boot
58 /dev/sda8 9614116 4366692 4759052 48% /var
59 /dev/sda6 11535344 5332948 5616428 49% /usr/portage
60 /dev/sda7 48828008 11273180 37554828 24% /home
61 /dev/mapper/data-data1
62 960906608 275263224 636841120 31% /data
63 tmpfs 8232972 0 8232972 0% /var/tmp/portage
64 /dev/sda9 59434744 31373872 25041732 56% /mnt/temp
65 root@fireball / #
66
67
68 So, I got space left on sdc but it won't move the data off sdb. Did
69 this run off into the ditch? :/
70
71 Dale
72
73 :-) :-)
74
75 --
76 I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Replies

Subject Author
Re: [gentoo-user] LVM and LABELS in fstab Neil Bothwick <neil@××××××××××.uk>