Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 15641
  • Last Modified:

devfsadm, cfgadm

Hi,

Can anyone tell me what does these two command do:

1. devfsadm –C   --I know this is the cleaning mode, but what does it do really

2. cfgadm -la -o show_FCP_dev

thanks

0
ebi168
Asked:
ebi168
  • 3
  • 2
4 Solutions
 
pshattuckCommented:
1)    -C                      Cleanup  mode.  Prompt  devfsadm  to  cleanup dangling /dev links that are not  normally  removed.


2) cfgadm -la (Lists the  state  and  condition  of  attachment  and dynamic points specified) -o <Fiber Channel devices>
0
 
pshattuckCommented:
-C basically cleanups up any logical links in the dev directory that don't exist anymore
0
 
ebi168Author Commented:
Is it necessary we do a devfsadm -C before using cfgadm to list the attach points?

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
TimEliseoCommented:
/dev is mostly a link farm into /devices, and provides standard ("logical") paths to the actual ("physical") device nodes in /devices that are arranged hierarchically by how they're connected. When a device is disconnected from the system, the old links remain so that they may still work again without requiring reconfiguration if the device is reconnected. "devfsadm -C" partially cleans up these old associations by deleting the logical links in /dev, and may cause a temporarily missing device from functioning once it comes back online. But if you replace a device with one of a similar type but different hardware, you need to clean up the old links so that the new links can be created properly to the new physical device nodes. "devfsadm -C" however doesn't renumber devices, which are assigned sequentially as new hardware is recognized. If you want to fix that, see /etc/path_to_inst.

The cfgadm command you mentioned uses an old option, show_FCP_dev, that has been replaced by show_SCSI_LUN. It displays detailed Fibre Channel device info. I'm not sure what more I can say generally about this without a writing a tutorial on SCSI and Fibre Channel, which is not appropriate here. I assume you've already looked at the man pages for cfgadm and cfgadm_fp.

It sounds like you may have some sort of device attachment related problem. Please be more specific and I might be able to help.

Tim
0
 
ebi168Author Commented:
We need to incorporate a new LUN into the sun system. The consultant requested to run these two commands. devfsadm -C won't harm anything, right?
0
 
pshattuckCommented:
"Is it necessary we do a devfsadm -C before using cfgadm to list the attach points?"

No, it is not necessary unless you suspect there may be conflict from old devices that are being replaced with new devices that could use the same driver or path. It's a prevetative prceedure that CYA
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now