<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Resizing an Online Multipath Device Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/resizing-an-online-multipath-device/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 15 Oct 2019 12:18:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to resize an Online Multipath Device</title>
		<link>https://www.osradar.com/how-to-resize-an-online-multipath-device/</link>
					<comments>https://www.osradar.com/how-to-resize-an-online-multipath-device/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Sat, 02 Mar 2019 12:32:28 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Resizing an Online Multipath Device]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=10996</guid>

					<description><![CDATA[<p>Resizing an Online Multipath Device is one you tasks as a Unix/Linux Administrator. From Storage  support you got an call or email that storage  device  with Lun ID X has been expanded from 100 to 200G. Howo to make this visible in your system ?  lets  start  with basic  commands #multipath -ll oracle (0000000am7000000000000581) dm-6 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-resize-an-online-multipath-device/">How to resize an Online Multipath Device</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Resizing an Online Multipath Device is one you tasks as a Unix/Linux Administrator. From Storage  support you got an call or email that storage  device  with Lun ID X has been expanded from 100 to 200G.</p>
<p>Howo to make this visible in your system ?  lets  start  with basic  commands</p>
<p>#multipath -ll</p>
<pre>oracle (0000000am7000000000000581) dm-6 IBM ,2145
size=100G features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| |- 2:0:1:3 sdr 65:16 active ready running
| `- 1:0:1:3 sdq 65:0 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
|- 1:0:0:3 sdh 8:112 active ready running
`- 2:0:0:3 sdg 8:96 active ready running</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-10997" src="https://www.osradar.com/wp-content/uploads/2019/02/storage11.png" alt="" width="714" height="126" srcset="https://www.osradar.com/wp-content/uploads/2019/02/storage11.png 714w, https://www.osradar.com/wp-content/uploads/2019/02/storage11-300x53.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/storage11-696x123.png 696w" sizes="(max-width: 714px) 100vw, 714px" /></p>
<p>U see  that oracle alias is 100Gb and have 4 disk devices sdr sdq sdh sdg</p>
<pre>[root@]# fdisk -l /dev/sdr

Disk /dev/sdr: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 32768 bytes

[root@ ~]# fdisk -l /dev/sdq

Disk /dev/sdq: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 32768 bytes

[root@ ~]# fdisk -l /dev/sdh

Disk /dev/sdh: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 32768 bytes

[root@ ~]# fdisk -l /dev/sdg

Disk /dev/sdg: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 32768 bytes</pre>
<p><strong>Rescan the disks to detect  thew new sizes </strong></p>
<p>You do it like this</p>
<pre># echo 1 &gt; /sys/block/sdr/device/rescan
# echo 1 &gt; /sys/block/sdq/device/rescan
# echo 1 &gt; /sys/block/sdh/device/rescan
# echo 1 &gt; /sys/block/sdg/device/rescan</pre>
<p><strong>Check  the news  size now</strong></p>
<pre>[root@~]# fdisk -l /dev/sdr

Disk /dev/sdr: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 32768 bytes

[root@~]# fdisk -l /dev/sdq

Disk /dev/sdq: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 32768 bytes

[root@~]# fdisk -l /dev/sdh

Disk /dev/sdh: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 32768 bytes

[root@~]# fdisk -l /dev/sdg

Disk /dev/sdg: 214.7 GB, 214748364800 bytes, 419430400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 32768 bytes / 32768 bytes</pre>
<p>You see that affected visible devices are now 200GB .</p>
<p><strong>Resize the multipathszie</strong></p>
<p>use this command</p>
<pre># multipath resize map oracle</pre>
<p><strong>Show multipath topology (maximum info) with command   multipath -ll</strong></p>
<pre>#systemctl reload multipathd
#multipath -ll 
oracle (360050768018085dc7000000000000367) dm-6 IBM     ,2145
size=200G features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| |- 1:0:1:3 sdq 65:0  active ready running
| `- 2:0:1:3 sdr 65:16 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
  |- 1:0:0:3 sdh 8:112 active ready running
  `- 2:0:0:3 sdg 8:96  active ready running</pre>
<p>The new size is visible and 200GB</p>
<p><strong>Resize the affected partition on the system </strong></p>
<p>The   /dev/mapper/oracle is part of vg01 volume group</p>
<p>First resize the</p>
<pre>]# df -h
Filesystem Size Used Avail Use% Mounted on

/dev/mapper/vg01-app 100G 74G 27G 74% /app
/dev/mapper/vg00-tmp 2.0G 46M 2.0G 3% /tmp
/dev/mapper/vg00-var 4.0G 1.8G 2.3G 45% /var
/dev/mapper/vg00-home 1014M 282M 733M 28% /home</pre>
<p><strong>Resize the physical volume</strong></p>
<pre># pvresize /dev/mapper/oracle
Physical volume "/dev/mapper/oracle" changed
1 physical volume(s) resized / 0 physical volume(s) not resized</pre>
<p>Or</p>
<pre>#pvresize --setphysicalvolumesize 200G /dev/mapper/oracle</pre>
<p>check pvdiplay if pv now 200GB</p>
<pre>[root@~]# pvdisplay


--- Physical volume ---
PV Name /dev/mapper/oracle
VG Name vg01
PV Size &lt;200.00 GiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 51199
Free PE 25600
Allocated PE 25599
PV UUID 0A141S-htsn-Y70k-PE90-IdJF-uJjn-Xm9ixF</pre>
<p><strong>Extend the Logical volume 100%</strong></p>
<pre># lvextend -l +100%FREE /dev/mapper/vg01-app
Size of logical volume vg01/app changed from &lt;100.00 GiB (25599 extents) to &lt;200.00 GiB (51199 extents).
Logical volume vg01/app successfully resized.</pre>
<p><strong>Make this change permanent by adding the space to the mounted partition</strong></p>
<p>Im using  XFS file system . i will use  xfs_growfs to   extend the partition</p>
<pre>[root@~]# xfs_growfs /dev/mapper/vg01-app
meta-data=/dev/mapper/vg01-app isize=256 agcount=16, agsize=1638336 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0 spinodes=0
data = bsize=4096 blocks=26213376, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal bsize=4096 blocks=12799, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 26213376 to 52427776</pre>
<p>Check the new partition size and smill</p>
<pre>[root@~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg00-root 8.0G 1.9G 6.2G 23% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 641M 31G 2% /dev/shm
tmpfs 32G 2.8G 29G 9% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
<span style="color: #ff0000;">/dev/mapper/vg01-app 200G 74G 127G 37% /app</span>
/
tmpfs 6.3G 0 6.3G 0% /run/user/996
tmpfs 6.3G 0 6.3G 0% /run/user/4000
tmpfs 6.3G 0 6.3G 0% /run/user/0
tmpfs 6.3G 0 6.3G 0% /run/user/61029
[root@su444p018 ~]#</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-11003" src="https://www.osradar.com/wp-content/uploads/2019/02/storage12.png" alt="" width="1293" height="544" srcset="https://www.osradar.com/wp-content/uploads/2019/02/storage12.png 1293w, https://www.osradar.com/wp-content/uploads/2019/02/storage12-300x126.png 300w, https://www.osradar.com/wp-content/uploads/2019/02/storage12-768x323.png 768w, https://www.osradar.com/wp-content/uploads/2019/02/storage12-1024x431.png 1024w, https://www.osradar.com/wp-content/uploads/2019/02/storage12-696x293.png 696w, https://www.osradar.com/wp-content/uploads/2019/02/storage12-1068x449.png 1068w, https://www.osradar.com/wp-content/uploads/2019/02/storage12-998x420.png 998w" sizes="(max-width: 1293px) 100vw, 1293px" /></p>
<p>Please Enjoy and  let us know if u need any extra help. Cheers!!</p>
<p>You can  also consult</p>
<h1 class="entry-title"><a href="https://www.osradar.com/how-to-remove-a-san-disk-or-storage-device-lun-from-linux-server/">How to remove LUN Storage device (LUN) from Linux server</a></h1>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-resize-an-online-multipath-device/">How to resize an Online Multipath Device</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-resize-an-online-multipath-device/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
