- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: make lvol read only
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 03:23 AM
06-29-2006 03:23 AM
I have multiple databases that the users should have "read only" access to located in one lvol. Is this a way to protect the data?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 03:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 03:34 AM
06-29-2006 03:34 AM
Re: make lvol read only
If lvol is raw and you are not going to create any file system on it then you can change the permission to that lvol device to read only 755 ( give write access to root only).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 09:17 AM
06-29-2006 09:17 AM
Re: make lvol read only
in fact this SAM option is changing the mount command to do a "read-only" mount - mount -r.
See "man 1m mount" as mentioned.
No way to protect a LVOL, but you can protect a whole VG by vgchange in read only mode.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2006 09:57 AM
06-29-2006 09:57 AM
Re: make lvol read only
However, in the case where an LVOL is used as a raw character or block device (ie, no filesystem is mounted) then the mode of the device node does directly matter so that setting the device node to read-only would have exactly that effect -- except for those processes running under an effective UID of zero. In that case (as with filesystems) permissions don't matter when root is in the house.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 03:33 AM
07-05-2006 03:33 AM
Re: make lvol read only
So let me see if I understand.
I can use SAM to change the file system, mounted on the lvol to read only, but not the lvol itself?
By selecting read only under the "Modify a Local File System" screen in SAM I would be doing the same thing as an umount and mount at the command line?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 03:50 AM
07-05-2006 03:50 AM
Re: make lvol read only
mount -r /dev...
instead of
mount /dev...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 03:53 AM
07-05-2006 03:53 AM
Re: make lvol read only
So I take that as a yes to my questions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 04:00 AM
07-05-2006 04:00 AM
Re: make lvol read only
You are really adding a layer of obfuscation when you add SAM to this question because SAM (at most) can only do what the underlying commands and system calls allow it to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 04:07 AM
07-05-2006 04:07 AM
Re: make lvol read only
At this point we would prefer that only root have write access to the file systems.
The file systems in question are already mounted. Are you saying to umount them, then mount them with the -r option at the command line? And then even root will have read only access?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 06:43 AM
07-05-2006 06:43 AM
Re: make lvol read only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2006 06:59 AM
07-05-2006 06:59 AM
Re: make lvol read only
Certainly you can mount the filesystems assuming they are filesystem databases read only.
Or in the case of a raw lvol make the permissions 444. But be aware as stated above root could still write.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2006 02:25 AM
07-21-2006 02:25 AM