12-21-2008
OpenSolaris 2008.11 Hard Drive Device mapping
Dear Solaris Experts,
I am a bit confused about OpenSolaris Hard Drive device mapping. On RedHat Linux based system, an IDE on first channel master drive is mapped as /dev/hda, first channel slave drive will be /dev/hdb, etc.
For (Open)Solaris systems I found it as /dev/rdsk/c3d0p0 :
myself@myopensolaris:/dev# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3d0 <DEFAULT cyl 1539 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
myself@myopensolaris:/dev/rdsk# prtvtoc ./c3d0p0
* ./c3d0p0 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 255 tracks/cylinder
* 16065 sectors/cylinder
* 1541 cylinders
* 1539 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 0 16065 16064
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 16065 24691905 24707969
2 5 01 0 24724035 24724034
8 1 01 0 16065 16064
note :
This printout is generated on IBM Thinkpad T42 with 40GB IDE HDD (NOT SATA) on the second partition.
My questions are :
1. Is there any simple hard drive device mapping rules like Redhat/Linux systems ?
2. How can I identify slave hard drive in the first IDE Channels ? On Redhat/Linux, this drive will be mapped as /dev/hdb.
3. How about SATA drives ? In Linux this drive is mapped as
/dev/sda, /dev/sdb, etc. Same thing also for SCSI drives.
4. What is the meaning of /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0 ?
5. Is there any urls that explains the device mapping in a practical ways for Linux Adminstrators ?
6. How about IDE CD-ROM mapping?
7. How to format the correct partition using newfs (UFS) or create FS using ZFS ? In linux it is very simple.
Need more enlightement on this new environment.
For answers, any web URLs is more than enough for me to read and learn. I already asked uncle Google but still could not hit the correct page.
Many thanks in advance.
regards,
Zepiroth Hong.
7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Good day all,
I'm hoping someone can help me understand what the percentage sign is and does in mapping a drive to a server ? I provided the example for you.
(ie \\server1\share%simon)
thanks
simon2000 (2 Replies)
Discussion started by: simon2000
2 Replies
2. Windows & DOS: Issues & Discussions
I have a small problem, there is one Win98 PC on our network, and I would like to map the FTP server that we have as one of the Win98's machine's local drives. I am by no means a Windows expert, instead my area is *NIX. The webserver is just a regualar webserver, within the LAN. I tried... (18 Replies)
Discussion started by: cerberusofhate
18 Replies
3. UNIX for Dummies Questions & Answers
:confused: ........I have a new hard drive and I need to copy ALL info from the old to the new. I would like to use the dd command. I know the command is as follows......
dd if=/dev/rdsk/c1t1d0s0 of=/dev/rdsk/????????
Where I have the question marks is the problem.
How do I find out what the... (4 Replies)
Discussion started by: shorty
4 Replies
4. Filesystems, Disks and Memory
Hi
I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies
5. Shell Programming and Scripting
Hi, Does anyone have a clever way of mapping the following from two different files using perl.
sample line from vxdisk list output (vxdisk-list.file):
emcpower18s2 auto:sliced IDFAG1_1 (IDFAG1_appdg) online
sample line from 'inq' output (inq.file):
... (0 Replies)
Discussion started by: csoesan
0 Replies
6. Red Hat
What is the eqiuvalent of /dev/dsk/rdsk in linux vs Solaris (1 Reply)
Discussion started by: walnutpony123
1 Replies
7. UNIX for Dummies Questions & Answers
please forgive me. i know this is unix forum.
CIFS can map to shared windows folder.
i just wonder if windows can map to unix shared folder.
if yes, please enlight me... (5 Replies)
Discussion started by: lawsongeek
5 Replies
LEARN ABOUT REDHAT
smartctl
SMARTCTL(8) System Manager's Manual SMARTCTL(8)
NAME
smartctl - S.M.A.R.T. control utility
SYNOPSIS
smartctl [-cdeglostv] [device]
DESCRIPTION
smartctl controls the Self-Monitoring, Analysis and Reporting Technology System(S.M.A.R.T.) built into ATA-3 and later IDE and SCSI-3 Hard
Drives. This is used to check the reliability of the hard drive and predict drive failures. TapeAlerts support for SCSI tape drives and
changers smartctl is command line utility designed to perform simple S.M.A.R.T. tasks.
OPTIONS
smartctl accepts two agruments, options and device in respective order. The options begin with a '-' and multiple options should be begun
with a single '-'. The second argument is the device to be controled. ATA device use the form "/dev/hd*" and SCSI devices use the form
"/dev/sd*". SCSI devices use only options a,i,c,e,d. For SCSI Tape Drives and Changers with TapeAlerts support use the form "/dev/st*" and
"/dev/sg*". TapeAlerts devices use only a,i,c,e,d.
i Check if the device supports S.M.A.R.T
c Check if device has any S.M.A.R.T. Warranty Failures
g Prints only the generic S.M.A.R.T. attributes
v Prints only the vendor specific S.M.A.R.T. attributes
t Prints only the vendor specific S.M.A.R.T. thresholds
l Prints only the S.M.A.R.T. error log
a Prints all parameters for c,i,g,v,t,l (for SCSI c,i)
e Enables S.M.A.R.T. on device
d Disables S.M.A.R.T. on device
t Enables S.M.A.R.T. automatic offline self test timer which scans the drive every four hours for disk defects.
T Disables S.M.A.R.T. automatic offline self test timer
O Runs S.M.A.R.T. Immediate off-line Test
S Runs S.M.A.R.T. Short Self Test ( usually under ten minutes)
s Runs S.M.A.R.T. Short Self Test in Captive Mode.
( WARNING: This test will busy out drive for length of test. Only run this on drives without any mounted partitions.)
X Runs S.M.A.R.T. Extended Self Test ( tens of minutes)
x Runs S.M.A.R.T. Extended Self Test in Captive Mode. ( WARNING: This test will busy out drive for length of test. Only run this on
drives without any mounted partitions.)
A Aborts Non-Captive S.M.A.R.T. Tests.
EXAMPLES
smartctl -a /dev/hda - prints all S.M.A.R.T. infomration for drive /dev/hda (Primary Master)
smartctl -d /dev/hdd - disable S.M.A.R.T. on drive /dev/hdd (Secondary Slave)
AUTHOR
Michael Cornwell, cornwell@acm.org
Concurrent Systems Laboratory
Jack Baskin School of Engineering
University of California Santa Cruz
http://csl.cse.ucsc.edu/
smartctl-2.1 September 13, 2001 SMARTCTL(8)