LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-16-2007, 02:22 AM   #1
crisostomo_enrico
Member
 
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.


Hi.

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?

Thanks,
Enrico.

Last edited by crisostomo_enrico; 08-16-2007 at 04:19 AM.
 
Old 08-17-2007, 04:03 AM   #2
crisostomo_enrico
Member
 
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:
Quote:
(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.

Bye,
Enrico.

Last edited by crisostomo_enrico; 08-17-2007 at 05:15 AM.
 
Old 08-17-2007, 07:18 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
  


Reply



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) 8.19.1.3 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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:14 PM.

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