Wednesday, March 17, 2010

How to discover Lun in Solaris

How to discover Lun in solaris without rebooting system.

You can use devfsadm command.

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d0
          /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
       1. c1d0
          /pci@0,0/pci-ide@1f,1/ide@1/cmdk@0,0
Specify disk (enter its number): ^C



Type CTRL-C to quit "format".

If your disks do not show up, use devfsadm:


# devfsadm
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0d0
          /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
       1. c0d1
          /pci@0,0/pci-ide@1f,1/ide@0/cmdk@1,0
       2. c1d0
          /pci@0,0/pci-ide@1f,1/ide@1/cmdk@0,0
       3. c1d1
          /pci@0,0/pci-ide@1f,1/ide@1/cmdk@1,0
Specify disk (enter its number): ^

No comments:

Post a Comment