怎樣進行CentOSLinuxrelease7磁盤擴容-創新互聯

本篇文章給大家分享的是有關怎樣進行CentOS Linux release 7磁盤擴容,小編覺得挺實用的,因此分享給大家學習,希望大家閱讀完這篇文章后可以有所收獲,話不多說,跟著小編一起來看看吧。

創新互聯是一家專業提供于都企業網站建設,專注與成都做網站、網站設計、H5開發、小程序制作等業務。10年已為于都眾多企業、政府機構等服務。創新互聯專業網站建設公司優惠進行中。

[root@Userv-a cl]# cat  /etc/redhat-release

CentOS Linux release 7.5.1804 (Core) 

[root@Userv-a cl]# 

[root@Userv-a ~]# fdisk  -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 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: 0x000a70d7

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *        2048     2099199     1048576   83  Linux

/dev/sda2         2099200   209715199   103808000   8e  Linux LVM

Disk /dev/mapper/cl-root: 53.7 GB, 53687091200 bytes, 104857600 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/cl-swap: 8455 MB, 8455716864 bytes, 16515072 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/cl-home: 44.1 GB, 44149243904 bytes, 86228992 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@Userv-a ~]# echo "- - -" > /sys/class/scsi_host/host0/scan

[root@Userv-a ~]# fdisk  -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 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: 0x000a70d7

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *        2048     2099199     1048576   83  Linux

/dev/sda2         2099200   209715199   103808000   8e  Linux LVM

Disk /dev/mapper/cl-root: 53.7 GB, 53687091200 bytes, 104857600 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/cl-swap: 8455 MB, 8455716864 bytes, 16515072 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/cl-home: 44.1 GB, 44149243904 bytes, 86228992 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: 107.4 GB, 107374182400 bytes, 209715200 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@Userv-a ~]# pvcreate /dev/sdb

  Physical volume "/dev/sdb" successfully created.

[root@Userv-a ~]# pvs

  PV         VG Fmt  Attr PSize   PFree  

  /dev/sda2  cl lvm2 a--  <99.00g   4.00m

  /dev/sdb      lvm2 ---  100.00g 100.00g

[root@Userv-a ~]# vgextend cl /dev/sdb

  Volume group "cl" successfully extended

[root@Userv-a ~]# vgs

  VG #PV #LV #SN Attr   VSize   VFree  

  cl   2   3   0 wz--n- 198.99g 100.00g

[root@Userv-a ~]# pvs

  PV         VG Fmt  Attr PSize    PFree   

  /dev/sda2  cl lvm2 a--   <99.00g    4.00m

  /dev/sdb   cl lvm2 a--  <100.00g <100.00g

[root@Userv-a ~]# cd  /dev

[root@Userv-a dev]# ls

agpgart        cpu              fd0        loop-control        oldmem  sda1      stderr  tty14  tty23  tty32  tty41  tty50  tty6   ttyS2    vcs4   vfio

autofs         cpu_dma_latency  full       mapper              port    sda2      stdin   tty15  tty24  tty33  tty42  tty51  tty60  ttyS3    vcs5   vga_arbiter

block          crash            fuse       mcelog              ppp     sdb       stdout  tty16  tty25  tty34  tty43  tty52  tty61  uhid     vcs6   vhci

bsg            disk             hpet       mem                 ptmx    sg0       tty     tty17  tty26  tty35  tty44  tty53  tty62  uinput   vcsa   vhost-net

btrfs-control  dm-0             hugepages  mqueue              pts     sg1       tty0    tty18  tty27  tty36  tty45  tty54  tty63  urandom  vcsa1  vmci

cdrom          dm-1             hwrng      net                 random  sg2       tty1    tty19  tty28  tty37  tty46  tty55  tty7   usbmon0  vcsa2  vsock

char           dm-2             initctl    network_latency     raw     shm       tty10   tty2   tty29  tty38  tty47  tty56  tty8   vcs      vcsa3  zero

cl             dri              input      network_throughput  rtc     snapshot  tty11   tty20  tty3   tty39  tty48  tty57  tty9   vcs1     vcsa4

console        fb0              kmsg       null                rtc0    snd       tty12   tty21  tty30  tty4   tty49  tty58  ttyS0  vcs2     vcsa5

core           fd               log        nvram               sda     sr0       tty13   tty22  tty31  tty40  tty5   tty59  ttyS1  vcs3     vcsa6

[root@Userv-a dev]# cd cl

[root@Userv-a cl]# ls

home  root  swap

[root@Userv-a cl]# df   -h

Filesystem           Size  Used Avail Use% Mounted on

/dev/mapper/cl-root   50G   45G  5.7G  89% /

devtmpfs             3.9G     0  3.9G   0% /dev

tmpfs                3.9G     0  3.9G   0% /dev/shm

tmpfs                3.9G  137M  3.7G   4% /run

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

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

/dev/mapper/cl-home   42G  682M   41G   2% /home

tmpfs                783M     0  783M   0% /run/user/0

[root@Userv-a cl]# 

[root@Userv-a cl]# lvextend -L 80g /dev/cl/root

  Size of logical volume cl/root changed from 50.00 GiB (12800 extents) to 80.00 GiB (20480 extents).

  Logical volume cl/root successfully resized.

[root@Userv-a cl]# df   -h

Filesystem           Size  Used Avail Use% Mounted on

/dev/mapper/cl-root   50G   45G  5.7G  89% /

devtmpfs             3.9G     0  3.9G   0% /dev

tmpfs                3.9G     0  3.9G   0% /dev/shm

tmpfs                3.9G  137M  3.7G   4% /run

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

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

/dev/mapper/cl-home   42G  682M   41G   2% /home

tmpfs                783M     0  783M   0% /run/user/0

[root@Userv-a cl]# xfs_growfs  /dev/cl/root

meta-data=/dev/mapper/cl-root    isize=512    agcount=4, agsize=3276800 blks

         =                       sectsz=512   attr=2, projid32bit=1

         =                       crc=1        finobt=0 spinodes=0

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

         =                       sunit=0      swidth=0 blks

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

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

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

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

data blocks changed from 13107200 to 20971520

[root@Userv-a cl]# df  -h

Filesystem           Size  Used Avail Use% Mounted on

/dev/mapper/cl-root   80G   45G   36G  56% /

devtmpfs             3.9G     0  3.9G   0% /dev

tmpfs                3.9G     0  3.9G   0% /dev/shm

tmpfs                3.9G  137M  3.7G   4% /run

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

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

/dev/mapper/cl-home   42G  682M   41G   2% /home

tmpfs                783M     0  783M   0% /run/user/0

[root@Userv-a cl]# 

以上就是怎樣進行CentOS Linux release 7磁盤擴容,小編相信有部分知識點可能是我們日常工作會見到或用到的。希望你能通過這篇文章學到更多知識。更多詳情敬請關注創新互聯-成都網站建設公司行業資訊頻道。

文章名稱:怎樣進行CentOSLinuxrelease7磁盤擴容-創新互聯
網頁鏈接:http://m.kartarina.com/article2/ccijoc.html

成都網站建設公司_創新互聯,為您提供手機網站建設網站設計網站內鏈網站收錄虛擬主機自適應網站

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

小程序開發
主站蜘蛛池模板: 精品人妻少妇嫩草AV无码专区| 精品人妻系列无码人妻漫画 | av区无码字幕中文色| 高清无码视频直接看| 99无码精品二区在线视频| 永久无码精品三区在线4| 无码国产精品一区二区免费16 | 无码国产精品一区二区免费| 亚洲无码视频在线| 精品人无码一区二区三区| 亚洲精品无码专区久久同性男| 精品久久久久久无码专区| 超清纯白嫩大学生无码网站| 亚洲中文无码卡通动漫野外| 国产产无码乱码精品久久鸭| 亚洲av无码成人精品区| 亚洲综合久久精品无码色欲| 亚洲国产精品无码中文字| 无码视频在线播放一二三区| 日日摸夜夜添无码AVA片 | 无码人妻久久久一区二区三区 | 无码激情做a爰片毛片AV片 | 伊人久久大香线蕉无码| 国产成人精品无码一区二区| 久久精品无码免费不卡| 国产精品成人无码久久久| 无码成人精品区在线观看| 蜜桃臀无码内射一区二区三区| 天堂Aⅴ无码一区二区三区| 免费一区二区无码视频在线播放| 无遮掩无码h成人av动漫| 中文字幕av无码一二三区电影 | 午夜成人无码福利免费视频| 熟妇人妻无码中文字幕老熟妇| 一区二区三区无码高清视频| 久久久久精品国产亚洲AV无码| 99久久亚洲精品无码毛片| 久久久久亚洲AV片无码下载蜜桃 | 丰满熟妇人妻Av无码区| 亚洲精品无码鲁网中文电影| av无码人妻一区二区三区牛牛|