All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] resize2fs results in "permission denied"
@ 2015-07-07 17:19 chris
  2015-07-08 12:31 ` [linux-lvm] [solved] " chris
  0 siblings, 1 reply; 3+ messages in thread
From: chris @ 2015-07-07 17:19 UTC (permalink / raw)
  To: linux-lvm; +Cc: chris

problem:
	after successful "lvextend -L +15G" , resize2fs gets "permission denied". 

strace says: 

	open("/dev/mapper/vg_phoesrv2b-varlog", O_RDONLY|O_EXCL) = -1 EACCES (Permission denied)
	open("/dev/mapper/vg_phoesrv2b-varlog", O_RDWR) = -1 EACCES (Permission denied)

ls: 
	brw-rw---- 1 root disk 254, 44 Apr 11 23:15 /dev/mapper/vg_phoesrv2b-varlog 

lvs: 
	varlog     vg_phoesrv2b -wi-ao--  25,00g

system:
	debian 7.8
	resize2fs 1.42.5 (29-Jul-2012)
	lvm2 2.02.95-8
	linux 3.18.9
	
never seen that one. what's going on? 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [linux-lvm] [solved] resize2fs results in "permission denied"
  2015-07-07 17:19 [linux-lvm] resize2fs results in "permission denied" chris
@ 2015-07-08 12:31 ` chris
  2015-07-09 11:32   ` Anatoly Pugachev
  0 siblings, 1 reply; 3+ messages in thread
From: chris @ 2015-07-08 12:31 UTC (permalink / raw)
  To: linux-lvm; +Cc: chris

/dev/mapper contains device nodes, e.g.:
    brw-rw---- 1 root disk 254, 73 Apr 11 23:15 vg_phoesrv2b-lvsnap

those should be symlinks ( except for/dev/mapper/control ):
    vg_phoesrv2b-lvsnap -> ../dm-31

solution:
    rm /dev/mapper/vg_phoesrv2b-lvsnap
    udevadm trigger

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] [solved] resize2fs results in "permission denied"
  2015-07-08 12:31 ` [linux-lvm] [solved] " chris
@ 2015-07-09 11:32   ` Anatoly Pugachev
  0 siblings, 0 replies; 3+ messages in thread
From: Anatoly Pugachev @ 2015-07-09 11:32 UTC (permalink / raw)
  To: chris, LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 575 bytes --]

I wonder, no one should mess directly with /dev/mapper ! Better would be to
fill a bug report (reproducible/consistent), if it's not fixed in recent
lvm releases.

Thanks.

On Wed, Jul 8, 2015 at 3:31 PM, chris <lvm-contact@citecs.de> wrote:

> /dev/mapper contains device nodes, e.g.:
>     brw-rw---- 1 root disk 254, 73 Apr 11 23:15 vg_phoesrv2b-lvsnap
>
> those should be symlinks ( except for/dev/mapper/control ):
>     vg_phoesrv2b-lvsnap -> ../dm-31
>
> solution:
>     rm /dev/mapper/vg_phoesrv2b-lvsnap
>     udevadm trigger
>  <http://tldp.org/HOWTO/LVM-HOWTO/>
>

[-- Attachment #2: Type: text/html, Size: 1033 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-09 11:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 17:19 [linux-lvm] resize2fs results in "permission denied" chris
2015-07-08 12:31 ` [linux-lvm] [solved] " chris
2015-07-09 11:32   ` Anatoly Pugachev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.