nas 326 - resize of volume seems not to work

Options
pingpong
pingpong Posts: 4  Freshman Member
I try to resitze a exisitng volume after I have replaced a older smaler disk group with newer bigger disks. The screen "Volume on disk group" does not show any extention for the volume I have extended. Even though the dialog does not show an error. But the size of the volume is kept unchanged.Same problem like https://homeforum.zyxel.com/discussion/comment/5867
But I was not able to solve it.

All Replies

  • pingpong
    pingpong Posts: 4  Freshman Member
    Options
    I found a solution myself. The solution is described here
    You may follow the sequence. But you need to find "your" volume which needs to be expanded.
    Here is what I did:

    logon via putty as "root"
    run "lvdisplay "

    ~ # lvdisplay 

      --- Logical volume --- 

      LV Path                /dev/vg_a246bbf1/vg_info_area 

      LV Name                vg_info_area 

      VG Name                vg_a246bbf1 

      LV UUID                cT3bM4-rmoP-vcla-j4A4-BxQc-9z0o-407q0g 

      LV Write Access        read/write 

      LV Creation host, time NAS326, 2017-09-04 21:38:34 +0200 

      LV Status              available 

      # open                 1 

      LV Size                100.00 MiB 

      Current LE             25 

      Segments               1 

      Allocation             inherit 

      Read ahead sectors     auto 

      - currently set to     1024 

      Block device           253:0 

      

      --- Logical volume --- 

      LV Path                /dev/vg_a246bbf1/lv_d648b119 

      LV Name                lv_d648b119 

      VG Name                vg_a246bbf1 

      LV UUID                wLV5f3-NFTp-bF1B-0fdk-JVyQ-x3b4-iHWuUM 

      LV Write Access        read/write 

      LV Creation host, time NAS326, 2017-09-04 21:38:35 +0200 

      LV Status              available 

      # open                 1 

      LV Size                1.96 TiB 

      Current LE             513536 

      Segments               3 

      Allocation             inherit 

      Read ahead sectors     auto 

      - currently set to     1024 

      Block device           253:1 

      

      --- Logical volume --- 

      LV Path                /dev/vg_a246bbf1/lv_a4b19a90 

      LV Name                lv_a4b19a90 

      VG Name                vg_a246bbf1 

      LV UUID                TS9AMf-SGVk-8X6r-etAd-tj9X-zVSG-zZR3ja 

      LV Write Access        read/write 

      LV Creation host, time NAS326, 2018-12-27 10:39:29 +0100 

      LV Status              available 

      # open                 1 

      LV Size                1.68 TiB 

      Current LE             440316 

      Segments               1 

      Allocation             inherit 

      Read ahead sectors     auto 

      - currently set to     1024 

      Block device           253:2 

      

      --- Logical volume --- 

      LV Path                /dev/vg_a246bbf1/lv_067dd4d6 

      LV Name                lv_067dd4d6 

      VG Name                vg_a246bbf1 

      LV UUID                x9slNI-59Kh-OJPC-ubGs-aAhC-t9jy-qZB79q 

      LV Write Access        read/write 

      LV Creation host, time NAS326, 2019-10-06 16:57:18 +0200 

      LV Status              available 

      # open                 1 

      LV Size                1.96 TiB 

      Current LE             512512 

      Segments               1 

      Allocation             inherit 

      Read ahead sectors     auto 

      - currently set to     1024 

      Block device           253:3 

      Now I got all Logical volume which might be in scope.

    Now follow the sequence:

    1. ran "vi /etc/init.d/rc.shutdown". 

    2. Pressed "i" on keyboard. 

    3. Look for "#swapoff" and pasted theses lines after that line: 

    /sbin/telnetd 

    /bin/sh 

    1. Pressed ESC-key and then typed and ran ":wq". 

    2. Run "poweroff"  in the shell

    3. Closed Putty. 

    4. Opened Putty once again, using the same IP and Port, but select "Telnet" instead of "SSH" as Connection type. A new command window opened and I had to login as "root" again. 

    5. Pasted and ran "umount /i-data/sysvol" 

    Now try "resize2fs" for all logical volumes from above until you find a ogical volume to expand. Copy the volume names from above.

    ~ # resize2fs /dev/vg_a246bbf1/lv_d648b119

    resize2fs 1.42.12 (29-Aug-2014)

    The filesystem can be resize to 525860864 blocks.chk_expansible=0 

    Resizing the filesystem on /dev/vg_a246bbf1/lv_d648b119 to 525860864 (4k) blocks.

    The filesystem on /dev/vg_a246bbf1/lv_d648b119 is now 525860864 (4k) blocks long.


    ~ # resize2fs /dev/vg_a246bbf1/lv_a4b19a90

    resize2fs 1.42.12 (29-Aug-2014)

    The filesystem is already 450883584 (4k) blocks long.  Nothing to do! 


    ~ # resize2fs /dev/vg_a246bbf1/lv_067dd4d6

    resize2fs 1.42.12 (29-Aug-2014)

    The filesystem is already 524812288 (4k) blocks long.  Nothing to do!

    Rebbot the NAS by pressing the "poweroff" button on the device.

    Vola. You are done. The volume should be expanded.

Consumer Product Help Center