Ticket #214 (closed defect: fixed)

Opened 22 months ago

Last modified 14 months ago

CryptoNAS doesn't reread updated partition tables from internal disks

Reported by: frisco Owned by: lars
Priority: normal Milestone: cryptonas-server 0.4.0
Component: debian-package Version: svn
Severity: normal Keywords: partition, BLKRRPART
Cc:

Description

After a change is made to the partition table of an internal disk (IDE or SCSI, for example), the /disks page typically does not show the updated list of partitions. /proc/partitions shows the old set of information as well. The simplest way to fix this is to run

blockdev --rereadpt /dev/sdX

to cause the kernel to refresh its information about partitions after every change CryptoNAS makes to partition tables. (The actual ioctl is called BLKRRPART.) partprobe can also accomplish this, but I don't trust it as much.

Attachments

Change History

Changed 19 months ago by frisco

Once we figure out the exact syntax for this (possibly in a wrapper function for readability, etc.), a good place to call blockdev would be near the end of __action_finish and __action_easy_setup in partition.py.

Changed 14 months ago by lars

  • status changed from new to closed
  • resolution set to fixed

seems to be fixed since [1160]

Add/Change #214 (CryptoNAS doesn't reread updated partition tables from internal disks)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.