Resize of LUN presented to OVS Hypervisor Host and VM

K-Dog’s notes on this wonderful procedure:

This is what I had to deal with earlier this week.

—-

INTRO:

BRAINDUMP
1- ovs
2- NFSserver
3- guest


FUJ LUN –> NFS or direct to Guest
/u02

1- What see u02 disk as 2TB? OVS, Guest
tools- fdisk -l
restart multipath
check it with multipath -ll

db u02 = 1.7TB

so what was size of u02 before “new lun presentation”

——–
what steps have been done:
a SysAdmin rescanned iscsi on “we dont know –
Servers:
hmuqadb01 192.168.170.101 XEN
hmufujovs01 192.168.202.7

—-

START OF DIAG WORK:
#>dmesg
lpfc 0000:e0:00.1: 3:1303 Link Up Event x5 received Data: x5 xa0 x10 x0 x0 x0 0
rport-5:0-6: blocked FC remote port time out: removing rport
rport-7:0-6: blocked FC remote port time out: removing rport
sd 5:0:0:12: [sdh] 4194304000 512-byte logical blocks: (2.14 TB/1.95 TiB)
sdh: detected capacity change from 1825361100800 to 2147483648000
sd 5:0:1:12: [sdt] 4194304000 512-byte logical blocks: (2.14 TB/1.95 TiB)
sdt: detected capacity change from 1825361100800 to 2147483648000
sd 7:0:0:12: [sdaf] 4194304000 512-byte logical blocks: (2.14 TB/1.95 TiB)
sdaf: detected capacity change from 1825361100800 to 2147483648000
sd 7:0:1:12: [sdar] 4194304000 512-byte logical blocks: (2.14 TB/1.95 TiB)
sdar: detected capacity change from 1825361100800 to 2147483648000
—–
sdh: sdh1
sdt: sdt1
sdaf: sdaf1
sdar: sdar1
xen-blkback:VBD Resize: Domid: 2, Device: (252, 6)
xen-blkback:VBD Resize: new size 4194304000
scsi_verify_blk_ioctl: 334 callbacks suppressed
partprobe: sending ioctl 1261 to a partition!
partprobe: sending ioctl 1261 to a partition!
10a4036a31: port 2(vif2.2) entering forwarding state
:

sdh: sdh1
sdt: sdt1
sdaf: sdaf1
sdar: sdar1
xen-blkback:VBD Resize: Domid: 2, Device: (252, 6)
xen-blkback:VBD Resize: new size 4194304000
scsi_verify_blk_ioctl: 334 callbacks suppressed

Disk /dev/xvdf: 2147.4 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/xvdf1 1 261083 2097149166 83 Linux

[CFOS] [HMUQADB01] (root)]# e2fsck -f /dev/xvdf1
e2fsck 1.39 (29-May-2006)
Resize inode not valid. Recreate<y>?

—-
[root@HMUFUJOVS01 ~]# dmesg|less
—-
GET THE DISK DEVICE ID FROM XEN.CFG:
cat /foo.xen-cfg
phy:/dev/mapper/36000b5d0006a0000006a144c00110000,xvdf,w
—-
GREP FOR THE DEVICE ID IN MULTIPATH:
[root@HMUFUJOVS01 ~]# multipath -ll|grep a144c00110000
36000b5d0006a0000006a144c00110000 dm-6 FUJITSU,ETERNUS_DX400
[root@HMUFUJOVS01 ~]#
SEE
multipath -ll
36000b5d0006a0000006a144c00110000 dm-6 FUJITSU,ETERNUS_DX400
size=2.0T features=’1 queue_if_no_path’ hwhandler=’0′ wp=rw
`-+- policy=’round-robin 0′ prio=50 status=active
|- 5:0:0:12 sdh 8:112 active ready running
|- 5:0:1:12 sdt 65:48 active ready running
|- 7:0:0:12 sdaf 65:240 active ready running
`- 7:0:1:12 sdar 66:176 active ready running

—-

[root@HMUFUJOVS01 ~]# fdisk -l /dev/mapper/36000b5d0006a0000006a144c00110000

Disk /dev/mapper/36000b5d0006a0000006a144c00110000: 2147.4 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mapper/36000b5d0006a0000006a144c00110000p1 1 261083 2097149166 83 Linux
[root@HMUFUJOVS01 ~]#

—-

[root@HMUFUJOVS01 ~]# fdisk -l /dev/mapper/36000b5d0006a0000006a144c00110000

Disk /dev/mapper/36000b5d0006a0000006a144c00110000: 2147.4 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mapper/36000b5d0006a0000006a144c00110000p1 1 261083 2097149166 83 Linux
[root@HMUFUJOVS01 ~]# fdisk /dev/mapper/36000b5d0006a0000006a144c00110000

The number of cylinders for this disk is set to 261083.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/mapper/36000b5d0006a0000006a144c00110000: 2147.4 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/mapper/36000b5d0006a0000006a144c00110000p1 1 261083 2097149166 83 Linux

Command (m for help):

SO, OVS host side looks good. OVS sees 2TB for LUN

—-

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong for group #0 (65535, counted=0).
Fix<y>? yes

Free blocks count wrong for group #13599 (32254, counted=30546).
Fix<y>? yes

Free blocks count wrong (50587089, counted=50585382).
Fix<y>? yes

Padding at end of block bitmap is not set. Fix<y>? yes
HMU_QA_DB01_u02: ***** FILE SYSTEM WAS MODIFIED *****
HMU_QA_DB01_u02: 20803/222822400 files (0.5% non-contiguous), 395057710/445643092 blocks
[CFOS] [HMUQADB01] (root)]#
[CFOS] [HMUQADB01] (root)]#
[CFOS] [HMUQADB01] (root)]#
[CFOS] [HMUQADB01] (root)]#
[CFOS] [HMUQADB01] (root)]#
—-
[CFOS] [HMUQADB01] (root)]# e2fsck /dev/xvdf1
e2fsck 1.39 (29-May-2006)
HMU_QA_DB01_u02: clean, 20803/222822400 files, 395057710/445643092 blocks
[CFOS] [HMUQADB01] (root)]#

[CFOS] [HMUQADB01] (root)]# e2fsck /dev/xvdf1
e2fsck 1.39 (29-May-2006)
HMU_QA_DB01_u02: clean, 20803/222822400 files, 395057710/445643092 blocks
[CFOS] [HMUQADB01] (root)]# resize2fs /dev/xvdf1
resize2fs 1.39 (29-May-2006)
Resizing the filesystem on /dev/xvdf1 to 524287291 (4k) blocks.
The filesystem on /dev/xvdf1 is now 524287291 blocks long.

[CFOS] [HMUQADB01] (root)]#
—-
BEFORE GROW:

Disk /dev/xvdf: 2147.4 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/xvdf1 1 261083 2097149166 83 Linux


AFTER GROW:
[CFOS] [HMUQADB01] (root)]# fdisk -l /dev/xvdf

Disk /dev/xvdf: 2147.4 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/xvdf1 1 261083 2097149166 83 Linux
[CFOS] [HMUQADB01] (root)]#
—-

FINISHED PRODUCT:
[CFOS] [HMUQADB01] (root)]# mount /u02
[CFOS] [HMUQADB01] (root)]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda 4.0G 2.7G 1.1G 73% /
/dev/xvdc 30G 18G 11G 62% /u01
/dev/xvdd 4.0G 177M 3.6G 5% /tmp
/dev/xvde 4.0G 523M 3.3G 14% /var
tmpfs 16G 0 16G 0% /dev/shm
HMUFUJNFS-QA:/vol/HMU_QA/HMU_QA_EI_DATALOAD
1.5T 7.0G 1.4T 1% /ei_dataload
/dev/xvdf1 2.0T 1.5T 389G 80% /u02
[CFOS] [HMUQADB01] (root)]#

—-

Comments

  1. falseflag says:

    How long has it been since Friday Night Linux had actual Linux-related content on it? (Not including alcoholfueledmachine’s “I play Linux games” screenshots.)