Working with newly available devices
Errors can occur if you try to work with a device before its sysfs representation is completely initialized.
About this task
When new devices become available to a running Linux® instance, some time elapses until the corresponding device directories and their attributes are created in sysfs. Errors can occur if you attempt to work with a device for which the sysfs structures are not present or are not complete. These errors are most likely to occur and most difficult to handle when you are configuring devices with scripts.
Procedure
Use the following steps before you work with a newly available device to avoid such errors:
Results
You can now work with the new device. For example, you can set the device online or set attributes for the device.