Showing posts with label lvextend. Show all posts
Showing posts with label lvextend. Show all posts

Monday, May 20, 2013

Redhat Linux - How to for GFS Filesystems

How-to for GFS Filesystems

You can use either of the following formats to create a clustered GFS file system:
#gfs_mkfs -p lock_dlm -t ClusterName:FSName -j Number BlockDevice
#mkfs -t gfs -p lock_dlm -t LockTableName -j NumberJournals BlockDevice

You can use either of the following formats to create a local GFS file system:
#gfs_mkfs -p lock_nolock -j NumberJournals BlockDevice
#mkfs -t gfs -p lock_nolock -j NumberJournals BlockDevice

At each node, mount the GFS file systems. For more information about mounting a GFS file
Command usage:
mount BlockDevice MountPoint
mount -o acl BlockDevice MountPoint
The -o aclmount option allows manipulating file ACLs. If a file system is mounted without the -o acl mount option, users are allowed to view ACLs (with getfacl), but are not allowed to set them (with setfacl).

Formatting the logical Volume
#gfs_mkfs -p lock_dlm -t alpha:mydata1 -j 8 /dev/vg01/lvol0

The gfs_jadd command must be run on mounted file system, but it only needs to be run on one node in the cluster. All the other nodes sense that the expansion has occurred.

#lvextend -L +80G /dev/vgcl_gfs_san_eos/vol01_lv
#gfs_grow -v /dev/vgcl_gfs_san_eos/vol01_lv /db/eospr1/vol01

Sunday, April 10, 2011

Extending the root filesystem in HP-UX

Solution:
This is assumed that you already have a online JFS installed on the HP box.

1.Assume / is /dev/vg00/lvol3 and it is a vxfs file system.

lets assume that /dev/vg00/lvol4 is the next logical volume on the disk.

2. Move lvol4 to the other disk in VG00 ,extend the root volume and the filesystem.
pvmove -n /dev/vg00/lvol4 /dev/dsk/
lvextend -L /dev/vg00/lvol3
fsadm -F vxfs -b 100M /

Your / filesystem must be a contiguous logical volume so you need to move the logical volume after it to another disk.

3.After you extended /dev/vg00/lvol3 you can now move lvol4 back to the root disk
pvmove -n /dev/vg00/lvol4 /dev/ /dev/

If you do not have a ONLINE JFS installed or have a HFS root filesystem ignite may be your best choice.

Ignite Procedure:

After the initial Ignite interface is loaded from your tape or Ignite server, you will have an opportunity to interact with the Ignite tabbed interface. Use the tab key to access the FileSystem tab and resize file systems as you wish. After each change, be sure to click
[Modify].

After you have resized your file systems, click [Go!].
Ignite will rebuild your boot disk using the new file system sizes, and restore your data from the recovery archive. Using make_net_recovery, this oftentimes takes less than 20 minutes!