Showing posts with label CentOS. Show all posts
Showing posts with label CentOS. Show all posts

Tuesday, December 24, 2019

Mount a new drive in CentOS

Like windows, we can format and make a new drive available for use by using the following simple steps
Step 1:
It is needed to verify whether the new drive is visible in the system. Using fdisk command, it can be identified.
fdisk -l
It will list all drives available in the system including mounted and unmounted drives. Here assume a new drive label is /dev/ssd
Step 2:
It is needed to create the file system ext4(in shortly say as formatting drive). So make sure drive is fresh/empty one. It a drive has already data, don’t enter this step, instead skip to next step. The following command helps to create file system
mkfs -t ext4 /dev/ssd

Tăng/mở rộng (Increase/expand) ổ đĩa hệ thống tệp XFS trong RHEL7 / CentOS 7

Bài này hướng dẫn tăng/mở rộng ổ đĩa hệ thống XFS trên máy máy ảo (Vmware Vitual Machine) mà không cần phải khởi động lại máy chủ.
Để kiểm tra máy chủ của bạn có những tệp tin định nghĩa ổ cứng XFS dùng lệnh “df -hT”. Bạn chú ý ở côt “Type” có “xfs”:
[adminvpbs@ho-demops1 ~]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/centos-root xfs 50G 1.5G 49G 3% /
devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs tmpfs 7.8G 12M 7.8G 1% /run
tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/sda1 xfs 1014M 189M 826M 19% /boot
/dev/mapper/centos-home xfs 42G 33M 42G 1% /home
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1000
[adminvpbs@ho-demops1 ~]$