Unable To Fix Asm Driver Permissions

This section describes the ASMCMD Oracle ASM File Access Control commands. For information about Oracle ASM File Access Control, see 'Managing Oracle ASM File Access Control for Disk Groups'.

Table 12-53 provides a summary of ASMCMD Oracle ASM File Access Control commands.

Table 12-53 Summary of ASMCMD file access control commands

Oracle ASM (Automated Storage Management) is a data volume manager for. ASM library driver on boot (y/n) n: y Fix permissions of Oracle ASM disks on.

CommandDescription

Changes the user group of a file or list of files.

Changes permissions of a file or list of files.

Changes the owner of a file or list of files.

Lists the user groups to which a user belongs.

Adds or removes users from an existing user group.

Lists user groups.

Lists users in a disk group.

Creates a new user group.

Adds a user to disk group.

Changes the password of a user.

Deletes a user group.

Deletes a user from a disk group.


chgrp

Purpose

Changes the user group of a file or list of files.

Syntax and Description


chgrpusergroupfile [file ..]

Table 12-54 lists the syntax options for the chgrp command.

Table 12-54 Options for the chgrp command

OptionDescription

usergroup

Name of the user group.

file

Name of a file.


Only the file owner or the Oracle ASM administrator can use this command. If the user is the file owner, then the user must also be either the owner or a member of the group for this command to succeed.

This command accepts a file name or multiple file names separated by spaces.

Examples

The following are examples of the chgrp command that change the Oracle ASM user group of the specified files.

chmod

Purpose

Changes permissions of a file or list of files.

Syntax and Description


chmodmodefile [file ..]

mode can be one of the following forms:

  • { ugouguogougoa } {+- } {rwrw}

    a specifies permissions for all users, u specifies permissions for the owner of the file, g specifies the group permissions, and o specifies permissions for other users.

  • { 046} {046} {046}

    The first digit specifies owner permissions, the second digit specifies group permissions, and the third digit specifies other permissions.

Table 12-55 lists the syntax options for the chmod command.

Table 12-55 Options for the chmod command

OptionDescription

6

Read write permissions

4

Read only permissions

0

No permissions

u

Owner permissions, used with r or w

g

Group permissions, used with r or w

o

Other user permissions, used with r or w

a

All user permissions, used with r or w

+

Add a permission, used with r or w

-

Removes a permission, used with r or w

r

Read permission

w

Write permission

file

Name of a file


This command accepts a file name or multiple file names separated by spaces. The specified files must be closed.

You can only set file permissions to read-write, read-only, and no permissions. You cannot set file permissions to write-only.

To view the permissions on a file, use the ASMCMD ls command with the --permission option. See 'ls'.

Examples

The following are examples of the chmod command that change the permissions of the specified files.

chown

Purpose

Changes the owner of a file or list of files.

Syntax and Description


chownuser[:usergroup]file [file ..]

Table 12-56 lists the syntax options for the chown command.

Table 12-56 Options for the chown command

OptionDescription

user

The name of the user that becomes the new owner.

usergroup

Name of the user group to which the user belongs.

file

Name of a file.


user typically refers to the user that owns the database instance home. Oracle ASM File Access Control uses the operating system (OS) name to identify a database.

This command accepts a file name or multiple file names separated by spaces. The specified files must be closed.

Only the Oracle ASM administrator can use this command.

Examples

The following are examples of the chown command that change the owner of the specified files to the oracle1 operating system user.

groups

Purpose

Lists all the user groups to which the specified user belongs.

Syntax and Description


groupsdiskgroupuser

Table 12-57 lists the syntax options for the groups command.

Table 12-57 Options for the groups command

OptionDescription

diskgroup

Name of the disk group to which the user belongs.

user

Name of the user.


Examples

The following is an example of the groups command that displays the user groups of the data disk group to which the oracle1 user belongs.

grpmod

Purpose

Adds or removes operating system (OS) users to and from an existing Oracle ASM user group.

Syntax and Description


grpmod { --add--delete } diskgroupusergroupuser[user..]

Table 12-58 lists the syntax options for the grpmod command.

Table 12-58 Options for the grpmod command

OptionDescription

--add

Specifies to add users to the user group.

--delete

Specifies to delete users from the user group.

diskgroup

Name of the disk group to which the user group belongs.

usergroup

Name of the user group.

user

Name of the user to add or remove from the user group.


Only the owner of the user group can use this command. The command requires the SYSASM privilege to run.

This command accepts an operating system user name or multiple user names separated by spaces. The operating system users are typically owners of a database instance home.

Examples

The following are examples of the grpmod command. The first example adds the oracle1 and oracle2 users to the asm_fra user group of the fra disk group. The second example removes the oracle2 user from the asm_data user group of the data disk group.

lsgrp

Purpose

Lists all Oracle ASM user groups or only groups that match a specified pattern.

Syntax and Description


lsgrp [--suppressheader][-a] [ -Gdiskgroup ] [ pattern]

Table 12-59 lists the syntax options for the lsgrp command.

Table 12-59 Options for the lsgrp command

OptionDescription

--suppressheader

Suppresses column headings.

-a

Lists all columns.

-Gdiskgroup

Limits the results to the specified disk group name.

pattern

Displays the user groups that match the pattern expression.


Examples

The following are examples of the lsgrp command. The first example displays a subset of information about the user groups whose name matches the asm% pattern. The second example displays all information about all the user groups.

lsusr

Purpose

Lists Oracle ASM users in a disk group.

Syntax and Description


lsusr [--suppressheader][-a] [-Gdiskgroup ] [ pattern ]

Table 12-60 lists the syntax options for the lsusr command.

Table 12-60 Options for the lsusr command

OptionDescription

-a

List all users and the disk groups to which the users belong.

--suppressheader

Suppresses column headings.

-Gdiskgroup

Limits the results to the specified disk group name.

pattern

Displays the users that match the pattern expression.


Examples

The following is an example of the lsusr command. The example lists users in the data disk group and also shows the operating system Id assigned to the user.

mkgrp

Purpose

Creates a new Oracle ASM user group.

Syntax and Description


mkgrpdiskgroupusergroup[user][user..]

Table 12-61 lists the syntax options for the mkgrp command.

Table 12-61 Options for the mkgrp command

OptionDescription

diskgroup

Name of the disk group to which the user group is added.

usergroup

Name of the user group to add. 30 is the maximum number of characters.

user

Name of the database user to add to the user group.


You can optionally specify a list of users to be included as members of the new user group.

Examples

The following is an example of the mkgrp command. This example creates the asm_data user group in the data disk group and adds the oracle1 and oracle2 users to the user group.

mkusr

Purpose

Adds an operating system (OS) user to a disk group.

Syntax and Description


mkusrdiskgroupuser

Table 12-62 lists the syntax options for the mkusr command.

Table 12-62 Options for the mkusr command

OptionDescription

diskgroup

Ramsey Lewis With One Voice Rar Download. Come Back To Sorrento (alt tk) (3: 2. John Henry (alt tk) (2: 3. We Blue It (alt tk) (5: 3. The Ramsey Lewis Trio - Country Meets The Blues (LP)0. Your Cheatin Heart (3: 0. Ramsey lewis with one voice rar Jazz pianist Ramsey Lewis returns to his gospel roots on With One Voice. Featuring the Sanctuary Choir of J.W. James Memorial A.M.E. Church, where Lewis ' sister is Reverend, the album finds the pianist performing live with his small group alongside the traditional gospel choir. The CD is in excellent condition and has been played in the house and the car. With One Voice is fantastic. Ramsey Lewis' piano playing captivates you, so that you do not mind hearing the CD each time you are in the car. Classic and new gospel music are given a wonderful interpretation. View credits, reviews, tracks and shop for the 2005 CD release of With One Voice on Discogs.

Specifies the name of the disk group to which the user is to be added.

user

Name of the user to add.


The user to be added must be a valid operating system user. Only a user authenticated as SYSASM can run this command.

Examples

The following are examples of the mkusr command. The first example adds the oracle1 user to the data disk group. The second example adds the oracle2 user to the fra disk group.

passwd

Purpose

Changes the password of a user.

Syntax and Description


passwduser

Table 12-63 lists the syntax options for the passwd command.

Table 12-63 Options for the passwd command

OptionDescription

user

Name of the user.


An error is raised if the user does not exist in the Oracle ASM password file. The user is first prompted for the current password, then the new password. The command requires the SYSASM privilege to run.

Examples

The following is an example of the passwd command that changes the password of the oracle2 user.

rmgrp

Purpose

Removes a user group from a disk group.

Syntax and Description


rmgrpdiskgroupusergroup

Table 12-64 lists the syntax options for the rmgrp command.

Table 12-64 Options for the rmgrp command

OptionDescription

diskgroup

Name of the disk group to which the user group belongs.

usergroup

Name of the user group to delete.


Removing a group might leave some files without a valid user group. To ensure that those files have a valid group, explicitly update those files to a valid user group. See 'chgrp'.

The command must be run by the owner of the user group and also requires the SYSASM privilege to run.

Examples

The following is an example of the rmgrp command that removes the asm_data user group from the data disk group.

rmusr

Purpose

Deletes an operating system (OS) user from a disk group.

Syntax and Description


rmusr [-r] diskgroupuser

Table 12-65 lists the syntax options for the rmusr command.

Table 12-65 Options for the rmusr command

OptionDescription

-r

Removes all files in the disk group that the user owns at the same time that the user is removed.

diskgroup

Specifies the name of the disk group from which the user is to be deleted.

user

Name of the user to delete.


The command requires the SYSASM privilege to run.

Examples

The following is an example of the rmusr command that removes the oracle2 user from the data disk group.

Posted in: Technical Track

It is a controversial question whether to use ASMLIB for managing disks for a ASM instance but I don’t want to start a new discussion about it in this post. I want to talk about updating ASMLIB after or before updating kernel version.
We know that the ASMLIB driver is kernel dependent and has to be updated to match the kernel version. We have to go to the Oracle site, find the proper version for ASMLIB driver, download it and install. But beginning oracleasm-support version 2.1.0 and higher we can use the embedded function “update-driver” which can help us to save time and simplify the process of updating ASMLIB driver.
How does it work? As example, we have installed Linux with kernel version 2.6.18-194.8.1.0.1.el5 x86_64 but ASMLIB driver is for the old kernel version 2.6.18-194.3.1.
As result we are getting an error trying to start ASMLIB.

Instead searching, downloading and installing the new driver you can just run “oracleasm update-driver” and automatically get the updated version for the driver.

Voila! We have an updated working driver.
And, we also have some options for this feature:
-d allows us only download the driver.
-n allows only determine what driver would be updated without taking any action.

Interested in working with Gleb? Schedule a tech call.