Free disks enumeration needed

Ivailo A. Tanusheff ITanusheff at postbank.bg
Wed Nov 19 14:53:08 UTC 2014


Dear all,

I have a little bit strange question, but I will appreciate your help.
I have a FreeBSD server, with attached both SATA and SCSI drives. The server uses both ZFS and UFS file systems.

I want to find a way to find out which drives are available to be used in new zfs pool with a script or C program, i.e. which drives are not used by zfs or ufs on the system.
For the SATA drives I believe glabel status gives me the reasonable information, but I do not see any SCSI drive there.

It is easy to enumerate disks installed on the system, but how to find out which are "free" for use?

Regards,

Ivailo Tanusheff

Disclaimer:

This communication is confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication by mistake, please notify us immediately by responding to this email and then delete it from your system.
Eurobank Bulgaria AD is not responsible for, nor endorses, any opinion, recommendation, conclusion, solicitation, offer or agreement or any information contained in this communication.
Eurobank Bulgaria AD cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network. If you suspect that the message may have been intercepted or amended, please call the sender.


More information about the freebsd-questions mailing list