Linux扩展分区和文件系统

磁盘分区
linux也与windows一样,为了使用全部的磁盘空间,需要先对磁盘分区;如果所有分区的总容量小于磁盘容量,说明磁盘还有未分配空间,这个时候会对磁盘造成浪费。需要增加一个新的分区来将全部空间利用上。

fdisk
此命令是磁盘的管理命令。fdisk -l可查看目前磁盘总容量和各分区情况。
fdisk /dev/sda可查看sda磁盘的相关情况,磁盘命名的规则,第一位代表磁盘类型,例如scsi用s表示,虚拟磁盘用v表示。第三位表示硬盘数,从a开始,一直到z。
fdisk -m下可查看各种相关命令,例如增加分区 m,删除分区 d

文件系统
当将未分配的空间追加到新的分区/dev/sda2后,还需要创建物理卷以及扩展。
pvcreate /dev/sda2
vgscan
vgextend cl /dev/sda3
lvextend -L +100G 加上要扩展的分区名

接着用 dh –f,发现实际容量并没有变化,因为我们的系统还不认识刚刚添加进来的磁盘的文件系统,所以还需要对文件系统进行扩容。
xfs_growfs 加上要扩展的分区名或者 resize2fs – f 加 上要扩展的分区名

再次查询,发现文件系统空间变大了。
https://github.com/users/frgyy777888/projects/8286
https://github.com/users/frgyy777888/projects/8287
https://github.com/users/frgyy777888/projects/8288
https://github.com/users/frgyy777888/projects/8289
https://github.com/users/frgyy777888/projects/8290
https://github.com/users/frgyy777888/projects/8291
https://github.com/users/frgyy777888/projects/8292
https://github.com/users/frgyy777888/projects/8293
https://github.com/users/frgyy777888/projects/8294
https://github.com/users/frgyy777888/projects/8295
https://github.com/users/frgyy777888/projects/8296
https://github.com/users/frgyy777888/projects/8297
https://github.com/users/frgyy777888/projects/8298
https://github.com/users/frgyy777888/projects/8299
https://github.com/users/frgyy777888/projects/8300
https://github.com/users/frgyy777888/projects/8301
https://github.com/users/frgyy777888/projects/8302
https://github.com/users/frgyy777888/projects/8303
https://github.com/users/frgyy777888/projects/8304
https://github.com/users/frgyy777888/projects/8305
https://github.com/users/frgyy777888/projects/8306
https://github.com/users/frgyy777888/projects/8307
https://github.com/users/frgyy777888/projects/8309
https://github.com/users/frgyy777888/projects/8308
https://github.com/users/frgyy777888/projects/8310
https://github.com/users/frgyy777888/projects/8311
https://github.com/users/frgyy777888/projects/8312
https://github.com/users/frgyy777888/projects/8313
https://github.com/users/frgyy777888/projects/8314
https://github.com/users/frgyy777888/projects/8315
https://github.com/users/frgyy777888/projects/8316
https://github.com/users/frgyy777888/projects/8317
https://github.com/users/frgyy777888/projects/8318
https://github.com/users/frgyy777888/projects/8319
https://github.com/users/frgyy777888/projects/8320
https://github.com/users/frgyy777888/projects/8321
https://github.com/users/frgyy777888/projects/8322
https://github.com/users/frgyy777888/projects/8323
https://github.com/users/frgyy777888/projects/8324
https://github.com/users/frgyy777888/projects/8325
https://github.com/users/frgyy777888/projects/8326
https://github.com/users/frgyy777888/projects/8327
https://github.com/users/frgyy777888/projects/8328
https://github.com/users/frgyy777888/projects/8329
https://github.com/users/frgyy777888/projects/8330
https://github.com/users/frgyy777888/projects/8331
https://github.com/users/frgyy777888/projects/8332
https://github.com/users/frgyy777888/projects/8333
https://github.com/users/frgyy777888/projects/8334
https://github.com/users/frgyy777888/projects/8335
https://github.com/users/frgyy777888/projects/8336
https://github.com/users/frgyy777888/projects/8337
https://github.com/users/frgyy777888/projects/8338
https://github.com/users/frgyy777888/projects/8339
https://github.com/users/frgyy777888/projects/8340
https://github.com/users/frgyy777888/projects/8341
https://github.com/users/frgyy777888/projects/8342
https://github.com/users/frgyy777888/projects/8343
https://github.com/users/frgyy777888/projects/8344
https://github.com/users/frgyy777888/projects/8345
https://github.com/users/frgyy777888/projects/8346
https://github.com/users/frgyy777888/projects/8347
https://github.com/users/frgyy777888/projects/8348
https://github.com/users/frgyy777888/projects/8349
https://github.com/users/frgyy777888/projects/8350
https://github.com/users/frgyy777888/projects/8351
https://github.com/users/frgyy777888/projects/8352
https://github.com/users/frgyy777888/projects/8353
https://github.com/users/frgyy777888/projects/8354
https://github.com/users/frgyy777888/projects/8355
https://github.com/users/frgyy777888/projects/8356
https://github.com/users/frgyy777888/projects/8357
https://github.com/users/frgyy777888/projects/8358
https://github.com/users/frgyy777888/projects/8359
https://github.com/users/frgyy777888/projects/8360
https://github.com/users/frgyy777888/projects/8361
https://github.com/users/frgyy777888/projects/8362
https://github.com/users/frgyy777888/projects/8363
https://github.com/users/frgyy777888/projects/8364
https://github.com/users/frgyy777888/projects/8365
https://github.com/users/frgyy777888/projects/8366
https://github.com/users/frgyy777888/projects/8367
https://github.com/users/frgyy777888/projects/8368
https://github.com/users/frgyy777888/projects/8369
https://github.com/users/frgyy777888/projects/8370
https://github.com/users/frgyy777888/projects/8371
https://github.com/users/frgyy777888/projects/8372
https://github.com/users/frgyy777888/projects/8373
https://github.com/users/frgyy777888/projects/8374
https://github.com/users/frgyy777888/projects/8375
https://github.com/users/frgyy777888/projects/8376
https://github.com/users/frgyy777888/projects/8377
https://github.com/users/frgyy777888/projects/8378
https://github.com/users/frgyy777888/projects/8379
https://github.com/users/frgyy777888/projects/8380
https://github.com/users/frgyy777888/projects/8381
https://github.com/users/frgyy777888/projects/8382
https://github.com/users/frgyy777888/projects/8383
https://github.com/users/frgyy777888/projects/8384
https://github.com/users/frgyy777888/projects/8385
https://github.com/users/frgyy777888/projects/8386
https://github.com/users/frgyy777888/projects/8387
https://github.com/users/frgyy777888/projects/8388
https://github.com/users/frgyy777888/projects/8389
https://github.com/users/frgyy777888/projects/8390
https://github.com/users/frgyy777888/projects/8391
https://github.com/users/frgyy777888/projects/8392
https://github.com/users/frgyy777888/projects/8393
https://github.com/users/frgyy777888/projects/8394
https://github.com/users/frgyy777888/projects/8395
https://github.com/users/frgyy777888/projects/8396
https://github.com/users/frgyy777888/projects/8397
https://github.com/users/frgyy777888/projects/8398
https://github.com/users/frgyy777888/projects/8399
https://github.com/users/frgyy777888/projects/8400
https://github.com/users/frgyy777888/projects/8401
https://github.com/users/frgyy777888/projects/8402
https://github.com/users/frgyy777888/projects/8403
https://github.com/users/frgyy777888/projects/8404
https://github.com/users/frgyy777888/projects/8405
https://github.com/users/frgyy777888/projects/8406
https://github.com/users/frgyy777888/projects/8407
https://github.com/users/frgyy777888/projects/8408
https://github.com/users/frgyy777888/projects/8409
https://github.com/users/frgyy777888/projects/8410
https://github.com/users/frgyy777888/projects/8411
https://github.com/users/frgyy777888/projects/8412
https://github.com/users/frgyy777888/projects/8413
https://github.com/users/frgyy777888/projects/8414
https://github.com/users/frgyy777888/projects/8415
https://github.com/users/frgyy777888/projects/8416
https://github.com/users/frgyy777888/projects/8417
https://github.com/users/frgyy777888/projects/8418
https://github.com/users/frgyy777888/projects/8419
https://github.com/users/frgyy777888/projects/8420
https://github.com/users/frgyy777888/projects/8421
https://github.com/users/frgyy777888/projects/8422
https://github.com/users/frgyy777888/projects/8423
https://github.com/users/frgyy777888/projects/8424
https://github.com/users/frgyy777888/projects/8425
https://github.com/users/frgyy777888/projects/8426
https://github.com/users/frgyy777888/projects/8427
https://github.com/users/frgyy777888/projects/8428
https://github.com/users/frgyy777888/projects/8429
https://github.com/users/frgyy777888/projects/8430
https://github.com/users/frgyy777888/projects/8431
https://github.com/users/frgyy777888/projects/8432
https://github.com/users/frgyy777888/projects/8433
https://github.com/users/frgyy777888/projects/8434
https://github.com/users/frgyy777888/projects/8435
https://github.com/users/frgyy777888/projects/8436
https://github.com/users/frgyy777888/projects/8437
https://github.com/users/frgyy777888/projects/8438
https://github.com/users/frgyy777888/projects/8439
https://github.com/users/frgyy777888/projects/8440
https://github.com/users/frgyy777888/projects/8441
https://github.com/users/frgyy777888/projects/8442
https://github.com/users/frgyy777888/projects/8443
https://github.com/users/frgyy777888/projects/8444
https://github.com/users/frgyy777888/projects/8445
https://github.com/users/frgyy777888/projects/8446
https://github.com/users/frgyy777888/projects/8447
https://github.com/users/frgyy777888/projects/8448
https://github.com/users/frgyy777888/projects/8449
https://github.com/users/frgyy777888/projects/8450
https://github.com/users/frgyy777888/projects/8451
https://github.com/users/frgyy777888/projects/8452
https://github.com/users/frgyy777888/projects/8453
https://github.com/users/frgyy777888/projects/8454
https://github.com/users/frgyy777888/projects/8455
https://github.com/users/frgyy777888/projects/8456
https://github.com/users/frgyy777888/projects/8457
https://github.com/users/frgyy777888/projects/8458
https://github.com/users/frgyy777888/projects/8459
https://github.com/users/frgyy777888/projects/8460
https://github.com/users/frgyy777888/projects/8461
https://github.com/users/frgyy777888/projects/8462
https://github.com/users/frgyy777888/projects/8463
https://github.com/users/frgyy777888/projects/8464
https://github.com/users/frgyy777888/projects/8465
https://github.com/users/frgyy777888/projects/8466
https://github.com/users/frgyy777888/projects/8467
https://github.com/users/frgyy777888/projects/8468
https://github.com/users/frgyy777888/projects/8469
https://github.com/users/frgyy777888/projects/8470
https://github.com/users/frgyy777888/projects/8471
https://github.com/users/frgyy777888/projects/8472
https://github.com/users/frgyy777888/projects/8473
https://github.com/users/frgyy777888/projects/8474
https://github.com/users/frgyy777888/projects/8475
https://github.com/users/frgyy777888/projects/8476
https://github.com/users/frgyy777888/projects/8477
https://github.com/users/frgyy777888/projects/8478
https://github.com/users/frgyy777888/projects/8479
https://github.com/users/frgyy777888/projects/8480
https://github.com/users/frgyy777888/projects/8481
https://github.com/users/frgyy777888/projects/8482
https://github.com/users/frgyy777888/projects/8483
https://github.com/users/frgyy777888/projects/8484
https://github.com/users/frgyy777888/projects/8485
https://github.com/users/frgyy777888/projects/8486
https://github.com/users/frgyy777888/projects/8487
https://github.com/users/frgyy777888/projects/8488
https://github.com/users/frgyy777888/projects/8489
https://github.com/users/frgyy777888/projects/8490
https://github.com/users/frgyy777888/projects/8491
https://github.com/users/frgyy777888/projects/8492
https://github.com/users/frgyy777888/projects/8493
https://github.com/users/frgyy777888/projects/8494
https://github.com/users/frgyy777888/projects/8495
https://github.com/users/frgyy777888/projects/8496
https://github.com/users/frgyy777888/projects/8497
https://github.com/users/frgyy777888/projects/8498
https://github.com/users/frgyy777888/projects/8499
https://github.com/users/frgyy777888/projects/8500
https://github.com/users/frgyy777888/projects/8501
https://github.com/users/frgyy777888/projects/8502
https://github.com/users/frgyy777888/projects/8503
https://github.com/users/frgyy777888/projects/8504
https://github.com/users/frgyy777888/projects/8505
https://github.com/users/frgyy777888/projects/8506
https://github.com/users/frgyy777888/projects/8507
https://github.com/users/frgyy777888/projects/8508
https://github.com/users/frgyy777888/projects/8509
https://github.com/users/frgyy777888/projects/8510
https://github.com/users/frgyy777888/projects/8512
https://github.com/users/frgyy777888/projects/8513
https://github.com/users/frgyy777888/projects/8514
https://github.com/users/frgyy777888/projects/8515
https://github.com/users/frgyy777888/projects/8516
https://github.com/users/frgyy777888/projects/8517
https://github.com/users/frgyy777888/projects/8518
https://github.com/users/frgyy777888/projects/8519
https://github.com/users/frgyy777888/projects/8520
https://github.com/users/frgyy777888/projects/8521
https://github.com/users/frgyy777888/projects/8522
https://github.com/users/frgyy777888/projects/8523
https://github.com/users/frgyy777888/projects/8524
https://github.com/users/frgyy777888/projects/8525
https://github.com/users/frgyy777888/projects/8526
https://github.com/users/frgyy777888/projects/8527
https://github.com/users/frgyy777888/projects/8528
https://github.com/users/frgyy777888/projects/8529
https://github.com/users/frgyy777888/projects/8530
https://github.com/users/frgyy777888/projects/8531
https://github.com/users/frgyy777888/projects/8532
https://github.com/users/frgyy777888/projects/8533
https://github.com/users/frgyy777888/projects/8534
https://github.com/users/frgyy777888/projects/8535
https://github.com/users/frgyy777888/projects/8536
https://github.com/users/frgyy777888/projects/8537
https://github.com/users/frgyy777888/projects/8538
https://github.com/users/frgyy777888/projects/8539
https://github.com/users/frgyy777888/projects/8540
https://github.com/users/frgyy777888/projects/8541
https://github.com/users/frgyy777888/projects/8542
https://github.com/users/frgyy777888/projects/8543
https://github.com/users/frgyy777888/projects/8544
https://github.com/users/frgyy777888/projects/8545
https://github.com/users/frgyy777888/projects/8546
https://github.com/users/frgyy777888/projects/8547
https://github.com/users/frgyy777888/projects/8548
https://github.com/users/frgyy777888/projects/8549
https://github.com/users/frgyy777888/projects/8550
https://github.com/users/frgyy777888/projects/8551
https://github.com/users/frgyy777888/projects/8552
https://github.com/users/frgyy777888/projects/8553
https://github.com/users/frgyy777888/projects/8554
https://github.com/users/frgyy777888/projects/8555
https://github.com/users/frgyy777888/projects/8556
https://github.com/users/frgyy777888/projects/8557
https://github.com/users/frgyy777888/projects/8558
https://github.com/users/frgyy777888/projects/8559
https://github.com/users/frgyy777888/projects/8560
https://github.com/users/frgyy777888/projects/8561
https://github.com/users/frgyy777888/projects/8562
https://github.com/users/frgyy777888/projects/8563
https://github.com/users/frgyy777888/projects/8564
https://github.com/users/frgyy777888/projects/8565
https://github.com/users/frgyy777888/projects/8566
https://github.com/users/frgyy777888/projects/8567
https://github.com/users/frgyy777888/projects/8568
https://github.com/users/frgyy777888/projects/8569
https://github.com/users/frgyy777888/projects/8570
https://github.com/users/frgyy777888/projects/8571
https://github.com/users/frgyy777888/projects/8572
https://github.com/users/frgyy777888/projects/8573
https://github.com/users/frgyy777888/projects/8574
https://github.com/users/frgyy777888/projects/8575
https://github.com/users/frgyy777888/projects/8576
https://github.com/users/frgyy777888/projects/8577
https://github.com/users/frgyy777888/projects/8578
https://github.com/users/frgyy777888/projects/8579
https://github.com/users/frgyy777888/projects/8580
https://github.com/users/frgyy777888/projects/8581
https://github.com/users/frgyy777888/projects/8582
https://github.com/users/frgyy777888/projects/8583
https://github.com/users/frgyy777888/projects/8584
https://github.com/users/frgyy777888/projects/8585
https://github.com/users/frgyy777888/projects/8586
https://github.com/users/frgyy777888/projects/8587
https://github.com/users/frgyy777888/projects/8588
https://github.com/users/frgyy777888/projects/8589
https://github.com/users/frgyy777888/projects/8590
https://github.com/users/frgyy777888/projects/8591
https://github.com/users/frgyy777888/projects/8592
https://github.com/users/frgyy777888/projects/8593
https://github.com/users/frgyy777888/projects/8594
https://github.com/users/frgyy777888/projects/8595
https://github.com/users/frgyy777888/projects/8596
https://github.com/users/frgyy777888/projects/8597
https://github.com/users/frgyy777888/projects/8598
https://github.com/users/frgyy777888/projects/8599
https://github.com/users/frgyy777888/projects/8600
https://github.com/users/frgyy777888/projects/8601
https://github.com/users/frgyy777888/projects/8602
https://github.com/users/frgyy777888/projects/8603
https://github.com/users/frgyy777888/projects/8604
https://github.com/users/frgyy777888/projects/8605
https://github.com/users/frgyy777888/projects/8606
https://github.com/users/frgyy777888/projects/8607
https://github.com/users/frgyy777888/projects/8608
https://github.com/users/frgyy777888/projects/8609
https://github.com/users/frgyy777888/projects/8610
https://github.com/users/frgyy777888/projects/8611
https://github.com/users/frgyy777888/projects/8612
https://github.com/users/frgyy777888/projects/8613
https://github.com/users/frgyy777888/projects/8614
https://github.com/users/frgyy777888/projects/8615
https://github.com/users/frgyy777888/projects/8616
https://github.com/users/frgyy777888/projects/8617
https://github.com/users/frgyy777888/projects/8618
https://github.com/users/frgyy777888/projects/8619
https://github.com/users/frgyy777888/projects/8620
https://github.com/users/frgyy777888/projects/8621
https://github.com/users/frgyy777888/projects/8622
https://github.com/users/frgyy777888/projects/8623
https://github.com/users/frgyy777888/projects/8624
https://github.com/users/frgyy777888/projects/8625
https://github.com/users/frgyy777888/projects/8626
https://github.com/users/frgyy777888/projects/8627
https://github.com/users/frgyy777888/projects/8628
https://github.com/users/frgyy777888/projects/8629
https://github.com/users/frgyy777888/projects/8630
https://github.com/users/frgyy777888/projects/8631
https://github.com/users/frgyy777888/projects/8632
https://github.com/users/frgyy777888/projects/8633
https://github.com/users/frgyy777888/projects/8634
https://github.com/users/frgyy777888/projects/8635
https://github.com/users/frgyy777888/projects/8636
https://github.com/users/frgyy777888/projects/8637
https://github.com/users/frgyy777888/projects/8638
https://github.com/users/frgyy777888/projects/8639
https://github.com/users/frgyy777888/projects/8640
https://github.com/users/frgyy777888/projects/8641
https://github.com/users/frgyy777888/projects/8642
https://github.com/users/frgyy777888/projects/8643
https://github.com/users/frgyy777888/projects/8644
https://github.com/users/frgyy777888/projects/8645
https://github.com/users/frgyy777888/projects/8646
https://github.com/users/frgyy777888/projects/8647
https://github.com/users/frgyy777888/projects/8648
https://github.com/users/frgyy777888/projects/8649
https://github.com/users/frgyy777888/projects/8650
https://github.com/users/frgyy777888/projects/8651
https://github.com/users/frgyy777888/projects/8652
https://github.com/users/frgyy777888/projects/8653
https://github.com/users/frgyy777888/projects/8654
https://github.com/users/frgyy777888/projects/8655
https://github.com/users/frgyy777888/projects/8656
https://github.com/users/frgyy777888/projects/8657
https://github.com/users/frgyy777888/projects/8658
https://github.com/users/frgyy777888/projects/8659
https://github.com/users/frgyy777888/projects/8660
https://github.com/users/frgyy777888/projects/8661
https://github.com/users/frgyy777888/projects/8662
https://github.com/users/frgyy777888/projects/8663
https://github.com/users/frgyy777888/projects/8664
https://github.com/users/frgyy777888/projects/8665
https://github.com/users/frgyy777888/projects/8666
https://github.com/users/frgyy777888/projects/8667
https://github.com/users/frgyy777888/projects/8668
https://github.com/users/frgyy777888/projects/8669
https://github.com/users/frgyy777888/projects/8670
https://github.com/users/frgyy777888/projects/8671

上一篇:程序员也是等级分明的,你属于哪个等级呢


下一篇:阿里程序员,十个等级你属于哪个等级