Thursday, June 12, 2008

Dumb: Enable telnet client on Vista

You're not losing your marbles -- it really is gone, in the name of "reducing the attack surface" of Vista/Longhorn.

Well, sort of gone -- just gotta check a box under Programs & Feats.

http://blogs.msdn.com/shamit/archive/2006/07/07/659513.aspx

Clicky clicky!

Wednesday, June 11, 2008

Extend a Redhat LVM filesystem

Slightly simpler case than the earlier one ... this is just something I'd like to have spelled out for convenience, since I do it so rarely.

We want to fix this:
/dev/mapper/prod_dg-volOracle
4128448 3918544 192 100% /u01

And we have this:
[root@woogie /]# lvscan
...
ACTIVE '/dev/prod_dg/volOracle' [4.00 GB] inherit
[root@woogie /]# pvscan
...
PV /dev/sdb1 VG prod_dg lvm2 [273.22 GB / 139.44 GB free]


So we do this:
[root@woogie /]# lvextend --size 6G /dev/prod_dg/volOracle /dev/sdb1
Extending logical volume volOracle to 6.00 GB
Logical volume volOracle successfully resized


(lvextend usage: lvextend --size nG logical-path physical-path ... Use the paths from pvscan and lvscan, and absolute or relative sizes denoted by K,M,G, etc.)


[root@woogie /]# umount /u01
[root@woogie /]# resize2fs /dev/prod_dg/volOracle 6G
resize2fs 1.35 (28-Feb-2004)
Please run 'e2fsck -f /dev/prod_dg/volOracle' first.

[root@woogie /]# e2fsck -f /dev/prod_dg/volOracle
e2fsck 1.35 (28-Feb-2004)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/prod_dg/volOracle: 27925/524288 files (3.4% non-contiguous), 996131/1048576 blocks
[root@woogie /]# resize2fs /dev/prod_dg/volOracle 6G
resize2fs 1.35 (28-Feb-2004)
Resizing the filesystem on /dev/prod_dg/volOracle to 1572864 (4k) blocks.
The filesystem on /dev/prod_dg/volOracle is now 1572864 blocks long.

[root@woogie /]# mount /u01