A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

How to find lun number in Solaris 10

Solaris 10: Find LUN id
Step 1. Use format command to find your disk.

12. c4t60060480000190105493533033443843d0
/scsi_vhci/ssd@g60060480000190105493533033443843

Step 2. Find Logical Path of the disk

# luxadm probe|grep c4t60060480000190105493533033443843d0
Logical Path:/dev/rdsk/c4t60060480000190105493533033443843d0s2

Step 3. Get Device Address
# luxadm display /dev/rdsk/c4t60060480000190105493533033443843d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c4t60060480000190105493533033443843d0s2
Vendor: EMC
Product ID: SYMMETRIX
Revision: 5773
Serial Num: 105493″R0
Unformatted capacity: 1035787.500 MBytes
Read Cache: Enabled
Minimum prefetch: 0x0
Maximum prefetch: 0xffff
Device Type: Disk device
Path(s):
/dev/rdsk/c4t60060480000190105493533033443843d0s2
/devices/scsi_vhci/ssd@g60060480000190105493533033443843:c,raw
Controller /devices/pci@500/pci@0/pci@9/SUNW,qlc@0/fp@0,0
Device Address 50060482d531e552,335 Host controller port WWN 21000024ff3019ea
Class primary
State ONLINE
Controller /devices/pci@500/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0
Device Address 50060482d531e558,335 Host controller port WWN 21000024ff3019eb
Class primary
State ONLINE

Create different layout volumes using vxassist command

The “vxassist” Utility

Syntax: vxassist –g diskgroup make volname length [attributes]

# vxassist –g datadg make vol1 50m

# vxassist –g datadg make vol1 50m datadg01

# vxassist –g datadg make vol1 500m layout=stripe

# vxassist –g datadg make vol1 500m layout=stripe stripeunit=64k

# vxassist –g datadg make vol1 200m layout=mirror disk01 disk02

veritas volume manager remove volumes

Syntax : vxassist –g diskgroup remove volume volname

Example One.

# vxassist –g oradg remove volume oravol1

Example Two.

# vxedit –rf rm oravol

The above command will complete remove all the underlying plexes
and subdisks of the volume “oravol”

veritas volume manager – Add mirror volume

Syntax : vxassist –g diskgroup mirror volume_name

Example:

# vxassist –g oradg mirror oracle

The above command mirrors the oracle volume

# vxassist –g oradg mirror oracle oradg01

The above command mirrors oracle volume on to the disk oradg01

# vxmirror –g oradg –a

The above command mirrors all the unmirrored volumes in oradg

veritas volume manager remove volume

Syntax : vxassist –g remove volume

Example One.

# vxassist –g oradg remove volume oravol1

Example Two.

# vxedit –rf rm oravol

The above command will complete remove all the underlying plexes
and subdisks of the volume “oravol”

Remove the disk/subdisk/plex from veritas volume manager

#vxplex -g appdg -o rm dis vol103-01

If the disk group is exported, then you can force
bash-3.2# vxplex -g appdg -o rm -f dis vol121-01

#Remove disk from diskgroup
vxdg -g appdg rmdisk appdg01

Dissociating and removing plexes
When a plex is no longer needed, you can dissociate it from its volume and remove it as an object from VxVM. You might want to remove a plex for the following reasons:
to provide free disk space
to reduce the number of mirrors in a volume so you can increase the length of another mirror and its associated volume. When the plexes and subdisks are removed, the resulting space can be added to other volumes
to remove a temporary mirror that was created to back up a volume and is no longer needed
to change the layout of a plex
To save the data on a plex to be removed, the configuration of that plex must be known. Parameters from that configuration (stripe unit size and subdisk ordering) are critical to the creation of a new plex to contain the same data. Before a plex is removed, you must record its configuration.
See “Displaying plex information” on page 218.”
To dissociate a plex from the associated volume and remove it as an object from VxVM, use the following command:
# vxplex [-g diskgroup] -o rm dis plex

For example, to dissociate and remove a plex named vol01-02 in the disk group, mydg, use the following command:
# vxplex -g mydg -o rm dis vol01-02

This command removes the plex vol01-02 and all associated subdisks.
Alternatively, you can first dissociate the plex and subdisks, and then remove them with the following commands:
# vxplex [-g diskgroup] dis plex

# vxedit [-g diskgroup] -r rm plex

When used together, these commands produce the same result as the vxplex -o rm dis command. The -r option to vxedit rm recursively removes all objects from the specified object downward. In this way, a plex and its associated subdisks can be removed by a single vxedit command.