mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 13:16:28 +00:00
@@ -762,7 +762,7 @@ impl DiskAPI for LocalDisk {
|
|||||||
self.endpoint.host_port()
|
self.endpoint.host_port()
|
||||||
}
|
}
|
||||||
async fn is_online(&self) -> bool {
|
async fn is_online(&self) -> bool {
|
||||||
true
|
self.check_format_json().await.is_ok()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn endpoint(&self) -> Endpoint {
|
fn endpoint(&self) -> Endpoint {
|
||||||
|
|||||||
@@ -1238,6 +1238,7 @@ impl SetDisks {
|
|||||||
for (i, opdisk) in disks.iter().enumerate() {
|
for (i, opdisk) in disks.iter().enumerate() {
|
||||||
if let Some(disk) = opdisk {
|
if let Some(disk) = opdisk {
|
||||||
if disk.is_online().await && disk.get_disk_location().set_idx.is_some() {
|
if disk.is_online().await && disk.get_disk_location().set_idx.is_some() {
|
||||||
|
info!("Disk {:?} is online", disk);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1245,6 +1246,7 @@ impl SetDisks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(endpoint) = self.set_endpoints.get(i) {
|
if let Some(endpoint) = self.set_endpoints.get(i) {
|
||||||
|
info!("will renew disk, opdisk: {:?}", opdisk);
|
||||||
self.renew_disk(endpoint).await;
|
self.renew_disk(endpoint).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2901,7 +2903,6 @@ impl SetDisks {
|
|||||||
info!("ns_scanner start");
|
info!("ns_scanner start");
|
||||||
let _ = join_all(futures).await;
|
let _ = join_all(futures).await;
|
||||||
drop(buckets_results_tx);
|
drop(buckets_results_tx);
|
||||||
info!("1");
|
|
||||||
let _ = task.await;
|
let _ = task.await;
|
||||||
info!("ns_scanner completed");
|
info!("ns_scanner completed");
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
@@ -612,6 +612,7 @@ impl StorageAPI for Sets {
|
|||||||
res.after.drives.push(v.clone());
|
res.after.drives.push(v.clone());
|
||||||
}
|
}
|
||||||
if DiskError::UnformattedDisk.count_errs(&errs) == 0 {
|
if DiskError::UnformattedDisk.count_errs(&errs) == 0 {
|
||||||
|
info!("disk formats success, NoHealRequired, errs: {:?}", errs);
|
||||||
return Ok((res, Some(Error::new(DiskError::NoHealRequired))));
|
return Ok((res, Some(Error::new(DiskError::NoHealRequired))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1935,6 +1935,7 @@ impl StorageAPI for ECStore {
|
|||||||
r.after.drives.append(&mut result.after.drives);
|
r.after.drives.append(&mut result.after.drives);
|
||||||
}
|
}
|
||||||
if count_no_heal == self.pools.len() {
|
if count_no_heal == self.pools.len() {
|
||||||
|
info!("heal format success, NoHealRequired");
|
||||||
return Ok((r, Some(Error::new(DiskError::NoHealRequired))));
|
return Ok((r, Some(Error::new(DiskError::NoHealRequired))));
|
||||||
}
|
}
|
||||||
info!("heal format success result: {:?}", r);
|
info!("heal format success result: {:?}", r);
|
||||||
|
|||||||
Reference in New Issue
Block a user