'2021/01'에 해당되는 글 93건

  1. 2021.01.06 warewulf - wwsh 명령어
  2. 2021.01.06 c# named argument
  3. 2021.01.06 scpi, visa, ivi
  4. 2021.01.05 udev
  5. 2021.01.05 rtl sdr driver libusb
  6. 2021.01.05 uio - userspace io
  7. 2021.01.05 hpl/linpack openmpi slurm
  8. 2021.01.05 sdr# PAL tv plugin
  9. 2021.01.05 openSUSE에 getvnfs extracting failed ㅠㅠ
  10. 2021.01.05 openSUSE 네트워크 설정

openhpc 문서에서 하라는대로만 따라해서

어떤 원리로 어떻게 관리되는지 알지 못해서 구조를 좀 파악해야할 필요가 발생 ㅠㅠ

 

[링크 : https://github.com/nicksan2c/wwsh]

[링크 : https://dokuwiki.wesleyan.edu/doku.php?id=cluster:144]

 

+

> file /usr/bin/ww*
/usr/bin/wwan:        symbolic link to bluetooth
/usr/bin/wwbootstrap: Perl script text executable
/usr/bin/wwconfig:    Perl script text executable
/usr/bin/wwinit:      Bourne-Again shell script, ASCII text executable
/usr/bin/wwlivesync:  Perl script text executable
/usr/bin/wwmkchroot:  Bourne-Again shell script, ASCII text executable
/usr/bin/wwnodescan:  Perl script text executable
/usr/bin/wwsh:        Perl script text executable
/usr/bin/wwuseradd:   POSIX shell script, ASCII text executable
/usr/bin/wwvnfs:      Perl script text executable

 

wwsh list 모음

> wwsh bootstrap list
BOOTSTRAP NAME            SIZE (M)      ARCH
5.3.18-lp152.57-default   58.0          x86_64

> wwsh ipmi list
NAME                AUTO    IPMI_IPADDR    IPMI_NETMASK
================================================================================
openhpc-1           no      UNDEF          UNDEF
openhpc-2           no      UNDEF          UNDEF

> wwsh node list
NAME                GROUPS              IPADDR              HWADDR
================================================================================
openhpc-1           UNDEF               10.0.2.4            08:00:27:4b:df:4f
openhpc-2           UNDEF               10.0.2.5            08:00:27:f9:ca:3f

> wwsh object list
NAME                       _TYPE
======================================================
passwd                     file
group                      file
shadow                     file
munge.key                  file
5.3.18-lp152.57-default    bootstrap
leap15.2                   vnfs
network                    file
openhpc-1                  node
dynamic_hosts              file
openhpc-2                  node

> wwsh provision list
NODE                VNFS            BOOTSTRAP             FILES
================================================================================
openhpc-1           leap15.2        5.3.18-lp152.57-de... dynamic_hosts,grou...
openhpc-2           leap15.2        5.3.18-lp152.57-de... dynamic_hosts,grou...

> wwsh vnfs list
VNFS NAME            SIZE (M)   ARCH       CHROOT LOCATION
leap15.2             480.1      x86_64     /opt/ohpc/admin/images/leap15.2

 

도움말 모음

> wwsh help
Warewulf command line shell interface

Welcome to the Warewulf shell interface. This application allows you
to interact with the Warewulf backend database and modules via a
single interface.

  bootstrap        Manage your bootstrap images
  dhcp             Manage DHCP service and configuration
  events           Control how events are handled
  exit             Exit/leave the Warewulf shell
  file             Manage files within the Warewulf data store
  ipmi             Node IPMI configuration
  node             Node manipulation commands
  object           Generically manipulate all Warewulf data store entries
  output           Set the output verbosity level
  provision        Node provision manipulation commands
  pxe              Manage PXE configuration
  quit             Exit/leave the Warewulf shell
  ssh              Spawn parallel ssh connections to nodes.
  vnfs             Manage your VNFS images
USAGE:
     bootstrap <command> [options] [targets]

SUMMARY:
     This interface allows you to manage your bootstrap images within the Warewulf
     data store.

COMMANDS:

         import          Import a bootstrap image into Warewulf
         export          Export a bootstrap image to the local file system
         delete          Delete a bootstrap image from Warewulf
         list            Show all of the currently imported bootstrap images
         set             Set bootstrap attributes
         (re)build       Build (or rebuild) the tftp bootable image(s) on this host
         help            Show usage information
USAGE:
     dhcp <command>

SUMMARY:
        The DHCP command configures/reconfigures the DHCP service.

COMMANDS:

         update          Update the DHCP configuration, and restart the service
         restart         Restart the DHCP service
         help            Show usage information
USAGE:
     events [command]

SUMMARY:
     Control how/if events are handled.

COMMANDS:

     enable          Enable all events for this shell (default)
     disable         Disable the event handler
     help            Show usage information
USAGE:
     file <command> [options] [targets]

SUMMARY:
     The file command is used for manipulating file objects.  It allows you to
     import, export, create, and modify files within the Warewulf data store.
     File objects may be used to supply files to nodes at provision time,
     dynamically create files or scripts based on Warewulf data and more.

COMMANDS:
     import             Import a file into a file object
     export             Export file object(s)
     edit               Edit the file in the data store directly
     new                Create a new file in the data store
     set                Set file attributes/metadata
     show               Show the contents of a file
     list               List a summary of imported file(s)
     print              Print all file attributes
     (re)sync           Sync the data of a file object with its source(s)
     delete             Remove a node configuration from the data store
     help               Show usage information
USAGE:
     ipmi <command> [options] [targets]

SUMMARY:
    The ipmi command is used for setting node ipmi configuration attributes.

COMMANDS:

         set             Modify an existing node configuration
         list            List a summary of the node(s) ipmi configuration
         print           Print the full node(s) ipmi configuration
         poweron         Power on the list of nodes
         poweroff        Power off the list of nodes
         powercycle      Power cycle the list of nodes
         powerstatus     Print the power status of the nodes
         ident           Set chassis identify light to on for the nodes
         noident         Set chassis identify light to off for the nodes
         printsel        Print system event log for the nodes
         clearsel        Clear system event log for the nodes
         printsdr        Print sensor data records for the nodes
         console         Start a serial-over-lan console session.
                         NOTE: Requires that a serial console be defined
                         in kernel arguments, i.e. console=ttyS0,57600

         forcepxe        Force next boot from PXE
         forcedisk       Force next boot from first Hard Drive
         forcecdrom      Force next boot from CD-ROM
         forcebios       Force next boot into BIOS

         help            Show usage information
USAGE:
     node <command> [options] [targets]

SUMMARY:
     The node command is used for viewing and manipulating node objects.

COMMANDS:
         new             Create a new node configuration
         set             Modify an existing node configuration
         list            List a summary of nodes
         print           Print the node configuration
         delete          Remove a node configuration from the data store
         clone           Clone a node configuration to another node
         help            Show usage information
USAGE:
     object <command> [options] [targets]

SUMMARY:
     The object command provides an interface for generically manipulating all
     object types within the Warewulf data store.

COMMANDS:
     modify          Add, delete, and/or set object member variables
     print           Display object(s) and their members
     delete          Completely remove object(s) from the data store
     dump            Recursively dump objects in internal format
     jsondump        Recursively dump objects in json format
     canonicalize    Check and update objects to current standard format
     help            Show usage information
USAGE:
     output [command]

SUMMARY:
    This command sets the desired command output verbosity level.

COMMANDS:

         normal          The standard (and default) output level intended for
                         normal usage
         quiet           Only print warning, error, or critical messages.
         verbose         Increase verbosity over the normal output level
         debug           Show debugging messages (very verbose)
USAGE:
     provision <command> [options] [targets]

SUMMARY:
    The provision command is used for setting node provisioning attributes.

COMMANDS:

         set             Modify an existing node configuration
         list            List a summary of the node(s) provision configuration
         print           Print the full node(s) provision configuration
         help            Show usage information
USAGE:
     pxe <command> [options] [targets]

SUMMARY:
        Manage PXE configuration.

COMMANDS:

         update          Update the PXE configuration
         help            Show usage information
USAGE:
     ssh [nodes/targets] [command]

SUMMARY:
     Run ssh connections to node(s) in parallel by either node names, group
     or any other known lookup.
USAGE:
     vnfs <command> [options] [targets]

SUMMARY:
     This interface allows you to manage your VNFS images within the Warewulf
     data store.

COMMANDS:

         import          Import a VNFS image into Warewulf
         export          Export a VNFS image to the local file system
         delete          Delete a VNFS image from Warewulf
         list            Show all of the currently imported VNFS images
         set             Set any VNFS attributes
         help            Show usage information

 

 

 

'프로그램 사용 > openHPC' 카테고리의 다른 글

MPI/PMI  (0) 2021.01.07
hpl/linpack openmpi slurm  (0) 2021.01.05
openSUSE에 getvnfs extracting failed ㅠㅠ  (0) 2021.01.05
openSUSE에 openHPC 설치하기 part 1  (0) 2021.01.04
slurm, pbs pro, torque/maui  (0) 2021.01.04
Posted by 구차니
Programming/c# & winform2021. 1. 6. 12:31

자동 번역인진 모르겠지만 "명명된 인자" 라는 명칭으로 메소드 호출이나

객체 생성시 변수 순서와 상관없이 인자명칭을 직접 지정해서 호출 할 수 있는 문법

 

아래의 코드에서 Main() 안의 moto.Drive() 를 보면

원래 Drive() 메소드는 int miles, int speed로 선언되어 있으나

moto.Drive(speed: 60, miles: 170) 으로

선언된 인자와 다른 순서로 입력을 해주는 것을 볼 수 있다.

 

using System;

class TestMotorcycle : Motorcycle
{
   public override int Drive(int miles, int speed)
   {
      return (int) Math.Round( ((double)miles) / speed, 0);
   }

   public override double GetTopSpeed()
   {
      return 108.4;
   }

   static void Main()
   {

      TestMotorcycle moto = new TestMotorcycle();
      moto.StartEngine();
      moto.AddGas(15);
      var travelTime = moto.Drive(speed: 60, miles: 170);
      Console.WriteLine("Travel time: approx. {0} hours", travelTime);
   }
}
// The example displays the following output:
//      Travel time: approx. 3 hours

 

[링크 : https://docs.microsoft.com/en-us/dotnet/csharp/methods]

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/methods]

'Programming > c# & winform' 카테고리의 다른 글

ansi escape code  (0) 2021.05.24
c# richtextbox 글씨 색상 입히기  (0) 2021.05.24
아.. 이놈의 인코딩..  (0) 2020.12.03
c# vertical tab  (0) 2020.11.26
c# rest API client  (0) 2020.11.25
Posted by 구차니

 

[링크 : http://www.cat-solutions.nl/index.php/en/training-en/visa-scpi-sicl-io-suite-library-usage-en]

[링크 : https://www.rohde-schwarz.com/tr/driver-pages/remote-control/instruments-drivers-vs.-plain-scpi-commands_231246.html]

'하드웨어 > instrument device' 카테고리의 다른 글

adc 속도  (0) 2023.01.11
FMU... 2?  (0) 2020.12.22
FMU  (0) 2020.12.21
계측장치용 프로토콜 (VISA, SCPI, IEEE-488)  (0) 2020.11.27
Posted by 구차니
Linux2021. 1. 5. 19:54

udev는 장치관리자 / 자동 마운트지

user space driver 와는 연관이 없는 것 같은데....

user space driver 에 대한 마운트를 진행하기도 하니 그거랑 연관이 있다고 해야하나 말아야 하나..

 

[링크 : http://wiki.archlinux.org/index.php/Udev]

[링크 : http://lascrea.tistory.com/89]

 

'Linux' 카테고리의 다른 글

segmentation fault, bus error  (0) 2021.01.08
linux ip 와 gateway 설정  (0) 2021.01.08
uio - userspace io  (0) 2021.01.05
파일이 존재하는데 실행하려고 하면 없다고 에러 뜰 경우  (0) 2020.12.16
ifconfig wan  (0) 2020.12.11
Posted by 구차니

rtl-sdr을 쓰지 않고 원본 드라이버로 먼가하고 싶긴한데 영 안되네..

rtl-sdr

libusb

librtlsdr

여러가지가 보이는데 서로 연관이 어떻게 되는건가..

 

[링크 : http://blog.tcltk.co.kr/?p=888]

[링크 : http://github.com/steve-m/librtlsdr/blob/master/src/librtlsdr.c]

 

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

rtp sdr noaa  (0) 2021.11.24
Blaze Video / FM 듣기  (0) 2021.01.16
sdr# PAL tv plugin  (0) 2021.01.05
blazeVideo HDTV Player (DVB-T)  (0) 2021.01.04
RTL-SDR 튜너 분해(FC0012)  (0) 2020.09.07
Posted by 구차니
Linux2021. 1. 5. 19:43

user space driver를 보다가 점점 이상한데로 헤매는 느낌..

rtl-sdr에서 왜 자꾸 이상한데로 새는건가.. ㅠㅠ

 

[링크 : http://lethean.github.io/2006/12/19/uio-linux-userspace-kernel-driver/]

[링크 : http://www.kernel.org/doc/html/v4.14/driver-api/uio-howto.html]

 

'Linux' 카테고리의 다른 글

linux ip 와 gateway 설정  (0) 2021.01.08
udev  (0) 2021.01.05
파일이 존재하는데 실행하려고 하면 없다고 에러 뜰 경우  (0) 2020.12.16
ifconfig wan  (0) 2020.12.11
dsa distributed switch architecture  (0) 2020.12.11
Posted by 구차니

mpirun

 

 

[링크 : http://www.brightcomputing.com/Blog/bid/151678/How-to-run-Linpack-across-a-Bright-Linux-cluster]

[링크 : http://www.open-mpi.org/faq/?category=slurm]

 

+ 2021.01.07

[링크 : https://juser.fz-juelich.de/record/851266/files/Parallel Programming (MPI) and Batch Usage (SLURM).pdf]

[링크 : https://thelinuxcluster.com/.../running-linpack-hpl-test-on-linux-cluster-with-openmpi-and-intel-compilers/]

[링크 : https://ulhpc-tutorials.readthedocs.io/en/latest/parallel/mpi/HPL/]

[링크 : https://stackoverflow.com/questions/13999415/how-do-you-specify-nodes-on-mpiruns-command-line]

[링크 : https://www.open-mpi.org/faq/?category=running#mpirun-scheduling]

 

mpirun 에 host 기재하기

% mpirun -host node1,node1,node2,node2 ...

mpirun 에 hostfile로 지정하기

% cat my_hosts
a slots=2 max_slots=20
b slots=2 max_slots=20
c slots=2 max_slots=20
d slots=2 max_slots=20

Suppose you issue the following command to run program a.out:


% mpirun -np 1 --hostfile my_hosts --host c a.out

[링크 : https://docs.oracle.com/cd/E19923-01/820-6793-10/ExecutingPrograms.html]

'프로그램 사용 > openHPC' 카테고리의 다른 글

MPI/PMI  (0) 2021.01.07
warewulf - wwsh 명령어  (0) 2021.01.06
openSUSE에 getvnfs extracting failed ㅠㅠ  (0) 2021.01.05
openSUSE에 openHPC 설치하기 part 1  (0) 2021.01.04
slurm, pbs pro, torque/maui  (0) 2021.01.04
Posted by 구차니

플러그 인을 보다 보니 PAL TV를 흑백으로 보여주는게 있네?

dll로 주어지는데 어떤식으로 프로그래밍 하는지 참 궁금하다.

 

능력되면 국내 DMB에 대해서 한번 디코딩 해보고 싶기도 하지만

은근히 대역폭이 넓어서 될 진 모르겠네..

[링크 : http://www.rtl-sdr.ru/page/no-title-2]

[링크 : https://www.rtl-sdr.com/sdrsharp-plugins/]

'프로그램 사용 > rtl-sdr' 카테고리의 다른 글

Blaze Video / FM 듣기  (0) 2021.01.16
rtl sdr driver libusb  (0) 2021.01.05
blazeVideo HDTV Player (DVB-T)  (0) 2021.01.04
RTL-SDR 튜너 분해(FC0012)  (0) 2020.09.07
SDR# 샘플 레이트와 대역  (0) 2020.09.06
Posted by 구차니

부팅하다 커널 패닉나서 다시 보니

vnfs를 정상적으로 붙이지 못하는 것 같네..

 

 

우여곡절 끝에 찾아보니 저놈의 checksum 값이 나오는 항목은 찾았는데..

vnfs가 어떤식으로 구성이 되는진 모르겠으나..

# wwsh object dump
Object #5:  OBJECT REF Warewulf::Vnfs=HASH(0x55f062096fd0) {
    "ARCH" (4) => "x86_64" (6)
    "CHECKSUM" (8) => "9f8b23f061ae257ba752e3861b3c4a08" (32)
    "CHROOT" (6) => "/opt/ohpc/admin/images/leap15.2" (31)
    "NAME" (4) => "leap15.2" (8)
    "SIZE" (4) => 503415145
    "_ID" (3) => 6
    "_TIMESTAMP" (10) => 1609744655
    "_TYPE" (5) => "vnfs" (4)
}

[링크 : https://groups.io/g/OpenHPC-users/topic/stateful_provisioning_issues/7717941?p=]

 

# md5sum /srv/warewulf/bootstrap/x86_64/5/initfs.gz
94a63f3001bf9f738bd716a5ab71d61f  /srv/warewulf/bootstrap/x86_64/5/initfs.gz

이거 그건가...? extracting 에서 error가 발생했는데 엉뚱한데를 짚은건가?

 

+

2021.01.07

 

그러고 보니 왜 ID가 6인거지?

The section code that's sitting at is a 'wait "${EXTRACT_PID}"'.
EXTRACT_PID comes from this command:

  gunzip < /tmp/vnfs-download | bsdtar -pxf - 2>/dev/null &

So it seems that is failing somewhere. Do any other VNFS images work?

If you want to go in... you can extract the transport-http capability,
and edit the wwgetvfs script that's contained within. Remove that
"2>/dev/null" from that command, rebuild the capability file, and then
rebuild the bootstrap. That would hopefully point you to what's
actually throwing an error.

The ID always being 5 is correct. If it changed I would be worried.
That should be the Database ID of the VNFS. 

 

+

정상작동하는 openhpc/centos 에서도 ID:6 인데 extrating은 정상적으로 넘어간다.

 

체크섬도 여기서 나오는 같이랑 동일한데, SKIPPED 인건 문제가 없는건가.. 기본값이 SKIP인가?

Object #5:  OBJECT REF Warewulf::Vnfs=HASH(0x55e09d574470) {
    "ARCH" (4) => "x86_64" (6)
    "CHECKSUM" (8) => "3440bd638263bfb2e91e5f19b9afb51b" (32)
    "CHROOT" (6) => "/opt/ohpc/admin/images/centos8.2" (32)
    "NAME" (4) => "centos8.2" (9)
    "SIZE" (4) => 160341375
    "_ID" (3) => 6
    "_TIMESTAMP" (10) => 1608705691
    "_TYPE" (5) => "vnfs" (4)
}

'프로그램 사용 > openHPC' 카테고리의 다른 글

warewulf - wwsh 명령어  (0) 2021.01.06
hpl/linpack openmpi slurm  (0) 2021.01.05
openSUSE에 openHPC 설치하기 part 1  (0) 2021.01.04
slurm, pbs pro, torque/maui  (0) 2021.01.04
slurm gpu  (0) 2020.12.28
Posted by 구차니
Linux/openSUSE2021. 1. 5. 10:05

네트워크 설정은 특색이라고 해야하나

redhat이나 debian 계열과는 또 확연히 다르다.

 

[링크 : https://continuetochallenge.tistory.com/40]

'Linux > openSUSE' 카테고리의 다른 글

openSUSE ssh 활성화 하기  (0) 2021.01.04
openSUSE 패키지 관리자 zypper  (0) 2021.01.04
Posted by 구차니