Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Fri Jul 19, 2019 5:16 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - FreeBSD: List disk drives and re-scan after adding hot-add disk (in virtual environments)
Author Message
Post subject: FreeBSD: List disk drives and re-scan after adding hot-add disk (in virtual environments)  |  Post Posted: Fri Sep 15, 2017 2:14 am
When FreeBSD runs as a Guest Operating System in Vmware ESXi or other hypervisor, disks can be hot added (without powering off the system).

List available disk in FreeBSD.
Code:
$ sudo camcontrol devlist
<NECVMWar VMware IDE CDR10 1.00>   at scbus1 target 0 lun 0 (cd0,pass0)
<VMware Virtual disk 1.0>          at scbus2 target 0 lun 0 (da0,pass1)
<VMware Virtual disk 1.0>          at scbus2 target 1 lun 0 (da1,pass2)


After new disk has been added to the virtual machine, rescan FreeBSD for new drives:
Code:
$ sudo camcontrol rescan all
Re-scan of bus 0 was successful
Re-scan of bus 1 was successful
Re-scan of bus 2 was successful
Re-scan of bus 3 was successful
$ sudo camcontrol devlist
<NECVMWar VMware IDE CDR10 1.00>   at scbus1 target 0 lun 0 (cd0,pass0)
<VMware Virtual disk 1.0>          at scbus2 target 0 lun 0 (da0,pass1)
<VMware Virtual disk 1.0>          at scbus2 target 1 lun 0 (da1,pass2)
<VMware Virtual disk 1.0>          at scbus2 target 2 lun 0 (pass3,da2)


Now /dev/da2 block device has been added and ready to create a new filesystem or add to ZFS pool.
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO