Add new physical disk to Dell Poweredge

Dell Poweredge new disk configuration

Last updated

to create virtual disk, access idrac > configuration > storage configuration > virtual disk > create new virtual disk

3576 GB size

64k

span count 1

select both disks, click Apply Job

if job is stuck, clear w racadm

RACADM

get IP of idrac

racadm getniccfg

login

racadm -r 192.168.38.6 -u root -p 'PASSWORD' jobqueue delete -i JID_CLEARALL_FORCE

if idrac doesnt see phys disc, restart idrac

Maintenance > diagnostics > restart idrac

Once virtual disk is created with home disks on a RAID1, create new partition, use fdisk to get disk name (ie, /dev/sdc)


root@qbtch2 /home# parted /dev/sdc
GNU Parted 3.1Using /dev/sdcWelcome to GNU Parted! Type 'help' to view a list of commands.
### use GPT to create partitions larger than 2TB(parted) mklabel gptWarning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue?Yes/No? Yes                                                               
(parted) unit TB                                                          
(parted) mkpart primary 0.00TB 3.84TB
(parted) print                                                            Model: DELL PERC H730P Mini (scsi)Disk /dev/sdc: 3.84TBSector size (logical/physical): 512B/4096BPartition Table: gptDisk Flags: 
Number  Start   End     Size    File system  Name     Flags 1      0.00TB  3.84TB  3.84TB               primary
(parted) quit                                                             Information: You may need to update /etc/fstab.

 

use lsblk to check partitions

root@qbtch2 /home# lsblk

NAME                 MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT

sda                    8:0    0  1.8T  0 disk 

├─sda1                 8:1    0    1G  0 part /boot/efi

├─sda2                 8:2    0    1G  0 part /boot

└─sda3                 8:3    0  1.4T  0 part 

  ├─rootvg-root      253:0    0 46.6G  0 lvm  /

  ├─rootvg-opt       253:1    0   28G  0 lvm  /opt

  ├─rootvg-usr_local 253:2    0 46.6G  0 lvm  /usr/local

  └─rootvg-home      253:3    0  1.3T  0 lvm  /home

sdb                    8:16   0  1.8T  0 disk 

└─sdb1                 8:17   0  1.8T  0 part 

  ├─datavg-lvtmp     253:4    0   15G  0 lvm  

  └─datavg-lvhc      253:5    0  1.8T  0 lvm  /mnt/hc

sdc                    8:32   0  3.5T  0 disk 

└─sdc1                 8:33   0  3.5T  0 part 

sdd                    8:48   0  744G  0 disk 

└─sdd1                 8:49   0  744G  0 part [SWAP]


create XFS partition on /dev/sdc1

root@qbtch2 /home# mkfs.xfs /dev/sdc1meta-data=/dev/sdc1              isize=512    agcount=4, agsize=234356608 blks         =                       sectsz=4096  attr=2, projid32bit=1         =                       crc=1        finobt=0, sparse=0data     =                       bsize=4096   blocks=937426432, imaxpct=5         =                       sunit=0      swidth=0 blksnaming   =version 2              bsize=4096   ascii-ci=0 ftype=1log      =internal log           bsize=4096   blocks=457727, version=2         =                       sectsz=4096  sunit=1 blks, lazy-count=1realtime =none                   extsz=4096   blocks=0, rtextents=0root@qbtch2 /home# df -h

create new home dir and mount it

mkdir /home2mount /dev/sdc1 /home2

copy contents of /home to /home2

cp -Rp /home/* /home2/

unmount /home2

unmount /home

lsof  /home  # kill any proc using  /homeumount /homeumount /home2

remount as home

mount /dev/sdc1 /home

remount old home as /mnt/hc2

mkdir /mnt/hc2mount /dev/mapper/rootvg-home  /mnt/hc2## remove old /home2 dirrm -rf /home2

add to /etc/fstab

blkid (get UUID of new home)

UUID=<ID> /home     xfs  defaults 0  0



run highstate

 

 

Swap

create new Swap partition

 

### check all disks fdisk -l Disk /dev/sdd: 798.9 GB, 798863917056 bytes, 1560281088 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes ### swap disk is /dev/sdd root@qbtch2 ~# fdisk /dev/sdd Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table Building a new DOS disklabel with disk identifier 0x3b4cf58e. The device presents a logical sector size that is smaller than the physical sector size. Aligning to a physical sector (or optimal I/O) size boundary is recommended, or performance may be impacted. Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): First sector (2048-1560281087, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-1560281087, default 1560281087): Using default value 1560281087 Partition 1 of type Linux and of size 744 GiB is set Command (m for help): t Selected partition 1 Hex code (type L to list all codes): 82 Changed type of partition 'Linux' to 'Linux swap / Solaris' Command (m for help): p Disk /dev/sdd: 798.9 GB, 798863917056 bytes, 1560281088 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x3b4cf58e Device Boot Start End Blocks Id System /dev/sdd1 2048 1560281087 780139520 82 Linux swap / Solaris ### write changes Command (m for help): w

once swap disk is ready, swapoff current swap

 

add new swap partition

 

add to /etc/fstab

activate swap

verify swap is there, can see new 743G swap

swapoff -a

mkswap /dev/sdd1

/dev/sdd1 swap swap defaults 0 0

swapon -a

root@qbtch2 ~# free -h total used free shared buff/cache available Mem: 754G 5.9G 747G 8.2M 871M 746G Swap: 743G 0B 743G