D3 and mvBase

 View Only

 Increasing Space - D3 Linux 10.2.0

Tom Power's profile image
PARTNER Tom Power posted 05-10-2023 07:35

Hi,

I need to increase space on a customer's D3 Linux 10.2.0. Current disk statement in Pick0:

rawdisk off
disk /dev/mapper/rhel-pick 0 209612800 # disk 0

They have added a new partition to the VM - so 2 questions.

First is it as simple as running the D3setup utility,  adding the partition, and then restarting D3?

Secondly, could we have just increased the current partition?

Excuse my ignorance around VMs & virtual disks - used to set up small servers with sda1-4 etc - a bit rusty now!

Here's the lsblk

 lsblk 
NAME                  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
fd0                     2:0    1    4K  0 disk 
sda                     8:0    0  500G  0 disk 
├─sda1                  8:1    0    1G  0 part /boot
└─sda2                  8:2    0  499G  0 part 
  ├─rhel-root         253:0    0   15G  0 lvm  /
  ├─rhel-swap         253:1    0    4G  0 lvm  [SWAP]
  ├─rhel-usr          253:2    0   20G  0 lvm  /usr
  ├─rhel-home         253:3    0    4G  0 lvm  /home
  ├─rhel-var          253:4    0   16G  0 lvm  /var
  ├─rhel-opt          253:5    0    5G  0 lvm  /opt
  ├─rhel-tmp          253:6    0    5G  0 lvm  /tmp
  ├─rhel-pick         253:7    0  200G  0 lvm  
  ├─rhel-cold         253:8    0  450G  0 lvm  /cold
  └─rhel-u            253:9    0   50G  0 lvm  /u
sdb                     8:16   0  270G  0 disk 
└─sdb1                  8:17   0  270G  0 part 
  └─rhel-cold         253:8    0  450G  0 lvm  /cold
sdc                     8:32   0   25G  0 disk 
└─sdc1                  8:33   0   25G  0 part 
  └─rhel--pick1-pick1 253:10   0   25G  0 lvm  
sr0                    11:0    1 1024M  0 rom  


Thanks in advance
Tom

Brian Cram's profile image
ROCKETEER Brian Cram

Yes, it's that easy. Easier than that if you shut down D3, edit the pick0 file adding the second disk statement, then start D3 again. D3 will find it, prep it and use it. I'm sending you a document via email about simplifying D3_setup that has a lot in it about disk statements.

As far as making the existing partition bigger, I've never done that, and I don't know if you can do that. I'm sure it would involve more work than adding a second partition.

And before you start, make sure you have a verified backup to keep Murphy on his chair facing the corner...

Alberto Leal's profile image
Alberto Leal

Hy Tom

i reccomend the as Brian, just create the disk with f-disk, and manually add to pick0 without using d3_setup ( why because that installer some times bug the pick0), and star again D3

that is the fasted, quickist and safest way to increase space and ALWAYS be sure to add the new disk after the existing one.. if you change the other things can happen and as some old folks did in the past of creating a lot of small disks, since version 10.1 you can create big disk without problems
another thing avoid using LVM storages for D3 disks


@Brian Cram : Murphy on his chair facing the corner... kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk

Tom Power's profile image
PARTNER Tom Power

Thanks Brian & Alberto for your answers, and thanks Brian for the documentation.

Alberto - why do you say don't use LVM partitions? I am using them on a few servers so would like to know some of the "gotchas" with LVM.

Cheers
Tom