Sunday, December 12, 2010

Luxadm

luxadm utility is used to manage the Sun Enterprise Network Array (SENA) specifically the Sun StorEdge A5x00 disk array, the SPARCstorage Array (SSA), and the Sun Fire 880 internal disk arrays. The command line must contain a subcommand and options if applicable.
luxadm is used for internal SUN fibre disks as well as external disk arrays. 




It has many sub-commands to do various operations on the disk or enclosure.
  • display, probe, start, stop, power_on, power_off, offline, online, forceclip, etc...
To display the connectivity status of the HBA ports
# luxadm -e port
Found path to 3 HBA ports
/devices/pci@8,700000/SUNW,qlc@2/fp@0,0:devctl        CONNECTED
/devices/pci@8,700000/SUNW,qlc@2,1/fp@0,0:devctl     CONNECTED
/devices/pci@8,600000/SUNW,qlc@4/fp@0,0:devctl        CONNECTED


To reinitiate the connection
# luxadm -e forcelip /devices/pci@8,700000/SUNW,qlc@2/fp@0,0:devctl







zonecfg - Adding new lofs filesystem

zonecfg is used to configure the zone configuration. It is used to add the resources in the zone1.xml file which is under /etc/zones/ directory.



(server1:/)# zonecfg -z zone1
zonecfg:zone1> add fs
zonecfg:zone1:fs> set dir=/application/ARC
zonecfg:zone1:fs> set special=/zones/zone1/applicationARC
zonecfg:zone1:fs> set type=lofs
zonecfg:zone1:fs> add options [rw,nodevices]
zonecfg:zone1:fs> end
zonecfg:zone1> commit
zonecfg:zone1> exit
(server1:/)#

Sub command 'add' is used to add a particular resource to the zone configuration.

'end' to end the resource specification.

'commit' confirms the changes and writes the content permanently to disk.