percakapan ini bisa untuk turotial karena penulis lagi males nulis :p
Chat started on 18 Sep 2019, 07:04 PM (GMT+0)
(07:04:44) *** nankment joined the chat ***
(07:04:44) nankment: halo
(07:04:50) *** Harsha Nambi joined the chat ***
(07:04:56) Harsha Nambi: Hi,
(07:05:41) nankment: please lvm format tutorial for new server installation
(07:07:39) Harsha Nambi: We don’t have specific tutorial because the steps will vary as per the set-up.
(07:07:55) Harsha Nambi: If we review your set-up, we could guide you further
(07:08:04) Harsha Nambi: Do you want to install KVM slave?
(07:08:11) nankment: yes slave
(07:08:31) nankment: [root@server01 ~]# fdisk -l Disk /dev/sda: 1500.2 GB, 1500222873600 bytes, 2930122800 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: 0x000e85df Device Boot Start End Blocks Id System /dev/sda1 * 2048 2050047 1024000 83 Linux /dev/sda2 2050048 174098431 86024192 8e Linux LVM Disk /dev/mapper/centos-root: 83.9 GB, 83886080000 bytes, 163840000 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/centos-swap: 4194 MB, 4194304000 bytes, 8192000 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@server01 ~]#
(07:08:41) nankment: [root@server01 ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 71G 0 71G 0% /dev tmpfs 71G 0 71G 0% /dev/shm tmpfs 71G 26M 71G 1% /run tmpfs 71G 0 71G 0% /sys/fs/cgroup /dev/mapper/centos-root 79G 2.2G 76G 3% / /dev/sda1 997M 156M 842M 16% /boot tmpfs 15G 0 15G 0% /run/user/0 [root@server01 ~]#
(07:08:54) nankment: I haven’t partitioned for lvm yet
(07:09:55) Harsha Nambi: What’s the below command output?
(07:09:56) Harsha Nambi: vgs
(07:10:20) nankment: [root@server01 ~]# vgs VG #PV #LV #SN Attr VSize VFree centos 1 2 0 wz–n- <82.04g 4.00m [root@server01 ~]#
(07:11:15) Harsha Nambi: You have to create a new partition from /dev/sda and use it in Volume Group extension.
(07:11:38) Harsha Nambi: fdisk /dev/sda
(07:11:48) Harsha Nambi: Run this and paste me the output
(07:11:58) nankment: [root@server01 ~]# fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help):
(07:12:09) Harsha Nambi: n
(07:12:13) Harsha Nambi: then enter
(07:12:20) nankment: Command (m for help): n Partition type: p primary (2 primary, 0 extended, 2 free) e extended Select (default p):
(07:12:32) Harsha Nambi: click enter again
(07:12:48) nankment: Select (default p): Using default response p Partition number (3,4, default 3):
(07:13:00) Harsha Nambi: Click enter again
(07:13:09) nankment: Using default response p Partition number (3,4, default 3): First sector (174098432-2930122799, default 174098432):
(07:13:50) Harsha Nambi: click enter again
(07:14:01) nankment: Partition number (3,4, default 3): First sector (174098432-2930122799, default 174098432): Using default value 174098432 Last sector, +sectors or +size{K,M,G} (174098432-2930122799, default 2930122799):
(07:14:07) Harsha Nambi: again enter
(07:14:15) nankment: Using default value 174098432 Last sector, +sectors or +size{K,M,G} (174098432-2930122799, default 2930122799): Using default value 2930122799 Partition 3 of type Linux and of size 1.3 TiB is set Command (m for help):
(07:14:19) Harsha Nambi: w
(07:14:24) Harsha Nambi: enter now
(07:14:32) nankment: Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks. [root@server01 ~]#
(07:14:54) Harsha Nambi: Run this please
(07:14:56) Harsha Nambi: partprobe
(07:15:07) nankment: the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks. [root@server01 ~]# partprobe [root@server01 ~]#
(07:15:26) Harsha Nambi: Cool…
(07:15:34) Harsha Nambi: pvcreate /dev/sda3
(07:15:51) nankment: [root@server01 ~]# pvcreate /dev/sda3 Physical volume “/dev/sda3” successfully created. [root@server01 ~]#
(07:17:13) Harsha Nambi: vgextend centos /dev/sda3
(07:18:19) nankment: Physical volume “/dev/sda3” successfully created. [root@server01 ~]# vgextend centos /dev/sda3 Volume group “centos” successfully extended [root@server01 ~]#
(07:18:20) nankment: ysss
(07:18:35) nankment: successfully ??
Comments are closed, but trackbacks and pingbacks are open.