Problem owner partitions after reboot

General support questions
Post Reply
txemari
Posts: 11
Joined: 2020/05/06 15:16:31

Problem owner partitions after reboot

Post by txemari » 2020/05/06 15:18:41

Hello,
I have some partitions for informix to which I put permissions like
chown informix: informix / dev / dm-7
chmod 660 / dev / dm-7
and by doing ls -l dm-7

brw-rw ----. 1 informix informix 253, 7 May 6 15:15 dm-7
I start the informix correctly but when restarting the machine it leaves the permissions incorrectly (again as root: disk) and I can no longer start it and it exits

[root @ informix14 dev] # ls -l dm-7
brw-rw ----. 1 root disk 253, 7 may 6 15:15 dm-7

What can be ? how do I solve it ? as information say that the disk has a link
lrwxrwxrwx. 1 root root 7 May 6 15:15 / dev / mapper / centos-dev_infx_rootdbs -> ../dm-7

Thanks for the info

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Problem owner partitions after reboot

Post by TrevorH » 2020/05/07 01:53:01

You need to put in some udev rules to set the ownership. This is an example from my system where I set the ownership of an LVM LV

Code: Select all

ENV{DEVTYPE}=="disk", ENV{DISK}=="vg/lv", MODE="0660", OWNER="trevor", GROUP="trevor"
If you're using plain partitions and not LVs then you'll need to amend that. Check the output from udevadm info /dev/dm-7 for example to see what things are set that you can base a decision off.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

txemari
Posts: 11
Joined: 2020/05/06 15:16:31

Re: Problem owner partitions after reboot

Post by txemari » 2020/05/07 08:43:56

Thank you very,very,very much
Problem solved with your solution. I have created a rule udev in file /etc/udev/rules.d and problem solved

Bye and Thank you very,very,very much

Post Reply