Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
device-mapper is blocking LVM2
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jul 27, 2009 6:08 pm    Post subject: Reply with quote

Mike Hunt wrote:

So by all means go ahead and reboot. :D


Should he go ahead and reboot, or should he first emerge -C device-mapper && emerge lvm2 ?


my head is spinning at this stage - am lost
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jul 27, 2009 6:19 pm    Post subject: Reply with quote

device-mapper is no longer required by lvm2 >= 2.02.45. It is included in lvm2.

Code:
emerge lvm2


Then if emerge -s baselayout shows version 2.*
Code:
rc-update add lvm boot

Otherwise it should be automatically added to the Runlevel: needed

And then reboot. :wink:


Last edited by Mike Hunt on Mon Jul 27, 2009 6:53 pm; edited 2 times in total
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jul 27, 2009 6:24 pm    Post subject: Reply with quote

Mike Hunt wrote:
device-mapper is no longer required by lvm2 >= 2.02.45. It is included in lvm2.

Code:
emerge lvm2


Then if emerge -s baselayout shows version 2.*
Code:
rc-update add lvm boot

Otherwise it should be automatically added to the Runlevel: needed

And then reboot. :wink:


yeah, that's where I'm lost

I don't know if he's already unmerged device-mapper
He needs to unmerge it before it will let him emerge lvm2

so emerge -C device-mapper && emerge lvm2

(if he hasn't already unmerged device-mapper)
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jul 27, 2009 6:26 pm    Post subject: Reply with quote

From page 1 - 4th post

Exhaust wrote:
Sounds very good that you don't have device mapper and it works.
I unmerged my old device mapper, and my old lvm2. Then i emerged lvm2 again to the newest version sys-fs/lvm2-2.02.49-r1.
No complaints from the lvm install, and no dependencies to device-mapper reported :)


:D
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jul 27, 2009 6:39 pm    Post subject: Reply with quote

Mike Hunt wrote:
From page 1 - 4th post

Exhaust wrote:
Sounds very good that you don't have device mapper and it works.
I unmerged my old device mapper, and my old lvm2. Then i emerged lvm2 again to the newest version sys-fs/lvm2-2.02.49-r1.
No complaints from the lvm install, and no dependencies to device-mapper reported :)


:D



cool. I'm blind!
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jul 27, 2009 6:51 pm    Post subject: Reply with quote

cach0rr0 wrote:
cool. I'm blind!


Happens to all of us. Time for a coffee. :)
Back to top
View user's profile Send private message
Exhaust
n00b
n00b


Joined: 26 Jul 2009
Posts: 24
Location: Umeå, Sweden

PostPosted: Mon Jul 27, 2009 8:10 pm    Post subject: Reply with quote

cach0rr0 wrote:
actually

https://bugs.gentoo.org/show_bug.cgi?id=265599

i just googled 'device mapper blocking lvm'


Ohh man you found the stuff I was looking for, thanks alot :)
I have googled and googled and i didn't find it. Nice with helpful people :)

I'm going to try a reboot soon, I have to wait for some compiling to finish first.
I will tell you how it turned out.

Thanks
/Fredrik
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jul 27, 2009 8:35 pm    Post subject: Reply with quote

make your backups, and take advantage of quickpkg

if things fail miserably, quickpkg can save your arse.

best of luck, let us know how things turn out.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jul 27, 2009 8:53 pm    Post subject: Reply with quote

I doubt if anything could fail miserably, at worse the volume group wont be initialized, and the logical volumes won't be mounted. It's at most a minor nuisance. :D

You can Display volume groups and logical volumes
Code:
vgs
lvs


Gentoo LVM2 installation wrote:
Continuing After a Reboot

If you have interrupted the Gentoo installation at one point and want to continue, you need to create the volume device nodes first:

Code Listing 3.1: Reactivating the volumes

# vgscan --mknodes
Back to top
View user's profile Send private message
Exhaust
n00b
n00b


Joined: 26 Jul 2009
Posts: 24
Location: Umeå, Sweden

PostPosted: Mon Jul 27, 2009 10:40 pm    Post subject: Reply with quote

Hey, thanks everyone for all the help.

It works flawlessly :)

Thanks
/Fredrik
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Mon Jul 27, 2009 10:48 pm    Post subject: Reply with quote

Awesome, :D
Back to top
View user's profile Send private message
Exhaust
n00b
n00b


Joined: 26 Jul 2009
Posts: 24
Location: Umeå, Sweden

PostPosted: Mon Jul 27, 2009 10:58 pm    Post subject: Reply with quote

Hmm, now i only have one more issue to deal with. wich I have had a feeling could have with lvm and/or device-mapper to do....
guess I don't need to adress that in this thread but i will try to ask nontheless :P

My FTP is mounted on the LVM volume, wich is about 3TB in size spanning 4-5 physical disks. Sometimes, not always when i create a directory via FTP the system freezes for like a minute or two...nothing happens. then it starts working again.
even the console freezes when this happens.

The problem didn't go away with this update :(
the only thing not updated now is the kernel and the hardware.
Any thoughts?

The FTP server is glftpd btw.

I guess i will open a new thread about this problem elsewhere :)

**edit** it's 3TB not 3GB as previously stated :oops:


thanks
/Fredrik


Last edited by Exhaust on Mon Jul 27, 2009 11:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jul 27, 2009 11:19 pm    Post subject: Reply with quote

what file system is it, and how full is the partition?

Not the total disk itself, I mean how much of that 3GB is actually in use?

The more full the file system, in general the worse the write performance you're going to see - this includes directory creation.

Why 3GB? Is this to limit how much space the FTP users can use? If so I'd opt for setting a per-user disk quota, rather than keeping the volume so small.

If all else fails, strace it - stop the daemon through the init script, then sudo -u <ftpdaemonacct> strace /path/to/binary -somestartupargument -anotherstartupargument -etc

when all other options have run out, strace is your best friend :)
Back to top
View user's profile Send private message
Exhaust
n00b
n00b


Joined: 26 Jul 2009
Posts: 24
Location: Umeå, Sweden

PostPosted: Mon Jul 27, 2009 11:36 pm    Post subject: Reply with quote

cach0rr0 wrote:
what file system is it, and how full is the partition?

Not the total disk itself, I mean how much of that 3GB is actually in use?

The more full the file system, in general the worse the write performance you're going to see - this includes directory creation.

Why 3GB? Is this to limit how much space the FTP users can use? If so I'd opt for setting a per-user disk quota, rather than keeping the volume so small.

If all else fails, strace it - stop the daemon through the init script, then sudo -u <ftpdaemonacct> strace /path/to/binary -somestartupargument -anotherstartupargument -etc

when all other options have run out, strace is your best friend :)


Well it's actually VERY full, but i belive the problem was there even when it wasn't that full.
It's about 99% full :(
SORRY, I meant 3TB not GB :oops: and that is all disk i have available at the moment.
It's ext3 filesystem on the LVM volume and ext2 on the system.
I found out that only the LVM volume freezes during creation of directories, NEVER files, I can still use the console on the system partition (Do ls -la and stuff) If I try to ls -la on the LVM when this happens the console freezes until the FTP is done creating the dir.

It's not a really big problem, but i get aggrivated when it happens :P

thanks
/Fredrik
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Mon Jul 27, 2009 11:48 pm    Post subject: Reply with quote

haha...i was wondering if you meant 3TB

I don't really have any ideas then - performance degradation as the volume becomes full is normal, but I haven't a clue if that's part of the cause; and doubt it since as you say, the issue remained when it was less full.
Back to top
View user's profile Send private message
Exhaust
n00b
n00b


Joined: 26 Jul 2009
Posts: 24
Location: Umeå, Sweden

PostPosted: Tue Jul 28, 2009 12:23 am    Post subject: Reply with quote

I will try to find a place to put a new thread about this. Maybe someone has a clue.
I have to do some more testing and see if it's only glftpd who triggers the problem. It's really weird it only affects directories as far as i have seen. i can upload hundreds of files with good speed (20-30MB/s) then when it comes to creating a dir it freezes for a while then continues with the same high speed as before.

glftpd is a rather server old program and not maintained anymore. And i think the install procedure is a bit unconventional. maybe it's a new system/old glftpd issue. though i never heard or found anyone else with the same problem.

thanks
/Fredrik
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Jul 28, 2009 7:12 am    Post subject: Reply with quote

Exhaust wrote:
I will try to find a place to put a new thread about this. Maybe someone has a clue.


I think the Networking & Security forum is the right one. :)
Back to top
View user's profile Send private message
Exhaust
n00b
n00b


Joined: 26 Jul 2009
Posts: 24
Location: Umeå, Sweden

PostPosted: Tue Jul 28, 2009 1:28 pm    Post subject: Reply with quote

Opened a new thread about the slow dir creation problem
[url]
https://forums.gentoo.org/viewtopic-t-784787.html
[/url]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum