LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-22-2019, 01:18 PM   #16
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled

Quote:
Originally Posted by gbroadbent View Post
You CAN resize a vmware volume (this is for RHEL 7)

1. change the size of the volume using vsphere client

2. find the device name in /sys/class/scsi_disk (usually 0:0:0:0 is /dev/sda, 0:0:1:0 is /dev/sdb, etc.)

3. echo "1" > /sys/class/scsi_disk/0\:0\:x\:0/device/rescan
for ubuntu use echo "- - -" > /sys/class/scsi_host/host#/scan (find host # with ls)

4. parted /dev/sdx
(parted) resizepart 1 322GB
(parted) p
Model: VMware Virtual disk (scsi)
Disk /dev/sdd: 322GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 322GB 322GB primary

(parted) quit
Information: You may need to update /etc/fstab.

5. lvextend -L+xG /dev/(lvm logical volume)
There is an easier way to do steps 2 and 3. Install sg3_utils (RHEL and clones) and run as root:

Code:
rescan-scsi-bus.sh -s
 
Old 02-22-2019, 02:09 PM   #17
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by tyler2016 View Post
There is an easier way to do steps 2 and 3. Install sg3_utils (RHEL and clones) and run as root:

Code:
rescan-scsi-bus.sh -s
Yep - that works >90% of the time including when doing SAN HBAs. However, on rare occasion it doesn't so knowing the echo method is beneficial.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Partition Resizing ChairmanMeoww Fedora 6 06-16-2012 06:00 AM
Resizing the LVM g_kapoor85 Linux - Software 3 03-21-2009 01:27 AM
Resizing an LVM partition oogs Fedora 5 10-24-2008 08:52 PM
resizing non-LVM partition laggerific Linux - Software 1 11-09-2006 06:20 PM
Resizing / with LVM zivota Red Hat 2 07-12-2006 03:30 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration