Linux LVM在线扩容xfs文件系统(创建大于2T的磁盘分区)

2023-05-16

1. 使用parted方式格式化磁盘

1.1 查看磁盘情况

[root@superman ~]# fdisk -l

 

Disk /dev/sdd: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdb: 42.9 GB, 42949672960 bytes, 83886080 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdc: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sde: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdf: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sda: 536.9 GB, 536870912000 bytes, 1048576000 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x0008ce60

 

  Device Boot   Start     End   Blocks  Id System

/dev/sda1  *    2048   2099199   1048576  83 Linux

/dev/sda2     2099200 1048567807  523234304  8e Linux LVM

 

Disk /dev/mapper/vg_root-lv_root: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_swap: 68.7 GB, 68719476736 bytes, 134217728 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_data: 209.4 GB, 209371267072 bytes, 408928256 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_home: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-oracle: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_grid: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdg: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

[root@superman ~]# 

1.2 使用parted格式化/dev/sdg分区

[root@superman ~]# parted /dev/sdg

GNU Parted 3.1

Using /dev/sdg

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) mklabel gpt        ------将MBR分区形式转为GPT分区形式                        

(parted) mkpart primary xfs 0 -1  ------设置分区的开始位置和结束位置                   

Warning: The resulting partition is not properly aligned for best performance.

Ignore/Cancel? Ignore                          

(parted) print           ------查看分区                              

Model: VMware Virtual disk (scsi)

Disk /dev/sdg: 2199GB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Disk Flags: 

 

Number Start  End   Size  File system Name   Flags

 1   17.4kB 2199GB 2199GB        primary

 

(parted) toggle 1 lvm        ------使用toggle 更改硬盘类型                     

(parted) print           ------查看分区                    

Model: VMware Virtual disk (scsi)

Disk /dev/sdg: 2199GB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Disk Flags: 

 

Number Start  End   Size  File system Name   Flags

 1   17.4kB 2199GB 2199GB        primary lvm


(parted) quit                              

Information: You may need to update /etc/fstab.

 

[root@superman ~]#

1.3 查看格式化后的分区情况

[root@superman ~]# fdisk -l

 

Disk /dev/sdd: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdb: 42.9 GB, 42949672960 bytes, 83886080 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdc: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sde: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdf: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sda: 536.9 GB, 536870912000 bytes, 1048576000 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x0008ce60

 

  Device Boot   Start     End   Blocks  Id System

/dev/sda1  *    2048   2099199   1048576  83 Linux

/dev/sda2     2099200 1048567807  523234304  8e Linux LVM

 

Disk /dev/mapper/vg_root-lv_root: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_swap: 68.7 GB, 68719476736 bytes, 134217728 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_data: 209.4 GB, 209371267072 bytes, 408928256 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_home: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-oracle: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_grid: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

 

Disk /dev/sdg: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: gpt

Disk identifier: 9C5E039C-2C6C-4585-8EAB-7B2DBA949516

 

 

\#     Start     End  Size Type      Name

 1      34  4294965343   2T Linux LVM    primary

[root@superman ~]# 

1.4 使系统重读分区表

[root@superman ~]# partprobe

Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.

[root@superman ~]# 

[root@superman ~]# fdisk -l 

 

Disk /dev/sdd: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdb: 42.9 GB, 42949672960 bytes, 83886080 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdc: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sde: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sdf: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/sda: 536.9 GB, 536870912000 bytes, 1048576000 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x0008ce60

 

  Device Boot   Start     End   Blocks  Id System

/dev/sda1  *    2048   2099199   1048576  83 Linux

/dev/sda2     2099200 1048567807  523234304  8e Linux LVM

 

Disk /dev/mapper/vg_root-lv_root: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_swap: 68.7 GB, 68719476736 bytes, 134217728 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_data: 209.4 GB, 209371267072 bytes, 408928256 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_home: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-oracle: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

 

Disk /dev/mapper/vg_root-lv_grid: 64.4 GB, 64424509440 bytes, 125829120 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

 

Disk /dev/sdg: 2199.0 GB, 2199023255552 bytes, 4294967296 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: gpt

Disk identifier: 9C5E039C-2C6C-4585-8EAB-7B2DBA949516

 

 

\#     Start     End  Size Type      Name

 1      34  4294965343   2T Linux LVM    primary

[root@superman ~]# 

2 创建pv、扩容vg、扩容lv、扩容xfs分区

2.1 查看目前分区情况

[root@superman ~]# df -h

Filesystem          Size Used Avail Use% Mounted on

/dev/mapper/vg_root-lv_root  60G 6.2G  54G 11% /

devtmpfs           63G   0  63G  0% /dev

tmpfs             63G 640M  63G  1% /dev/shm

tmpfs             63G  32M  63G  1% /run

tmpfs             63G   0  63G  0% /sys/fs/cgroup

/dev/sda1          1014M 179M 836M 18% /boot

/dev/mapper/vg_root-lv_grid  60G  40G  21G 66% /grid

/dev/mapper/vg_root-lv_data 195G 595M 195G  1% /data

/dev/mapper/vg_root-oracle  60G  22G  38G 37% /oracle

/dev/mapper/vg_root-lv_home  60G  16G  45G 27% /home

tmpfs             13G  12K  13G  1% /run/user/42

tmpfs             13G   0  13G  0% /run/user/1000

[root@superman ~]# 

2.2 查看目前lv情况

[root@superman ~]# lvs

 LV   VG   Attr    LSize  Pool Origin Data% Meta% Move Log Cpy%Sync Convert

 lv_data vg_root -wi-ao---- 194.99g                          

 lv_grid vg_root -wi-ao---- 60.00g                          

 lv_home vg_root -wi-ao---- 60.00g                          

 lv_root vg_root -wi-ao---- 60.00g                          

 lv_swap vg_root -wi-ao---- 64.00g                          

 oracle vg_root -wi-ao---- 60.00g                          

[root@superman ~]# 

2.3 查看目前vg情况

[root@superman ~]# vgs

 VG   #PV #LV #SN Attr  VSize  VFree

 vg_root  1  6  0 wz--n- 498.99g  0 

[root@superman ~]# 

2.4 创建pv

[root@superman ~]# pvcreate /dev/sdg1

 Physical volume "/dev/sdg1" successfully created.

[root@superman ~]# 

2.5 扩容vg

[root@superman ~]# vgextend vg_root /dev/sdg1

 Volume group "vg_root" successfully extended

[root@superman ~]# 

2.6 查看vg扩容情况

[root@superman ~]# vgs

 VG   #PV #LV #SN Attr  VSize VFree 

 vg_root  2  6  0 wz--n- <2.49t <2.00t

[root@superman ~]# 

2.7 查看扩容后vg大小情况

[root@superman ~]# vgdisplay

 --- Volume group ---

 VG Name        vg_root

 System ID       

 Format        lvm2

 Metadata Areas    2

 Metadata Sequence No 8

 VG Access       read/write

 VG Status       resizable

 MAX LV        0

 Cur LV        6

 Open LV        6

 Max PV        0

 Cur PV        2

 Act PV        2

 VG Size        <2.49 TiB

 PE Size        4.00 MiB

 Total PE       652029

 Alloc PE / Size    127742 / 498.99 GiB

 Free PE / Size    524287 / <2.00 TiB

 VG UUID        bV0qQR-Vhfg-ynTF-dbza-qJD1-ao3k-l02WiP

  

[root@superman ~]# 

2.8 扩容lv

[root@superman ~]# lvextend -L +2097148M /dev/mapper/vg_root-lv_data

 Size of logical volume vg_root/lv_data changed from 194.99 GiB (49918 extents) to 2.19 TiB (574205 extents).

 Logical volume vg_root/lv_data successfully resized.

[root@superman ~]# 

2.9 查看容量变化,发现文件系统大小没有变化

[root@superman ~]# df -h

Filesystem          Size Used Avail Use% Mounted on

/dev/mapper/vg_root-lv_root  60G 6.2G  54G 11% /

devtmpfs           63G   0  63G  0% /dev

tmpfs             63G 640M  63G  1% /dev/shm

tmpfs             63G  32M  63G  1% /run

tmpfs             63G   0  63G  0% /sys/fs/cgroup

/dev/sda1          1014M 179M 836M 18% /boot

/dev/mapper/vg_root-lv_grid  60G  40G  21G 66% /grid

/dev/mapper/vg_root-lv_data 195G 595M 195G  1% /data

/dev/mapper/vg_root-oracle  60G  22G  38G 37% /oracle

/dev/mapper/vg_root-lv_home  60G  16G  45G 27% /home

tmpfs             13G  12K  13G  1% /run/user/42

tmpfs             13G   0  13G  0% /run/user/1000

[root@superman ~]# 

2.10 使用xfs_growfs同步磁盘信息

[root@superman ~]# xfs_growfs /dev/mapper/vg_root-lv_data 

meta-data=/dev/mapper/vg_root-lv_data isize=512  agcount=4, agsize=12779008 blks

​     =            sectsz=512  attr=2, projid32bit=1

​     =            crc=1    finobt=0 spinodes=0

data   =            bsize=4096  blocks=51116032, imaxpct=25

​     =            sunit=0   swidth=0 blks

naming  =version 2       bsize=4096  ascii-ci=0 ftype=1

log   =internal        bsize=4096  blocks=24959, version=2

​     =            sectsz=512  sunit=0 blks, lazy-count=1

realtime =none          extsz=4096  blocks=0, rtextents=0

data blocks changed from 51116032 to 587985920

[root@superman ~]# 

2.11 查看容量变化,发现文件系统已扩容成功

[root@superman ~]# df -h

Filesystem          Size Used Avail Use% Mounted on

/dev/mapper/vg_root-lv_root  60G 6.2G  54G 11% /

devtmpfs           63G   0  63G  0% /dev

tmpfs             63G 640M  63G  1% /dev/shm

tmpfs             63G  32M  63G  1% /run

tmpfs             63G   0  63G  0% /sys/fs/cgroup

/dev/sda1          1014M 179M 836M 18% /boot

/dev/mapper/vg_root-lv_grid  60G  40G  21G 66% /grid

/dev/mapper/vg_root-lv_data 2.2T 597M 2.2T  1% /data

/dev/mapper/vg_root-oracle  60G  22G  38G 37% /oracle

/dev/mapper/vg_root-lv_home  60G  16G  45G 27% /home

tmpfs             13G  12K  13G  1% /run/user/42

tmpfs             13G   0  13G  0% /run/user/1000

[root@superman ~]# 
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Linux LVM在线扩容xfs文件系统(创建大于2T的磁盘分区) 的相关文章

  • androidStudio不能run运行,显示Loading devices...

    问题示图 试了n种解决方案 1 Clean project 再Rebuild project 2 点击File然后Invalidate andRestart 重启AndroidStudio并清理缓存 3 重启电脑 或者关机再开机 试了常用的
  • 探索Android中的Parcel机制(上)

    一 xff0e 先从 Serialize 说起 我们都知道 JAVA 中的 Serialize 机制 xff0c 译成串行化 序列化 xff0c 其作用是能将数据对象存入字节流当中 xff0c 在需要时重新生成对象 主要应用是利用外部存储设
  • Android动态获取手机是否是充电状态

    参考谷歌官方文档 https developer android google cn topic performance power 一 获取充电状态 在应用中执行某些操作 如软件云端备份 从服务器端获取最新版本号 从服务器端缓存最新软件安
  • EF_Using(问题)

    xfeff xfeff using 语句中使用的类型必须可隐式转换为 System IDisposable using 语句中使用的类型必须可隐式转换为 System IDisposable 在使用 EF 出现 using 语句中使用的类型
  • 100个不能错过的实用JS自定义函数

    1 原生JavaScript实现字符串长度截取 代码如下 span class token keyword function span span class token function cutstr span span class tok
  • Android.mk 编译报错undefined reference to

    当出现 undefined reference to xxx时 xff0c 对应的lib库已经添加到LOCAL STATIC LIBRARIES里面 xff0c 且 头文件已经已经添加时 xff0c 仍然报 undefined refere
  • yocto QT5 QSqlDatabase: QSQLITE driver not loaded

    yocto中默认编译出来的qt是不带有sql driver xff0c 即缺少插件库libqsqlite so 修改位置 xff1a 1 在xx meta qt5 recipes qt qt5 qtbase git bb中 xff0c 修改
  • systemd 介绍

    转自 xff1a https www linuxidc com Linux 2018 03 151291 htm 从 init 系统说起 Linux 操作系统的启动首先从 BIOS 开始 xff0c 接下来进入 boot loader xf
  • 详细讲解systemctl(附常用指令)

    目录 写在前面 systemd和systemctl systemd的配置文件目录 主要服务功能类型 服务状态 常用指令 切换系统模式 xff08 文本 界面模式等 xff09 systemctl配置文件的设置 写在前面 我发现systemc
  • Linux中systemctl详细理解及常用命令

    一 systemctl理解 Linux 服务管理两种方式service和systemctl systemd是Linux系统最新的初始化系统 init 作用是提高系统的启动速度 xff0c 尽可能启动较少的进程 xff0c 尽可能更多进程并发
  • ARM AArch64 GUN交叉编译工具下载官网

    Arm Developer https developer arm com tools and software open source software developer tools gnu toolchain gnu a downlo
  • GStreamer系列 - 基本介绍

    什么是Gstreamer xff1f Gstreamer是一个支持Windows xff0c Linux xff0c Android xff0c iOS的跨平台的多媒体框架 xff0c 应用程序可以通过管道 xff08 Pipeline x
  • 探索Android中的Parcel机制(下)

    上一篇中我们透过源码看到了 Parcel 背后的机制 xff0c 本质上把它当成一个 Serialize 就可以了 xff0c 只是它是在内存中完成的序列化和反序列化 xff0c 利用的是连续的内存空间 xff0c 因此会更加高效 我们接下
  • Caused by: java.lang.UnsupportedClassVersionError: Unsupported major.minor version 52.0 (无法载入的.类

    Caused by java lang UnsupportedClassVersionError com iov common crud node TPSAlipayConfig Unsupported major minor versio
  • ubuntu18 buildroot make xconfig make gconfig faile

    make xconfig sudo apt get install qttools5 dev make gconfig sudo apt get install libglade2 dev
  • qt5的configure选项说明

    一 配置选项查看及初步解释 通过下面命令查看都有哪一些编译配置选项 span class token punctuation span span class token operator span configure span class
  • qt build

    QT笔记 嵌入式QT交叉编译与移植 含OpenGL ES2 https blog csdn net weixin 40293570 article details 117731268
  • OpenGL之gult/freeglut/glew/glfw/glad的联系与区别

    转 https blog csdn net libaineu2004 article details 105879521 转 https blog csdn net qq 40565033 article details 107715956
  • linux arm fdisk, 对未使用emmc分区扩容

    yocto编译后的wic镜像 xff0c 在刷机后 xff0c 仍有很大部分emmc未使用 xff0c 下面将未使用的emmc扩展到文件系统挂载分区 root 64 imx8dxmek df h Filesystem Size Used A
  • Shell脚本 EOF使用

    前言 xff1a EOF是End Of File的缩写 xff0c 表示自定义终止符 既然自定义 xff0c 那么EOF就不是固定的 xff0c 可以随意设置别名 xff0c 意思是把内容当作标准输入传给程序 xff0c Linux中按Ct

随机推荐

  • matlab之将视频逐帧保存为图片

    clc clear all close all 将视频逐帧保存为jpg图片 obj 61 VideoReader 39 F mh rgb avi 39 输入视频位置 numFrames 61 obj NumberOfFrames 帧的总数
  • 同步锁

    线程和进程 xff1a 几乎所有的操作系统都支持进程的概念 xff0c 所有运行中的任务通常对应一个进程 xff08 Process xff09 当一个程序 进入内存运行时 xff0c 即变成一个进程 而一个线程中又包含多个进程 多线程的问
  • spring容器和SpringMVC容器的区别

    说起spring容器和SpringMVC容器 xff0c 很多刚接触spring框架的同志都有点懵 xff0c 甚至是一头雾水 xff0c 分不清楚两者的关系和区别 xff0c 包括本人也是 xff0c 因此还在网上找个不少资料 这俩容器呢
  • 解决JavaWeb中文乱码问题

    解决JavaWeb的中文乱码 在日常的Java项目开发中 xff0c 乱码成了程序员必经的一道坎 乱码的缘故很好理解 xff0c 就是编码格式和解码格式不一致 xff0c JVM在编译的时候是由于 Web 容器使用了ISO 8859 1的编
  • 敏捷之伤——燃尽图

    燃尽图 xff08 burn down chart xff09 是在项目完成之前 xff0c 对需要完成的工作的一种可视化表示 燃尽图有一个Y轴 xff08 工作 xff09 和X轴 xff08 时间 xff09 理想情况下 xff0c 该
  • SQL Server查询、限制返回行数

    我们在日常开发中 xff0c 经常涉及到分页查询 特别是和页面进行交互 xff0c 分页查询已是家常便饭 现在很多的jq插件都会有分页的模块 xff0c 可以在页面上将数据更好的呈现给用户 xff0c 使得用户拥有更好的体验 像我们熟悉的有
  • mybatis

    我们在做SSM项目的时候 xff0c mybatis是其中的一部分 xff0c 是最后一步也是最重要的一步 xff0c 因为很多时候我们都是为了对数据库进行改动 前几天我在复习mybatis的时候 xff0c 就把一些可能会踩到的坑都碰到了
  • 浅谈yaml

    YAML 是 YAML Ain t a Markup Language xff08 YAML 不是一种标记语言 xff09 的递归缩写 在开发的这种语言时 xff0c YAML 的意思其实是 xff1a Yet Another Markup
  • 跨域处理(CORS)

    首先 xff0c 来了解什么是跨域 xff1f 出于安全性 xff0c 浏览器限制脚本内 xff08 多数情况指ajax xff09 发起的跨源HTTP请求 这意味着使用这些API的 Web应用程序只能从加载应用程序的同一个域请求HTTP资
  • java 文件上传

    Java的件上传有很多种实现方式 xff0c 原生的java程序使用的都是HttpServletRequest来接收前台的文件数据 xff0c 然后通过file进行转换等等来实现的 本文章是使用springboot来实现文件上传的功能 xf
  • linux系统上安装JDK8

    作者 xff1a ChenZhen 博客地址 xff1a https www chenzhen space 版权 xff1a 本文为博主 ChenZhen 的原创文章 xff0c 本文版权归作者所有 xff0c 转载请附上原文出处链接及本声
  • 源码离线安装mariadb

    源码离线安装mariadb 卸载系统自带mariadb libs 使用下面的命令检查是否安装有MySQL MariaDB rpm qa grep mariadb rpm e mariadb libs 5 5 68 1 el7 x86 64
  • 结束,也是开始。

    三年时光转眼即逝 xff0c 临到毕业才幡然醒悟 xff0c 自己掌握的专业技能太少 xff0c 最后几个月才养成了几个好习惯 在上班利用空闲时间多学学其他的技术 xff0c 希望自己可以不停的努力 xff0c 充实自己的每一天
  • 论 "张筱雨"

    当今网络谁最红 xff1f 当今网络谁最裸 xff1f 当今网络谁征服了大多数男人们的眼球 xff1f 当今网络谁最具创新 xff0c 引领时尚潮流 xff0c 当今网络谁敢和日本AV女优叫板 那么她就是 张筱雨 张筱雨 xff01 xff
  • Linux的多用户登录

    1 Windows只允许在同一时刻只有一个用户登录 xff0c 而Linux允许多用户同时登录 2 在Linux下 xff0c 用户有两种登录模式 一种是 图形界面登录 xff0c 类似于Windows 另一种是 文本登录 xff0c 类似
  • URI encode与URL encode对空格的不同处理

    在各种开放平台 OpenAPI越来越多之时 xff0c 客户端软件或多或少的在通过HTTP HTTPS协议与服务器交互 这其中一个常见的情况就是要求对URL进行encode处理 xff0c 以保证中文 特殊字符的正确传递 不过这个小小的en
  • No plugin found for prefix 'install' in the current project解决方案

    本来以下配置 xff0c 报上面的错 lt mirrors gt lt mirror Specifies a repository mirror site to use instead of a given repository The r
  • android的onNewIntent

    1 onNewIntent Intent intent 是Activity类的方法 它被调用发几种情况如下 lt activity android name 61 34 NewIntentDemo 34 android label 61 3
  • 全网火爆,JMeter性能测试-压力负载测试场景(总结)看这一篇足够了......

    目录 xff1a 导读 前言一 Python编程入门到精通二 接口自动化项目实战三 Web自动化项目实战四 App自动化项目实战五 一线大厂简历六 测试开发DevOps体系七 常用自动化测试工具八 JMeter性能测试九 总结 xff08
  • Linux LVM在线扩容xfs文件系统(创建大于2T的磁盘分区)

    1 使用parted方式格式化磁盘 1 1 查看磁盘情况 root 64 superman fdisk l Disk dev sdd 2199 0 GB 2199023255552 bytes 4294967296 sectors Unit