Topic
8 replies Latest Post - ‏2013-12-20T16:19:17Z by ThinkOpenly
robberendt
robberendt
27 Posts
ACCEPTED ANSWER

Pinned topic Adding disk drives to Suse Linux on Power 6

‏2013-12-19T13:48:52Z |

How do I add disk drives to Suse Linux on Power 6?

I went into iprconfig and added the 6 drives (in addition to our existing 6 drives) to raid and then into usage.

    1. Display hardware status

Type option, press Enter.
  1=Display hardware resource information details

OPT Name   PCI/SCSI Location          Description               Status
--- ------ -------------------------- ------------------------- ----------------
           0001:c0:01.0/2:            PCI-X SCSI RAID Adapter   Operational
    sda    0001:c0:01.0/2:255:0:0     RAID 5 Disk Array         Optimized
           0001:c0:01.0/2:0:3:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:0:4:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:0:5:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:0:6:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:0:8:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:0:9:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:1:3:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:1:4:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:1:5:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:1:6:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:1:8:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:1:9:0         RAID 5 Array Member     Active
           0001:c0:01.0/2:0:15:0      Enclosure                 Active
           0001:c0:01.0/2:1:15:0      Enclosure                 Active
 

However our TSM (Tivoli Storage Manager) consultant says they do not show up.  Is there some 'mount' or some such thing I am supposed to do?  If so, how?  And how do I ensure that it runs upon startup?  I'm a real newbie.  I rarely dabble in here as I am more of an IBM i guy.

  • klebers
    klebers
    5 Posts
    ACCEPTED ANSWER

    Re: Adding disk drives to Suse Linux on Power 6

    ‏2013-12-20T12:25:24Z  in response to robberendt

    Hi,

    From the hardware perspective, everything is configured correctly, as you can see your RAID 5 array now has 12 member disks.

    When you added the additional 6 disks it should have expanded the capacity of the array, which you can see running the command:

    # iprconfig -c show-details sda

    or going through the menu option "1. Display hardware status" and select your RAID array. The "Capacity" field should reflect the new size. You can also run:

    # fdisk -l /dev/sda

    to check the new size from the OS perspective.

    The next step is to configure the OS to use the extra storage space. This will depend on how you configured the partitions on your RAID array. If you are using LVM volumes, you need to use fdisk to create new LVM partitions and use the lvm tools provided by the distro to expand the existing volumes or create new ones. If not, you will need to manipulate the partition table using fdisk to create new partitions or expand the existing ones. Using fdisk to change a partition size needs to be done carefully since loss of data can occur if not done correctly.

    After the RAID array partitions and/or volumes are resized correctly, you need to expand your filesystems to ocupy the new partition/volume added. This will depend on the filesystem type you are using, but for the ext filesystems the command is 'resize2fs'. If the partition you are resizing can be unmounted, it's better to umount it before manipulating it.

    Most of this configuration is persistant and doesn't need extra steps for the new storage space to show up at boot time.

    If you have any problems in doing this configuration, you can post here the output of 'fdisk -l', 'mount' and any other higher level configuration you have.

    Best regards.

    • robberendt
      robberendt
      27 Posts
      ACCEPTED ANSWER

      Re: Adding disk drives to Suse Linux on Power 6

      ‏2013-12-20T12:55:47Z  in response to klebers

      Thank you for your reply.

      # fdisk -l


      Disk /dev/sda: 1571.4 GB, 1571437936640 bytes
      128 heads, 32 sectors/track, 749320 cylinders
      Units = cylinders of 4096 * 512 = 2097152 bytes
      Disk identifier: 0xa11c0d00

         Device Boot      Start         End      Blocks   Id  System
      /dev/sda1   *        1040        1040         396+  41  PPC PReP Boot
      Partition 1 does not end on cylinder boundary.
      /dev/sda2              12        1040     2104515   82  Linux swap / Solaris
      Partition 2 does not end on cylinder boundary.
      /dev/sda3            1142      272478   555696382+  83  Linux
      Partition 3 does not end on cylinder boundary.

      Partition table entries are not in disk order

      # mount
      /dev/sda3 on / type ext3 (rw,acl,user_xattr)
      proc on /proc type proc (rw)
      sysfs on /sys type sysfs (rw)
      debugfs on /sys/kernel/debug type debugfs (rw)
      devtmpfs on /dev type devtmpfs (rw,mode=0755)
      tmpfs on /dev/shm type tmpfs (rw,mode=1777)
      devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
      fusectl on /sys/fs/fuse/connections type fusectl (rw)
      securityfs on /sys/kernel/security type securityfs (rw)
       

      Looking at this, I see it shows me as

      1571.4 GB, 1571437936640 bytes

      Which is close to twelve * 140GB drives (minus raid space).

      Updated on 2013-12-20T12:58:23Z at 2013-12-20T12:58:23Z by robberendt
      • klebers
        klebers
        5 Posts
        ACCEPTED ANSWER

        Re: Adding disk drives to Suse Linux on Power 6

        ‏2013-12-20T13:18:54Z  in response to robberendt

        Can you please also post the output from:

        # df -h

        Thank you.

        • robberendt
          robberendt
          27 Posts
          ACCEPTED ANSWER

          Re: Adding disk drives to Suse Linux on Power 6

          ‏2013-12-20T13:33:18Z  in response to klebers

          # df -h
          Filesystem            Size  Used Avail Use% Mounted on
          /dev/sda3             522G  453G   43G  92% /
          devtmpfs              5.9G  1.4M  5.9G   1% /dev
          tmpfs                 5.9G   64K  5.9G   1% /dev/shm

          That shows /dev/sda3 at only about half of what it should be.  Right?
           

          • robberendt
            robberendt
            27 Posts
            ACCEPTED ANSWER

            Re: Adding disk drives to Suse Linux on Power 6

            ‏2013-12-20T14:01:43Z  in response to robberendt

            Don't be afraid to say, "this next part should only be done by competent individuals".  I have a consultant who is supposed to call me.  But I'd really like to get this done before the break.  So, if it isn't too risky, I'd like to proceed.

          • klebers
            klebers
            5 Posts
            ACCEPTED ANSWER

            Re: Adding disk drives to Suse Linux on Power 6

            ‏2013-12-20T14:08:20Z  in response to robberendt

            Right, /dev/sda3 is still reflecting the old disk array size.

            In this case you can expand the sda3 partition and resize the ext3 filesystem that is running on top of it. Please make sure you have back up of your data before performing any of the following operations.

            Since the partition you are going to resize is being used by your root filesystem, I recommend you to boot your system with a rescue image to manipulate your disk.

            Firstly, you will need to use fdisk to resize the sda3 partition. Since fdisk doesn't support resizing the partition, you will need to delete the sda3 partition and recreate it with *exactly the same* start cylinder, and the last available cylinder of the disk as the end of the partition. Write the new partition table and exit fdisk.

            The next step is to resize the ext3 filesystem. This can be done running:

            # resize2fs /dev/sda3

            This will expand the filesystem to use all the available space on the partition.

            Please note that these steps work most of the time, but they are not guaranteed to not cause any loss of data. So a previous backup is really important in case something goes wrong.

            • robberendt
              robberendt
              27 Posts
              ACCEPTED ANSWER

              Re: Adding disk drives to Suse Linux on Power 6

              ‏2013-12-20T15:52:35Z  in response to klebers

              I think I'm going to punt that one to the consultant.

              We NEVER back up this partition.  Its sole purpose is to serve TSM.  I think the belief is that they could rebuild it from scratch, load TSM on it, call in the TSM tapes and rebuild it.

              Thanks for getting me this far.

              • ThinkOpenly
                ThinkOpenly
                40 Posts
                ACCEPTED ANSWER

                Re: Adding disk drives to Suse Linux on Power 6

                ‏2013-12-20T16:19:17Z  in response to robberendt

                A more user-friendly option is either "parted" or "gparted", which can automate the set of steps required.  I'm pretty sure "parted" is at least available by booting into "rescue" mode from the Linux distribution installation media.  "gparted", the GUI version of "parted" may be there as well (although I'm guessing not, given the total size required for any GUI app).

                Normally, one should also consider a GParted Live disk, but there are no versions built for Power.  More adventurous types could, of course, build their own: http://gparted.org/create-gparted-live.php.