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
All times are GMT -4. The time now is 03:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy