Falling in love with C language: storage of integers and floating point types in memory (base conversion, original code, complement, complement and big and small endian)

Author: Ah Hui is extraordinary What do you think: Life is dull, but running is windy Column: Falling in love with C language Drawing tool: draw.io(Free and open source drawing website) If you think the article is helpful to you, please like, follow, and collect to support the blogger. If there are any deficiencies, please […]

bclinux aarch64 ceph 14.2.10 file storage Ceph File System, you need to deploy mds: ceph-deploy mds

Createapool [root@ceph-0~]#cephosdpoolcreatecephfs_data64pool’cephfs_data’created[root@ceph-0~]#cephosdpoolcreatecephfs_metadata32pool’cephfs_metadata’created cephfs_metadata64error Officialdescription: Metadatapoolstypicallyholduptoafewgigabytesofdata.Forthisreason,itisgenerallyrecommendedtouseasmallerPGcount.Typically64or128isusedinpracticeforlargeclusters. poollist [root@ceph-0~]#cephosdpoollsvdbenchcephfs_datacephfs_metadata Createfilesystem [root@ceph-0~]#cephfsnewcephfscephfs_metadatacephfs_datanewfswithmetadatapool4anddatapool3[root@ceph-0~]#cephfslsname:cephfs,metadatapool:cephfs_metadata,datapools:[cephfs_data] Filesystemstatus [root@ceph-0~]#cephfsstatuscephfscephfs-0clients======+——+——-+—–+———-+—–+——+|Rank|State|MDS|Activity|dns|inos|+——+——-+—–+———-+—–+——++——+——-+—–+———-+—–+——++—————–+———-+——-+——-+|Pool|type|used|avail|+—————–+———-+——-+——-+|cephfs_metadata|metadata|0|103G||cephfs_data|data|0|103G|+—————–+———-+——-+——-++————-+|StandbyMDS|+————-++————-++———+———+|version|daemons|+———+———++———+———+ Clusterstatus [root@ceph-0~]#ceph-scluster:id:ff72b496-d036-4f1b-b2ad-55358f3c16cbhealth:HEALTH_ERR1filesystemisoffline1filesystemisonlinewithfewerMDSthanmax_mdsmonceph-0islowonavailablespace services:mon:4daemons,quorumceph-3,ceph-1,ceph-0,ceph-2(age4h)mgr:ceph-0(active,since45h),standbys:ceph-1,ceph-3,ceph-2mds:cephfs:0osds:4osds:3up(since45h),3in(since44h) data:pools:3pools,224pgsobjects:4.30kobjects,17GiBusage:53GiBused,247GiB/300GiBavailablepgs:224active+clean Viewmdsstatus(x) [root@ceph-0~]#cephmdsstatcephfs:0 mdshasnoreadynode Thisserviceisnotdeployedbasedonceph-deploy ceph-deploydeploymds ceph-deploymdscreateceph-0ceph-1ceph-2ceph-3 Deploymentsuccesslog [root@ceph-0~]#cd/etc/ceph/ [root@ceph-0ceph]#ceph-deploymdscreateceph-0ceph-1ceph-2ceph-3 [ceph_deploy.conf][DEBUG]foundconfigurationfileat:/root/.cephdeploy.conf [ceph_deploy.cli][INFO]Invoked(2.0.1):/usr/bin/ceph-deploymdscreateceph-0ceph-1ceph-2ceph-3 [ceph_deploy.cli][INFO]ceph-deployoptions: [ceph_deploy.cli][INFO]username:None [ceph_deploy.cli][INFO]verbose:False [ceph_deploy.cli][INFO]overwrite_conf:False [ceph_deploy.cli][INFO]subcommand:create [ceph_deploy.cli][INFO]quiet:False [ceph_deploy.cli][INFO]cd_conf:<ceph_deploy.conf.cephdeploy.Confinstanceat0xffff976c7640> [ceph_deploy.cli][INFO]cluster:ceph [ceph_deploy.cli][INFO]func:<functionmdsat0xffff977620d0> [ceph_deploy.cli][INFO]ceph_conf:None [ceph_deploy.cli][INFO]mds:[(‘ceph-0′,’ceph-0’),(‘ceph-1′,’ceph-1’),(‘ceph-2′,’ceph-2’),(‘ceph-3′,’ceph-3’)] [ceph_deploy.cli][INFO]default_release:False [ceph_deploy.mds][DEBUG]Deployingmds,clustercephhostsceph-0:ceph-0ceph-1:ceph-1ceph-2:ceph-2ceph-3:ceph-3 [ceph-0][DEBUG]connectedtohost:ceph-0 [ceph-0][DEBUG]detectplatforminformationfromremotehost 21.10U3LTS bclinux [ceph-0][DEBUG]detectmachinetype [ceph_deploy.mds][INFO]Distroinfo:bclinux21.10U321.10U3LTS [ceph_deploy.mds][DEBUG]remotehostwillusesystemd [ceph_deploy.mds][DEBUG]deployingmdsbootstraptoceph-0 [ceph-0][DEBUG]writeclusterconfigurationto/etc/ceph/{cluster}.conf [ceph-0][WARNIN]mdskeyringdoesnotexistyet,creatingone [ceph-0][DEBUG]createakeyringfile [ceph-0][DEBUG]createpathifitdoesn’texist [ceph-0][INFO]Runningcommand:ceph–clusterceph–nameclient.bootstrap-mds–keyring/var/lib/ceph/bootstrap-mds/ceph.keyringauthget-or-createmds.ceph-0osdallowrwxmdsallowmonallowprofilemds-o/var/lib/ceph/mds/ceph-ceph-0/keyring [ceph-0][INFO]Runningcommand:systemctlenableceph-mds@ceph-0 [ceph-0][WARNIN]Createdsymlink/etc/systemd/system/ceph-mds.target.wants/[email protected]→/usr/lib/systemd/system/[email protected]. [ceph-0][INFO]Runningcommand:systemctlstartceph-mds@ceph-0 […]

Storage structure and query performance optimization of ClickHouse primary key index

Table of Contents Storage structure and query performance optimization of ClickHouse primary key index 1. Storage structure of primary key index 2. Query performance optimization methods 2.1. Use primary key index table 2.2. Column storage and data compression 2.3. Merge engine (MergeTree) 2.4. Data copy in conclusion Sample code: Use ClickHouse for e-commerce sales data […]

Data storage in memory

Table of Contents Introduction to data types Basic classification of types: Storage of shaping in memory Original code, inverse code, complement code Introduction to big and small endian practise Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5 Floating point type storage in memory one example Floating point number storage rules Their value ranges […]

In embedded design, for a variable storage design with only two states, how to efficiently quantify the deviation of the tracking car…

Foreword (1) In embedded programming, we often need to store data from various sensors. Most of the time sensors, such as infrared light sensors, return data that is either 0 or 1. Therefore, only one bit is needed to store it. However, many people often use char array storage, so that only one-eighth of the […]

k8s persistent storage PV, PVC

Table of Contents emptyDir storage volume hostPath storage volume nfs shared storage volume PVC and PV PV creation and destruction process NFS uses PV and PVC Build StorageClass + NFS to realize dynamic PV creation of NFS The life cycle of files on the container disk is short-lived, which causes some problems when running important […]

SpringBoot3+Vue3+Mysql+Element Plus completes the database storage of blob type images, and the front end renders the base64 type images transmitted from the back end.

Foreword If your front-end and back-end separation project uses SpringBoot3 + Vue3 + Element Plus, and without OSS (object storage), use mysql to read and write images (may not be limited to images, to be tested). It took three days and after stepping on countless minefields, this function was finally completed. Presented to you. Complete […]

Paging storage management, segmented storage management, segmented page storage management, two-level page table

Table of contents: Paged storage management Basic address storage mechanism Address storage mechanism with fast table two-level page table Segmented storage management Segment page management method Paging storage management (key) First review, logical address and physical address. Why introduce paging storage management? Utilize all discrete pieces under the physical address, that is, they appear to […]

Binary tree (chained structure storage)

Personal business card: About the author: A sophomore student who is willing to share what he has learned on the road of study. Personal homepage: GOTXX Personal WeChat: ILXOXVJEThis article is original by GOTXX and first published on CSDN Column series: Learning C language from scratch —– The road to learning data structuresWord of the […]