Main Page and Rescan scsi: Difference between pages

From plnx.nl
(Difference between pages)
Jump to navigation Jump to search
Pverha10 (talk | contribs)
No edit summary
 
Pverha10 (talk | contribs)
No edit summary
 
Line 1: Line 1:
'''Welcome to the wiki of plnx.nl'''
To rescan your scsi disks (to look if a disk has been added) you can reread your scsi device by giving the following command:


Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.
<pre>
echo "- - -" >/sys/class/scsi_host/host0/scan
</pre>


==recent things==
It's very handy if you added a disk in VMware, don't want to reboot and have no flashy thingy disk-tools.
* [[SIP records]]
 
* [[Cisco core upgrade]]
If you added space to your first disk you need to rescan your disk with:
* [[c2960x commands]]
 
* [[Sip configuration plnx.nl]]
<pre>
* [[Rescan scsi]]
echo 1 > /sys/block/sda/device/rescan
* [[DNS-DHCP configuration]]
</pre>
* [[NT6.1 Firewall Stealth Mode]]
 
* [[TRIM Support]]
If you're running a multipath device you can check the multipath device size with
* [[Sendmail Config]]
<pre>
* [[VLC Streaming]]
multipath -l
* [[BIND IPv6 $GENERATE]]
</pre>
* [[7zip tricks]]
To resize the multipath device also run (e.g. multipath device dm-1)
* [[Windows XP Fixed IPv6]]
<pre>
* [[Bonding]]
multipathd resize map dm-1
* [[SSL]]
</pre>
* [[One liners]]
 
* [[Firefox over X11 with Xming]]
If you resized your disk with fdisk for example, but the disk was still busy for some reason and the partition table could not be rescanned you can use partprobe, but the following command also works to update your partitions:
<br>
<pre>
* [//www.mediawiki.org/wiki/Manual:FAQ Mediawiki FAQ]
hdparm -z /dev/sdX
</pre>
If this gives you a "BLKRRPART failed: Device or resource busy" because some partitions on the drive are currently mounted, if you really don't want to reboot, you can try:
<pre>
partx -a /dev/sdX
</pre>
This will force partitions to be added and such.

Latest revision as of 09:21, 22 May 2025

To rescan your scsi disks (to look if a disk has been added) you can reread your scsi device by giving the following command:

echo "- - -" >/sys/class/scsi_host/host0/scan

It's very handy if you added a disk in VMware, don't want to reboot and have no flashy thingy disk-tools.

If you added space to your first disk you need to rescan your disk with:

echo 1 > /sys/block/sda/device/rescan

If you're running a multipath device you can check the multipath device size with

multipath -l

To resize the multipath device also run (e.g. multipath device dm-1)

multipathd resize map dm-1

If you resized your disk with fdisk for example, but the disk was still busy for some reason and the partition table could not be rescanned you can use partprobe, but the following command also works to update your partitions:

hdparm -z /dev/sdX

If this gives you a "BLKRRPART failed: Device or resource busy" because some partitions on the drive are currently mounted, if you really don't want to reboot, you can try:

partx -a /dev/sdX

This will force partitions to be added and such.