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

FAQ
It is currently Fri Dec 01, 2023 2:45 am


Discussions on RAM, DRAM, shared memory, NAS, SAN, RAID, backups, SCSI, IDE, UFS, UFS2, JFS, JFS2, EXT2, EXT3

Author Message
admin
Post  Post subject: FreeBSD: List disk drives and re-scan after adding hot-add disk (in virtual environments)  |  Posted: Fri Sep 15, 2017 2:14 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 104

Offline
 

FreeBSD: List disk drives and re-scan after adding hot-add disk (in virtual environments)

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.

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "FreeBSD: List disk drives and re-scan after adding hot-add disk (in virtual environments)"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FreeBSD - Monitor geom disk i/o statistics using gstat/iostat

mandrei99

0

9405

Mon Mar 03, 2014 9:47 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD 9 : Remount an already mounted filesystem without unmounting it

mandrei99

0

6300

Wed Feb 05, 2014 12:16 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD: fsck: Could not determine filesystem type

mandrei99

0

4096

Sat Feb 15, 2014 4:39 pm

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
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