oracleasm-deletedisk man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]

ORACLEASM-DELETEDIS(8)	   Oracle ASM Support Manual	ORACLEASM-DELETEDIS(8)

NAME
       oracleasm-deletedisk - Unmark an ASM disk, returning it to the system

SYNOPSIS
	   oracleasm deletedisk [-l <manager>] [-v] <device>|<label>
	   oracleasm deletedisk -h
	   oracleasm deletedisk -V

DESCRIPTION
       The deletedisk command drops a disk from the view of the Oracle ASM
       Library and erases the ASM header. This returns the disk to the system
       for other uses.

       The oracleasm-scandisks(8) command can be run on other nodes in a
       cluster to propagate the diskĀ“s removal. See the section MANAGING DISKS
       IN A CLUSTER.

OPTIONS
       -l|--manager <manager>
	   Specifies the manager device to be queried. Almost always
	   unnecessary, as only one manager device is in use.

       -v|--verbose
	   Verbose operation. This will print any debugging information.

       <device>|<label>
	   The DEVICE path or LABEL of the disk to remove.

       -h|--help
	   Display usage information.

       -V|--version
	   Display version information.

MANAGING DISKS IN A CLUSTER
       The Oracle ASM Library, by design, does not talk to other nodes in a
       cluster. This is the job of the ASM software. The ASM Library merely
       provides an interface from ASM to the disks. However, the ASM Library
       does ensure that the same LABEL is used to see a disk on all nodes.
       Thus, while each node may have a different device file (/dev/sda1 vs
       /dev/sdc1), The ASM Library will see the label VOL1, and all nodes will
       know they are accessing the same physical disk.

       In a cluster, creation and removal of ASM disks is a two step process.

	1.  Create (oracleasm-createdisk(8)) or remove (oracleasm-
	   deletedisk(8)) the disk on any one node in the cluster.

	2.  Scan (oracleasm-scandisks(8)) the volumes on all other nodes in
	   the cluster.
       Step (1) may be repeated as many times as necessary, adding and/or
       removing multiple disks. Once all disk changes have been made, a single
       call to scandisks is made on the other nodes. It will pick up all
       changes at once. When configuring 100 disks, while 100 createdisk
       commands need to be run on one node (possibly via a script), only one
       scandisks command needs to be run on every other node.

       As scandisks is run when the ASM Library driver starts up, changes are
       also seen by nodes that are newly created.

SAFELY MANAGING DISKS
       The Oracle ASM Library and its driver are an interface to disks. They
       are not cluster-aware, and do not communicate with the ASM process or
       other nodes. Thus, care must be taken when adding and removing disks.

       When a disk device supports partitioning (eg, with fdisk(8) or
       parted(8)), oracleasm-createdisk(8) will refuse to consider the entire
       unpartitioned disk. The disk must be partitioned and that partition be
       marked for ASM use. Access to unpartitioned disks has been specifically
       disallowed as we have seen higher incidence of accidental repartitions
       (thus overwriting ASM data) with unpartitioned than partitioned disks.
       Disks that cannot be partitioned (eg, loop and md devices) are not
       subject to this restriction.

       When marking a disk with oracleasm-createdisk(8), make sure that the
       disk partition in question is not being used elsewhere on the SAN.

       When removing a disk with the oracleasm-deletedisk(8) command, make
       sure that the ASM disk is not used by any ASM process anywhere on the
       SAN.

       Care must also be taken when running the oracleasm-scandisks(8)
       command. Use the -s option when disks that are being scanned are
       already in use by ASM processes. If in-use disks do not need to be
       scanned, they can be excluded with the -x option. Finally, the disks
       needing to be scanned can be explicitly specified on the scandisks
       command line.

EXAMPLES
       oracleasm deletedisk VOL1
	   Remove the disk labeled VOL1. The Oracle ASM Library will no longer
	   see this disk.

SEE ALSO
       oracleasm-listdisks(8), oracleasm-createdisk(8), oracleasm-scandisks(8)

AUTHOR
       Oracle Corporation

COPYRIGHT
       Copyright 2007, 2008 Oracle. All rights reserved.

ORACLEASM
       Part of the oracleasm(8) support tools.

oracleasm-support 2.1.4		  04/21/2009		ORACLEASM-DELETEDIS(8)
[top]

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net