CCM Disk (Disk 5) resize State: Scheduled Category: IT Configuration item: S-VM-TELMAX01 Opened by: Karl Coelho Assignment group: ICT Systems Engineers Description: Update Server resources on S-VM-TELMAX01 Current: 2CPU/6GB Memory New: 4CPU/8GB Memory Increased Disk 5 from 80GB to 160GB Karl Increased the Virtual machone Disk 5 login as: root root@s-vm-telmax01's password: Last login: Tue Jun 15 16:17:17 2021 from s-vm-ts02.victrackad.victrack.com.au The number of cylinders for this disk is set to 10443. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sde: 85.8 GB, 85899345920 bytes 255 heads, 63 sectors/track, 10443 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sde1 1 10444 83886079+ 8e Linux LVM Command (m for help): q [root@s-vm-telmax01 ~]# shutdown -r now Broadcast message from root (pts/2) (Tue Jun 15 17:05:52 2021): The system is going down for reboot NOW! [root@s-vm-telmax01 ~]# login as: root root@s-vm-telmax01's password: Last login: Tue Jun 15 17:04:42 2021 from s-vm-ts02.victrackad.victrack.com.au fdisk /dev/sde The number of cylinders for this disk is set to 20886. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sde: 171.7 GB, 171798691840 bytes 255 heads, 63 sectors/track, 20886 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sde1 1 10444 83886079+ 8e Linux LVM Command (m for help): c DOS Compatibility flag is not set Command (m for help): ? ?: unknown command Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (10444-20886, default 10444): Using default value 10444 Last cylinder or +size or +sizeM or +sizeK (10444-20886, default 20886): Using default value 20886 Command (m for help): p Disk /dev/sde: 171.7 GB, 171798691840 bytes 255 heads, 63 sectors/track, 20886 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sde1 1 10444 83886079+ 8e Linux LVM /dev/sde2 10444 20886 83880715 83 Linux 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. Syncing disks. [root@s-vm-telmax01 ~]# shutdown -r now Broadcast message from root (pts/1) (Tue Jun 15 17:13:09 2021): The system is going down for reboot NOW! [root@s-vm-telmax01 ~]# login as: root root@s-vm-telmax01's password: Last login: Tue Jun 15 17:12:00 2021 from s-vm-ts02.victrackad.victrack.com.au [root@s-vm-telmax01 ~]# Broadcast message from catcom (Tue Jun 15 17:17:46 2021): \r\007Telmax21 catwarn: 150621 171746 scl: Poll got NO calls err 0 Group CCMPOL L Node VLPCUCM \r [root@s-vm-telmax01 ~]# [root@s-vm-telmax01 ~]# pvcreate /dev/sde2 dev_is_mpath: failed to get device for 8:66 Writing physical volume data to disk "/dev/sde2" Physical volume "/dev/sde2" successfully created You have new mail in /var/spool/mail/root [root@s-vm-telmax01 ~]# vgextend ciscocm /dev/sde2 Volume group "ciscocm" successfully extended [root@s-vm-telmax01 ~]# vgdisplay ciscocm | grep Free Free PE / Size 20478 / 79.99 GB [root@s-vm-telmax01 ~]# lvextend -L+79.99G /dev/ciscocm/ccm Rounding up size to full physical extent 79.99 GB Extending logical volume ccm to 159.99 GB Logical volume ccm successfully resized [root@s-vm-telmax01 ~]# mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/mapper/app-spare on /u/spare type ext3 (rw) /dev/mapper/app-catcom on /u/catcom type ext3 (rw) /dev/mapper/app-reports on /u/catcom/reports type ext3 (rw) /dev/mapper/db-database on /u/catcom/database type ext3 (rw) /dev/mapper/bilmax21-wb on /u/catcom/wb type ext3 (rw) /dev/mapper/ciscocm-ccm on /u/catcom/ccm type ext3 (rw) /dev/mapper/backup-ex3 on /u/catcom/wb/ex3 type ext3 (rw) /dev/mapper/ipnd-ipnd on /u/catcom/ipnd type ext3 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) [root@s-vm-telmax01 ~]# ext3online /dev/ciscocm/ccm -bash: ext3online: command not found [root@s-vm-telmax01 ~]# ext2online /dev/ciscocm/ccm -bash: ext2online: command not found [root@s-vm-telmax01 ~]# resize2fs /dev/ciscocm/ccm resize2fs 1.39 (29-May-2006) Filesystem at /dev/ciscocm/ccm is mounted on /u/catcom/ccm; on-line resizing required Performing an on-line resize of /dev/ciscocm/ccm to 41939968 (4k) blocks. The filesystem on /dev/ciscocm/ccm is now 41939968 blocks long. [root@s-vm-telmax01 ~]# dfspace Filesystem 1M-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 34686 10223 22673 32% / /dev/sda1 99 25 69 27% /boot tmpfs 3042 0 3042 0% /dev/shm /dev/mapper/app-spare 40318 32817 5453 86% /u/spare /dev/mapper/app-catcom 20159 13855 5281 73% /u/catcom /dev/mapper/app-reports 20155 5650 13482 30% /u/catcom/reports /dev/mapper/db-database 50393 38486 9347 81% /u/catcom/database /dev/mapper/bilmax21-wb 352773 286803 48050 86% /u/catcom/wb /dev/mapper/ciscocm-ccm 161258 69753 83315 46% /u/catcom/ccm /dev/mapper/backup-ex3 151186 119666 23841 84% /u/catcom/wb/ex3 /dev/mapper/ipnd-ipnd 39310 6939 30375 19% /u/catcom/ipnd Rod