Procedura powiekszania OCFS2 online

Procedurę wykonujemy po powiększeniu LUN na macierzy dyskowej

 

  1. Zawsze wykonujemy backup file systemu, który powiększamy

 

  1. Wykonujemy komendę df –kv lub  df –akP  (lepiej formatuje wynik POSIX) lub df -h -T | grep ocfs2 (tylko fs ocfs2)

 

df -h -T | grep ocfs2

/dev/dm-3    ocfs2     16G  3.6G   13G  23% /szyna/oracle/admin/szyna_test/aserver/szyna_test

/dev/dm-5    ocfs2    7.0G  6.3G  721M  90% /szyna/oracle/admin/szyna_test/szyna_test_cl

/dev/dm-4    ocfs2     20G  8.0G   13G  40% /szyna/oracle/admin/szyna_test/mserver/szyna_test

/dev/dm-7    ocfs2    5.0G  4.0G  1.1G  80% /szyna/oracle/product/osbmw

/dev/dm-12   ocfs2    6.0G  1.7G  4.4G  27% /mz/oracle/admin/mz_test/aserver/mz_test

/dev/dm-8    ocfs2    7.0G  3.7G  3.4G  53% /mz/oracle/admin/mz_test/mz_test_cl

/dev/dm-11   ocfs2    4.0G  2.8G  1.3G  68% /mz/oracle/admin/mz_test/mserver/mz_test

/dev/dm-9    ocfs2    5.0G  1.3G  3.8G  26% /mz/oracle/product/osbmw

 

  1. Szukamy WWID który będziemy powiększać i ich ścieżek /dev/sdXX poprzez wykonanie komendy multipath -ll

 

mpathf (36001438005df7d8a0000900000440000) dm-3 HP,HSV300

size=16G features='1 queue_if_no_path' hwhandler='0' wp=rw

|-+- policy='round-robin 0' prio=50 status=active

| |- 0:0:2:10 sdm  8:192  active ready running

| `- 1:0:3:10 sdal 66:80  active ready running

`-+- policy='round-robin 0' prio=10 status=enabled

  |- 0:0:1:10 sda  8:0    active ready running

  `- 1:0:2:10 sdz  65:144 active ready running

 

oraz wykonujemy w celu sprawdzenia powiązania urządzeń /dev/mapper/mpath i urządzeń dm

ls -lia /dev/mapper/mpathf

12262 lrwxrwxrwx 1 root root 7 May 27 15:00 /dev/mapper/mpathf -> ../dm-3

Czyli „widzimy” powiązanie urządzeń /dev/mapper/mpathf i /dev/dm-3

 

  1. Wykonujemy rescan ścieżek składających się na urządzenie /dev/mapper/mpathf lub też /dev/mapper/dm-3

 

echo  ”1”  > /sys/block/sdm/device/rescan

echo   ”1”  > /sys/block/sdal/device/rescan

echo   ”1”  > /sys/block/sda/device/rescan

echo   ”1”  > /sys/block/sdz/device/rescan

 

Dodatkowo wykonujemy „odświeżenie” wielkości dysków poprzez

blockdev --rereadpt /dev/$i

 

  1. Wykonujemy powiększenie dysków dla multipathd i jako parametr podajemy mpath, a nie WWID

 

multipathd -k"resize map mpathf"

 

powinniśmy otrzymać status OK, status fail oznacza fail

 

dodatkowo możemy sprawdzić powiększenie dysków poprzez /proc/partiotions, czyli

 

                                      # cat /proc/partitions | grep "sdm"

   8      192   16777216 sdm

[root@tszyna01 ~]# cat /proc/partitions | grep "sdal"

  66       80   16777216 sdal

[root@tszyna01 ~]# cat /proc/partitions | grep "sdaz"

 

 

  1. Powiększamy OCFS2 poprzez podanie mpath

 

  1. ocfs2 -S /dev/mapper/mpathf

   

  1. Sprawdzamy czy FS został powiększony

 

df -h -T | grep ocfs2

      

  1. Koniec

 

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Red Hat Enterprise Linux - Allow Root Login From a Specific IP Address Only
Viewed 3604 times since Wed, Oct 3, 2018
Linux RedHat How To Create An RPM Package
Viewed 4163 times since Sun, Jan 9, 2022
Exclude multiple files and directories with rsync
Viewed 3242 times since Wed, Oct 31, 2018
Installing and Configuring stunnel on CentOS 6
Viewed 4865 times since Fri, Sep 28, 2018
red hat 7 tmpfiles service
Viewed 2481 times since Thu, Oct 11, 2018
sed Delete / Remove ^M Carriage Return (Line Feed / CRLF) on Linux or Unix
Viewed 11958 times since Thu, Feb 7, 2019
Red Hat ADDING SWAP SPACE
Viewed 2779 times since Fri, Jun 8, 2018
Linux Customizing Bash
Viewed 2930 times since Sun, Dec 6, 2020
RHEL: Crash kernel dumps configuration and analysis on RHEL 5
Viewed 8372 times since Sat, Jun 2, 2018
RHEL: GPT/MBR partition tables (using disks larger than 2 TiB)
Viewed 13337 times since Sun, May 27, 2018