linux – 拒绝调整文件系统大小的权限

linux – 拒绝调整文件系统大小的权限,第1张

概述我试图在我已经成长的多重卷上调整文件系统大小,重新扫描所有磁盘,并调整多路径映射的大小. # resize2fs /dev/mapper/my_vol resize2fs 1.43-WIP (20-Jun-2013)Filesystem at /dev/mapper/my_vol is mounted on /var/lib/myvol; on-line resizing required 我试图在我已经成长的多重卷上调整文件系统的大小,重新扫描所有磁盘,并调整多路径映射的大小.
# resize2fs /dev/mapper/my_vol resize2fs 1.43-WIP (20-Jun-2013)filesystem at /dev/mapper/my_vol is mounted on /var/lib/myvol; on-line resizing requiredold_desc_blocks = 6,new_desc_blocks = 12resize2fs: Permission denIEd to resize filesystem# strace -f resize2fs /dev/mapper/my_vol(finishes with)....snip.... write(1,"filesystem at /dev/mapper/my_vol"...,101filesystem at /dev/mapper/my_vol is mounted on /var/lib/myvol; on-line resizing required) = 101write(1,"old_desc_blocks = 6,new_desc_bl"...,42old_desc_blocks = 6,new_desc_blocks = 12) = 42access("/sys/fs/ext4/features/Meta_bg_resize",R_OK) = 0open("/var/lib/my_vol",O_RDONLY) = 4ioctl(4,0x40086610,0x7fffb729c2e8)    = -1 EPERM (Operation not permitted)write(2,"resize2fs",9resize2fs)                = 9write(2,": ",2: )                       = 2write(2,"Permission denIEd to resize file"...,38Permission denIEd to resize filesystem) = 38ioctl(2,SNDCTL_TMR_TIMEBASE or TCGETS,{B38400 opost isig icanon echo ...}) = 0ioctl(2,{B38400 opost isig icanon echo ...}) = 0 write(2,"\n",1)                       = 1exit_group(1)                           = ?

我想保留这台服务器,因为它托管了很多虚拟机,而且我以前没有经历过以root用户身份运行resizefs时被拒绝的权限,有什么可能会拒绝root简单的调整大小?任何帮助非常感谢.

服务器禁用了selinux,multipath -ll显示处于读写状态的卷. (WP = RW)

myvol (3600c0ff00013d24d8c20725301000000) dm-12 HP,P2000 G3 iSCSIsize=186G features='1 queue_if_no_path' hwhandler='0' wp=rw

我注意到挂载点上的ls -ld显示

drwxr-xr-x  5 root root 4096 Jan 27 12:49 myvol

并不是

drwxr-xr-x. 5 root root 4096 Jan 27 12:49 myvol#ls -Zd myvoldrwxr-xr-x root root ?                                myvol

有关?

解决方法 / dev / mapper /可能包含块设备而不是符号链接.如果是,请删除它们,运行udevadm trigger.为Debian工作7.8. 总结

以上是内存溢出为你收集整理的linux – 拒绝调整文件系统大小的权限全部内容,希望文章能够帮你解决linux – 拒绝调整文件系统大小的权限所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1035750.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存