Extenting virtual disks using xfs-filesystem

Hello guys,

we're trying to resize virtual disks formated with xfs-filesystem and need some experts advice.
This is the current technical constellation:
SLES11SP3 running with external mounted virtual disks formated in xfs-filesystem.
These virtual disks are LUNs located on a NetApp Filer connected via iSCSI so the NetApps' the target and the SLES the initiator.

The LUN on the filer has already been extended but the partition tables as also the xfs_disks not.

Normally I would stop services who could eventually have access on these disks and after I would have done for example
umount /diskX
xfs_growfs /diskX
mount -t xfs /dev/sdd1 /diskX

Am I right or could you give some better guidance on how to do it.

Regards
SIPWM90518Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
according to the documentation you don't have to unmount when growing but if you are belt and suspenders type of person what you have proposed will work.

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Storage_Administration_Guide/xfsgrow.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SIPWM90518Author Commented:
What if the xfs_growfs doesn't work no matter the disk is mounted nor umounted!?
In detail my enviroment output / OS SLES11SP3:

fdisk -l /dev/sdd1
 # fdisk -l /dev/sdd1

Disk /dev/sdd1:59.1 GB, 59057865216 bytes
255 K▒pfe, 63 Sektoren/Spur, 7180 Zylinder, zusammen 115347393 Sektoren
Einheiten = Sektoren von 1 ▒ 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 65536 bytes
Alignment offset: 512 bytes
Disk identifier: 0x00000000

Festplatte /dev/sdd1 enth▒lt keine g▒ltige Partitionstabelle

Open in new window


fdisk -l /dev/sdd
fdisk -l /dev/sdd

Disk /dev/sdd: 69.8 GB, 69794267136 bytes
12 K▒pfe, 63 Sektoren/Spur, 180313 Zylinder, zusammen 136316928 Sektoren
Einheiten = Sektoren von 1 ▒ 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 65536 bytes
Disk identifier: 0x00025b25

    Ger▒t  boot.     Anfang        Ende     Bl▒cke   Id  System
/dev/sdd1              63   115347455    57673696+  83  Linux
Partition 1 does not start on physical sector boundary.

Open in new window


xfs_growfs /dev/sdd1
xfs_growfs /dev/sdd1
Metadaten =/dev/sdd1              isize=256    agcount=59, agsize=245743 blks
          =                       sectsz=512   attr=0
Daten     =                       bsize=4096   Bl▒cke=14418424, imaxpct=25
          =                       sunit=0      swidth=0 blks
Benennung =Version 2              bsize=4096   ascii-ci=0
Protokoll =Intern                 bsize=4096   Bl▒cke=2560, Version=1
          =                       sectsz=512   sunit=0 blks, lazy-count=0
Echtzeit  =keine                  extsz=4096   Bl▒cke=0, rtextents=0

Open in new window


df -h /disk4
/dev/sdd1                                       55G     37G   19G   67% /disk4

Open in new window


Help on resizing appreciated, please. I got stuck...:-/

thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage Hardware

From novice to tech pro — start learning today.