SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / user-6937

amosk's questions

Martin Hope
amosk
Asked: 2021-01-10 05:37:54 +0800 CST

Consistent Dell raid device names

  • 2

We have a Dell PowerEdge R740 server running CentOS7 with raid disks configured via PERC H730P Mini controller. On each reboot the device names (sda, sdb ...) for the vdisks are assigned out of the order the vdisks were created (see below) and each time differently. This is kind of expected as the naming order depends on the readiness of the devices during the boot, which may vary. But anyway is there a way to make the order, in which the vdisk devices appear in the system, consistent e.g. via some controller option? (Provided the physical devices are not changed)

# omreport storage vdisk controller=0  -fmt ssv | awk -F';' '{print $1, $3, $11}'
List of Virtual Disks on Controller PERC H730P Mini (Embedded)  
  
Controller PERC H730P Mini (Embedded)  
  
ID Name Device Name
0 OS_DISK /dev/sda
1 Virtual Disk1 /dev/sdc
2 Virtual Disk2 /dev/sdb
3 Virtual Disk3 /dev/sdg
4 Virtual Disk4 /dev/sde
5 Virtual Disk5 /dev/sdd
6 Virtual Disk6 /dev/sdh
7 Virtual Disk7 /dev/sdf
8 Virtual Disk8 /dev/sdi
9 Virtual Disk9 /dev/sdj
10 Virtual Disk10 /dev/sdk
11 Virtual Disk11 /dev/sdl
12 Virtual Disk12 /dev/sdm
13 Virtual Disk13 /dev/sdn
14 Virtual Disk14 /dev/sdp
15 Virtual Disk15 /dev/sdo
16 Virtual Disk16 /dev/sdq
17 Virtual Disk17 /dev/sdr
18 Virtual Disk18 /dev/sds
19 Virtual Disk19 /dev/sdt
20 Virtual Disk20 /dev/sdu
21 Virtual Disk21 /dev/sdy
22 Virtual Disk22 /dev/sdv
23 Virtual Disk23 /dev/sdw
24 Virtual Disk24 /dev/sdx

linux dell-poweredge dell-perc
  • 1 Answers
  • 231 Views
Martin Hope
amosk
Asked: 2017-01-14 13:51:12 +0800 CST

How to fix leap second sleep issue without reboot

  • 5

I found that after the latest leap second insertion (2016-12-31 23:59:60), our CentOS7 application that has worker threads sleeping for 1 second between jobs, started to wake the sleeping threads immediately instead of in a second. In general, all sleeps are awake 1 second ahead of expected wake time.

The simplest and working solution is to reboot the box. But that is not desirable in our case. Is there a way to fix this without rebooting?

PS. For reference, here's a simple program in C++ that reproduces the issue.

#include <boost/date_time.hpp>
#include <boost/thread.hpp>
#include <iostream>

using namespace std;


// this has to be run in a thread to be able to detect the issue
void check_thread()
{
    size_t expected_delay = 1000;
    cout << "Expected delay: " << expected_delay << " ms" << endl;
    boost::posix_time::ptime t1 = boost::posix_time::microsec_clock::universal_time();
    boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
    boost::posix_time::ptime t2 = boost::posix_time::microsec_clock::universal_time();
    size_t actual_delay = (t2 - t1).total_milliseconds();
    cout << "Actual delay: " << actual_delay << " ms" << endl;
    if (abs(expected_delay - actual_delay) > 900) {
        cout << "Too big delay difference: " << (expected_delay - actual_delay) << endl;
        cout << "Possible leap second issue" << endl;
    }
    else {
        cout << "No issues found" << endl;
    }
}

int main()
{
    boost::thread_group g;
    g.create_thread(check_thread);
    g.join_all();
    return 0;
}

Building:

g++ sleep_test.cpp -Wl,-Bstatic -lboost_thread -lboost_system -lboost_date_time -Wl,-Bdynamic -rdynamic -pthread
linux leapsecond
  • 2 Answers
  • 202 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Can you pass user/pass for HTTP Basic Authentication in URL parameters?

    • 5 Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    Check if port is open or closed on a Linux server?

    • 7 Answers
  • Marko Smith

    How to automate SSH login with password?

    • 10 Answers
  • Marko Smith

    How do I tell Git for Windows where to find my private RSA key?

    • 30 Answers
  • Marko Smith

    What's the default superuser username/password for postgres after a new install?

    • 5 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    Smudge Our security auditor is an idiot. How do I give him the information he wants? 2011-07-23 14:44:34 +0800 CST
  • Martin Hope
    kernel Can scp copy directories recursively? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh returns "Bad owner or permissions on ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil How to automate SSH login with password? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin How do I deal with a compromised server? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve