Sponsored Content
Operating Systems Linux Red Hat Moving filesystems into LVM - query. Post 302925795 by gull04 on Wednesday 19th of November 2014 11:01:58 AM
Old 11-19-2014
Moving filesystems into LVM - query.

Hi Guys,

Looking for advice really this time, I have just completed building a server. As it was a fresh build and was just a standard RHEL 6.6 server which would run TSM I just went for partitioning up the disks as I built it.

The disks are 3 500Gb disks in a RAID5 configuration giving just under 1Tb of useable space. The build went smoothly and I built the filesystems as per the provided specification, but my european colleagues forgot to mention the fact that they wanted the disks under the control of LVM - I've found a lot of stuff about LVM and converting to it.

here is the output of a df;

Code:
[root@ekbtsmprod01 ~]# df -k
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda7       32896880 1965224  29253936   7% /
tmpfs            4027048       0   4027048   0% /dev/shm
/dev/sda1         245679   35769    196803  16% /boot
/dev/sda8       32896880   49080  31170080   1% /home
/dev/sda9       32896880   49088  31170072   1% /opt
/dev/sda12       8125880   18420   7688032   1% /opt/tivoli
/dev/sda14       3997376    8220   3779444   1% /tmp
/dev/sda5       65924860   53064  62516356   1% /tsm/activelogs
/dev/sda6       65924860   53064  62516356   1% /tsm/archivelogs
/dev/sda2      264092676   60504 250610400   1% /tsm/bdd
/dev/sda3      264092676   60504 250610400   1% /tsm/cache
/dev/sda15       3997376    8184   3779480   1% /tsm/tsminst3
/dev/sda13       8125880   18548   7687904   1% /usr/local
/dev/sda10      32896880  119184  31099976   1% /var
[root@ekbtsmprod01 ~]# cat /etc/vfstab
cat: /etc/vfstab: No such file or directory
[root@ekbtsmprod01 ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Thu Nov 13 11:09:54 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=07ea50a6-db68-4254-b006-0189d2061d1d /                       ext4    defaults        1 1
UUID=b896b0a9-1307-4c34-b96a-63cd2e6a1748 /boot                   ext4    defaults        1 2
UUID=4f672fc5-4480-4146-b6ce-5adc6bfd7dc3 /home                   ext4    defaults        1 2
UUID=f6dc1b22-3f2c-4efa-ae48-fb1e20e4603b /opt                    ext4    defaults        1 2
UUID=025a94dd-b539-420f-ad5b-e3c4f51316dc /opt/tivoli             ext4    defaults        1 2
UUID=39c2c9e7-d51f-4058-9327-66d307d7c675 /tmp                    ext4    defaults        1 2
UUID=ff9a49a8-fe66-4f2d-98ee-c8b86d7a1d30 /tsm/activelogs         ext4    defaults        1 2
UUID=b912c52f-a406-477f-8bf3-7b11ea2dc929 /tsm/archivelogs        ext4    defaults        1 2
UUID=5024bc07-b902-4e9b-bc9d-948a93c2c9bc /tsm/bdd                ext4    defaults        1 2
UUID=40f6c377-4b88-4d0b-92d7-bd97ef4e7a18 /tsm/cache              ext4    defaults        1 2
UUID=09ccecf1-cb9b-4c52-b650-dcd3c833eaa8 /tsm/tsminst3           ext4    defaults        1 2
UUID=72a5e0a3-5b7f-4a14-a040-cc4481cf7df6 /usr/local              ext4    defaults        1 2
UUID=650846db-c9d0-4ac4-85cd-3f3f69e97122 /var                    ext4    defaults        1 2
UUID=88dbb4ef-864b-4f62-9073-610411c9da00 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
[root@ekbtsmprod01 ~]#

Does anyone have any thoughts on the best way forward with this - I have about 130Gb unalloacted on the RAD5 set.

Regards

Dave
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Filesystems

my partner change the server's ip address and now i can't to mount the oracle's filesystem, what i do? i don't want to reinstall Unix. My unix is SCO UNIX 5.0.5 (9 Replies)
Discussion started by: marun
9 Replies

2. Shell Programming and Scripting

Filesystems GT 95%

Hi How can I only print the file systems that are more than 95% full. I used the df -k output and tried to check for each file system and then print only the ones that meet the criteria... But my solution seems cloodgie ... (3 Replies)
Discussion started by: YS2002
3 Replies

3. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

4. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

5. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

6. Shell Programming and Scripting

Filesystems using more than 75% capacity

i need to write a shell script for printing the list of filesystems whose disk utilization is more than 75%...i tried using df -h along with awk but cud'nt make the combination work.....:wall: when we do df -h then the filesystems which are using more than 75% capacity shud be printed according to... (11 Replies)
Discussion started by: xtatic
11 Replies

7. Shell Programming and Scripting

filesystems > 70%

I need a scrip that will show me the filesystems that are greater than 70%...but not sure how to filter using the df -h | grep Thank you for your help!! (6 Replies)
Discussion started by: eponcedeleonc
6 Replies

8. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

9. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

10. AIX

FileSystems under HACMP

Dear Fellows, I'm now working under a HACMP Cluster (version 7.1) with 2 nodes (Node1 active / Node2 passive), and 1 Resource Group on active node (Node1), which is UNMANAGED for boths nodes. So, all VG Data are on Node1. Then I had a JFS2 FileSystem full (located on one of these VG Data... (8 Replies)
Discussion started by: LoLo92
8 Replies
FSTAB(5)                                                           File Formats                                                           FSTAB(5)

NAME
fstab - static information about the filesystems SYNOPSIS
/etc/fstab DESCRIPTION
The file fstab contains descriptive information about the filesystems the system can mount. fstab is only read by programs, and not writ- ten; it is the duty of the system administrator to properly create and maintain this file. The order of records in fstab is important because fsck(8), mount(8), and umount(8) sequentially iterate through fstab doing their thing. Each filesystem is described on a separate line. Fields on each line are separated by tabs or spaces. Lines starting with '#' are com- ments. Blank lines are ignored. The following is a typical example of an fstab entry: LABEL=t-home2 /home ext4 defaults,auto_da_alloc 0 2 The first field (fs_spec). This field describes the block special device or remote filesystem to be mounted. For ordinary mounts, it will hold (a link to) a block special device node (as created by mknod(8)) for the device to be mounted, like `/dev/cdrom' or `/dev/sdb7'. For NFS mounts, this field is <host>:<dir>, e.g., `knuth.aeb.nl:/'. For filesystems with no storage, any string can be used, and will show up in df(1) output, for example. Typical usage is `proc' for procfs; `mem', `none', or `tmpfs' for tmpfs. Other special filesystems, like udev and sysfs, are typically not listed in fstab. LABEL=<label> or UUID=<uuid> may be given instead of a device name. This is the recommended method, as device names are often a coincidence of hardware detection order, and can change when other disks are added or removed. For example, `LABEL=Boot' or `UUID=3e6be9de-8139-11d1-9106-a43f08d823a6'. (Use a filesystem-specific tool like e2label(8), xfs_admin(8), or fatlabel(8) to set LABELs on filesystems). It's also possible to use PARTUUID= and PARTLABEL=. These partitions identifiers are supported for example for GUID Partition Table (GPT). See mount(8), blkid(8) or lsblk(8) for more details about device identifiers. Note that mount(8) uses UUIDs as strings. The string representation of the UUID should be based on lower case characters. The second field (fs_file). This field describes the mount point (target) for the filesystem. For swap partitions, this field should be specified as `none'. If the name of the mount point contains spaces or tabs these can be escaped as `40' and '11' respectively. The third field (fs_vfstype). This field describes the type of the filesystem. Linux supports many filesystem types: ext4, xfs, btrfs, f2fs, vfat, ntfs, hfsplus, tmpfs, sysfs, proc, iso9660, udf, squashfs, nfs, cifs, and many more. For more details, see mount(8). An entry swap denotes a file or partition to be used for swapping, cf. swapon(8). An entry none is useful for bind or move mounts. More than one type may be specified in a comma-separated list. mount(8) and umount(8) support filesystem subtypes. The subtype is defined by '.subtype' suffix. For example 'fuse.sshfs'. It's recommended to use subtype notation rather than add any prefix to the first fstab field (for example 'sshfs#example.com' is depre- cated). The fourth field (fs_mntops). This field describes the mount options associated with the filesystem. It is formatted as a comma-separated list of options. It contains at least the type of mount (ro or rw), plus any additional options appropriate to the filesystem type (including performance-tuning options). For details, see mount(8) or swapon(8). Basic filesystem-independent options are: defaults use default options: rw, suid, dev, exec, auto, nouser, and async. noauto do not mount when "mount -a" is given (e.g., at boot time) user allow a user to mount owner allow device owner to mount comment or x-<name> for use by fstab-maintaining programs nofail do not report errors for this device if it does not exist. The fifth field (fs_freq). This field is used by dump(8) to determine which filesystems need to be dumped. Defaults to zero (don't dump) if not present. The sixth field (fs_passno). This field is used by fsck(8) to determine the order in which filesystem checks are done at boot time. The root filesystem should be specified with a fs_passno of 1. Other filesystems should have a fs_passno of 2. Filesystems within a drive will be checked sequentially, but filesystems on different drives will be checked at the same time to utilize parallelism available in the hardware. Defaults to zero (don't fsck) if not present. NOTES
The proper way to read records from fstab is to use the routines getmntent(3) or libmount. The keyword ignore as a filesystem type (3rd field) is no longer supported by the pure libmount based mount utility (since util-linux v2.22). FILES
/etc/fstab, <fstab.h> SEE ALSO
getmntent(3), fs(5), findmnt(8), mount(8), swapon(8) HISTORY
The ancestor of this fstab file format appeared in 4.0BSD. AVAILABILITY
This man page is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/. util-linux February 2015 FSTAB(5)
All times are GMT -4. The time now is 05:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy