Monday, 9 April 2012

More on adding and extending file systems using Red Hat Enterprise Linux and LVM

This follows on from an earlier blog post: -


Create a new file system for the newly added disk - set as type 8e

$ fdisk /dev/sdb

Dump out the file system listing

$ fdisk -l

Create a new physical volume for the newly added disk - /dev/sdb1

$ pvcreate /dev/sdb1

Show the existing volume groups

vgscan

Extend the existing volume group - vg00 - to include the newly added disk - /dev/sdb1

$ vgextend vg00 /dev/sdb1

Show the existing mounted file systems

$ mount

Show the updated volume group - vg00

$ vgscan

Create a new logical volume

$ lvcreate -L 20G -n ibmVol vg00

Format the new logical volume as ext3

$ mkfs.ext3 /dev/vg00/ibmVol

Update the file system table - /etc/fstab

$ vi /etc/fstab

Mount all available file systems

$ mount -a

List mounted file systems

$ mount

No comments:

Note to self - use kubectl to query images in a pod or deployment

In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...