I'm getting ext3-fs maximal mount count warnings on logical volumes that are regularly mounted und unmounted for backup. Of course, I can just tune2fs all of them to stop that. But, if I wanted to find out for instance which one "dm-16" is, how do I do that?
Kai
On Mon, Oct 20, 2008 at 07:31:22PM +0200, Kai Schaetzl wrote:
I'm getting ext3-fs maximal mount count warnings on logical volumes that are regularly mounted und unmounted for backup. Of course, I can just tune2fs all of them to stop that. But, if I wanted to find out for instance which one "dm-16" is, how do I do that?
ls -l /dev/mapper | grep \b16\b
On Mon, Oct 20, 2008 at 06:36:30PM +0100, Luciano Rocha wrote:
On Mon, Oct 20, 2008 at 07:31:22PM +0200, Kai Schaetzl wrote:
I'm getting ext3-fs maximal mount count warnings on logical volumes that are regularly mounted und unmounted for backup. Of course, I can just tune2fs all of them to stop that. But, if I wanted to find out for instance which one "dm-16" is, how do I do that?
ls -l /dev/mapper | grep \b16\b
A higher-level approach:
# dmsetup ls
Luciano Rocha wrote on Mon, 20 Oct 2008 18:37:58 +0100:
# dmsetup ls
thanks, this works great. It works better with grepping: dmsetup ls|grep "16)" as the other one can easily match much more lines (half of my devices were mounted last time at 16 minutes ;-)
Kai