Welcome to the most active Linux Forum on the web.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 08-16-2007, 02:22 AM   #1
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
Is there something similar to a udev rule in solaris express dev. ed.


I was wondering if there's something similar to an udev rule in Solaris Express Dev. Ed. hotplugging infrastructure. The problem to solve is always the same: I want to plug an external USB disk and want to be sure that I do have a well defined /dev entry (maybe this isn't required to get the job done) and that filesystems in the device gets mounted always in the same directories.

I checked official documentation (819-2723 - devices and filesystems) but I didn't find the answer.

Another quick question: is there any drawback in doing a ZFS pool on an USB removable device?


Last edited by crisostomo_enrico; 08-16-2007 at 04:19 AM.
Old 08-17-2007, 04:03 AM   #2
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Well, maybe it's not the answer I was looking for (it's only valid for ZFS while I was looking for something more general) but here it is:
(817-2271, p. 45) Disks are identified both by their path and by their device ID, if available. This method allows devices to be reconfigured on a system without having to update any ZFS state. If a disk is switched between controller 1 and controller 2, ZFS uses the device ID to detect that the disk has moved and should now be accessed using controller 2. The device ID is unique to the drive's firmware. While unlikely, some firmware updates have been known to change device IDs. If this situation happens, ZFS can still access the device by path and update the stored device ID
automatically. If you inadvertently change both the path and the ID of the device, then export and re-import the pool in order to use it.
So I would think that, even if I created a pool on c5t0d0, if controller changes (because I change the USB port I'm plugging the device into), then ZFS will be able to correctly identify the device.


Last edited by crisostomo_enrico; 08-17-2007 at 05:15 AM.
Old 08-17-2007, 07:18 AM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,742

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
Solaris express uses now HAL (Hardware Abstraction Layer) so removable device get mounted automatically in /media/<name>. This is for at least pcfs, hsfs and UFS. You shouldn't care about the device name.

ZFS is managed differently and indeed doesn't rely about the device used. You can create a raid from several removable disks, unplug then plug all of them again in different ports. The system should recover from the shuffle gracefully.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A problem with audiohd driver arised with Solaris express Dev. ed. 5/07 crisostomo_enrico Solaris / OpenSolaris 4 08-13-2007 01:58 AM
LXer: Marvell Yukon Driver (SK-9E22) for Solaris (x64) installation procedure in Solaris Express LXer Syndicated Linux News 0 04-22-2007 03:16 AM
what udev rule to create /dev/inet/tcp? bbeers Slackware 2 02-21-2007 04:55 PM
need help with udev rule hussam Linux - Software 2 12-05-2006 03:30 AM
Email Program similar to Outlook Express moneyshotz Linux - Software 4 07-10-2003 02:51 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration