Solaris raw disks info


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris raw disks info
# 1  
Old 04-04-2011
Solaris raw disks info

Hi,

I need the following information.

1. We have raw disks but how to identify raw disks. Is there any command to identify its type and size.

2. How to differentiate between disks which are used as file system and that are still available to be used as raw. I know we can use df -n to find out the file system. but is there any proper indication in disks that differentiate between them.

Kindly let me know in detail
# 2  
Old 04-04-2011
As root, start the format utility, select a disk and the use the inquiry subcommand:

Code:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>  boot0
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037f8a0d2,0
       1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>  boot1
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf83a9a0,0
...
Specify disk (enter its number): 0
...
format> inq
Vendor:   SEAGATE
Product:  ST336605FSUN36G
Revision: 0638

---------- Post updated at 08:24 ---------- Previous update was at 08:20 ----------

And if you mean "raw devices", there is no easy way to find out for sure, if a diskslice is free. It could be used by a volume manager or a database for example.
# 3  
Old 04-04-2011
But i also want to find out the sizes if disks are not mounted
# 4  
Old 04-04-2011
This should work:
Code:
kstat -n "sd*,err" | grep -vw 0 | egrep -v "(time|module|class)"

# 5  
Old 04-04-2011
Does
PHP Code:
iostat -
returns you what you need?
This User Gave Thanks to @dagio For This Post:
# 6  
Old 04-05-2011
thanks @dagio it gives sizes but not names of the disks.
# 7  
Old 04-05-2011
Are you using any kind of Volume Manager .. like VxVM or SVM ?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 Sparc. How to change Vendor info of SAN disks reported in "format" command?

Greetings! After block level migration using an external appliance, the luns are getting reported as DGC-RAID5 and these luns are infact from the new storage. I have a query on changing the device Vendor info from DGC-RAID5 to HP3par in the format o/p only. AVAILABLE DISK SELECTIONS: ... (3 Replies)
Discussion started by: n_Bhaskar
3 Replies

2. UNIX for Advanced & Expert Users

How raw disks are read?

Hi Experts, If I understand correctly in posix standard system calls read/write or pread/pwrite a file descriptor should be sent. How it works in case of raw disk? Are there something like files on raw devices? Or these disks are read just using block coordinates? I want to understand how... (2 Replies)
Discussion started by: sant
2 Replies

3. HP-UX

Converting RAW Disks to Filesystem

Hi, We have a new server which has 2.7 TB RAW Disk.Outof this we want to convery 1.2 TB to filesystem and nfs mount it on one of the servers. After our activity we need to convert this back to RAW Disks. Please let me know if this is possible and the complexity involved. Regards, VN (1 Reply)
Discussion started by: narayanv
1 Replies

4. Solaris

disks in solaris

whats the command to find name of all disks. Is it iostat -En ? (1 Reply)
Discussion started by: vikashtulsiyan
1 Replies

5. Solaris

How to create new partitions in solaris,from the raw disk?

Hi all, I would like to know how to make new partitions.... I currently have allocated 60G for various slices (I have totally used 4 out of 7 available slices... I am running only solaris on my box. My plan is to have entire disk dedicated to solaris and run other OS from within... (19 Replies)
Discussion started by: wrapster
19 Replies

6. Solaris

Reading raw disk on Solaris

Hello I wonder if someone could help me in reading a raw (non-Solaris) disk on a Solaris system... I have an IDE HDD in my Sun Blade and would like to read it (using C). It appears on the system and with the format command shows up as c0t1d0. I use the dd command to read the disk as such:... (19 Replies)
Discussion started by: son_t
19 Replies

7. AIX

Map lun info to phyical disks

I have been ask to write a script to show what phyical disks are linked to what luns. By host name. I was hoping someone had some ideas on how to do this. I am from a linux background and am struggling a bit here...lol...I have been given one command to help me out....lsmap..Anyhelp would be... (3 Replies)
Discussion started by: jameszak
3 Replies

8. UNIX for Dummies Questions & Answers

how to get disks info in solaris9

hi: I know its a dummy question do you have any idea how i can get information about the HDs I have on my solaris server?? like how many disks and the size of each?? the prtdiag doesnt tell about disks. Thanks (8 Replies)
Discussion started by: aladdin
8 Replies
Login or Register to Ask a Question