1820173 Members
3901 Online
109620 Solutions
New Discussion юеВ

Re: mount point shrinked

 
joe_91
Super Advisor

mount point shrinked

we are running linux AS3 (no lvm - fdisk). we have a mount point which reads from df -k as follows

/dev/sdn1 253855 4167 236582 2% /backup

it seems this was created with 100G but it shows only 250 meg. i am familiar with lvm not sure how to troubleshoot this. how can i get back the 100g which was allocated to this
?

Thanks

Joe
7 REPLIES 7
Stuart Browne
Honored Contributor

Re: mount point shrinked

sdn? Attached to a SAN? Has anybody been messing with the storage?
One long-haired git at your service...
joe_91
Super Advisor

Re: mount point shrinked

is there any way i can troubleshoot this?

THanks

Joe
George Liu_4
Trusted Contributor

Re: mount point shrinked

please post the output of dmesg first.
joe_91
Super Advisor

Re: mount point shrinked

i have attached the dmesg..other thing is from df -k /boot and /backup on same disk..so confused..pl help

root# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdv5 6144304 245256 5586936 5% /
/dev/sdv1 253855 15794 224955 7% /boot
/dev/sdv8 2064192 547496 1411840 28% /home
/dev/sdv2 24238492 3507864 19499372 16% /opt
/dev/sdv9 1157028 297024 801228 28% /opt/monitor
none 4099276 0 4099276 0% /dev/shm
/dev/sdv7 3047936 55548 2837560 2% /tmp
/dev/sdv3 8256952 2759820 5077704 36% /usr
/dev/sdv6 4128432 184208 3734512 5% /var
/dev/sdu1 1032072 16456 963188 2% /db2/ICMNLSDB
/dev/sdb1 10317828 32852 9760860 1% /db2/ICMNLSDB/db2data1
/dev/sdc1 10317828 32852 9760860 1% /db2/ICMNLSDB/db2data2
/dev/sdd1 5154852 32840 4860156 1% /db2/ICMNLSDB/db2temp1
/dev/sde1 2063504 32832 1925852 2% /db2/ICMNLSDB/log_dir
/dev/sdf1 10317828 106864 9686848 2% /db2/ICMNLSDB/log_archive
/dev/sdg1 1032072 16428 963216 2% /db2/ICMNLSDB/log_retrieve
/dev/sdh1 1032072 23316 956328 3% /db2/ICMNLSDB/db2dump
/dev/sdi1 1032072 305728 673916 32% /db2/db2inst1
/dev/sds1 1032072 16428 963216 2% /tracefiles
/dev/sdt1 1032072 16456 963188 2% /db2/RMDB
/dev/sdk1 10317828 32860 9760852 1% /db2/RMDB/db2data1
/dev/sdl1 10317828 32860 9760852 1% /db2/RMDB/db2data2
/dev/sdm1 5154852 32828 4860168 1% /db2/RMDB/db2temp1
/dev/sdn1 2063504 32832 1925852 2% /db2/RMDB/log_dir
/dev/sdo1 10317828 91232 9702480 1% /db2/RMDB/log_archive
/dev/sdp1 1032072 16428 963216 2% /db2/RMDB/log_retrieve
/dev/sdq1 1032072 16428 963216 2% /db2/RMDB/db2dump
/dev/sdr1 1032072 28056 951588 3% /db2/db2inst2
/dev/sdv1 253855 15794 224955 7% /backup
Stuart Browne
Honored Contributor

Re: mount point shrinked

Ok, lets look at this shall we:

dmesg:

SCSI device sdn: 4194304 512-byte hdwr sectors (2147 MB)

It sayt's 'sdn' is 2GB, with 1 partition (sdn1).

'df -k' output:
/dev/sdn1 2063504 32832 1925852 2% /db2/RMDB/log_dir

This says that 'sdn1' is 2GB mounted to '/db2/RMDB/log_dir'. Sounds good.


dmesg:

Attached scsi disk sdv at scsi2, channel 0, id 0, lun 0
SCSI device sdv: 860239872 512-byte hdwr sectors (440443 MB)

'df -k' output (continued):

/dev/sdv1 253855 15794 224955 7% /backup
/dev/sdv1 253855 15794 224955 7% /boot

The locally-attached (read: internal) 440GB disk has 9 partitions (plus 1 extended).

'sdv' appears to be laid out as follows:

/dev/sdv1 - /boot (also as /backup ?!)
/dev/sdv2 - /opt
/dev/sdv3 - /usr
/dev/sdv4 - Extended partition which has:
/dev/sdv5 - / (root)
/dev/sdv6 - /var
/dev/sdv7 - /tmp
/dev/sdv8 - /home
/dev/sdv9 - /opt/monitor
/dev/sdv10 - Unknown, assumably swap?

Tallied up, we have 'sdv' using 48GB, with a 2GB swap partition somewhere (possibly sdv10).

So.. I'm lost as to what's supposed to be where. The 'sdn1' in your original post isn't the same '/backup' partition (which matches 'sdv1' perfectly) as you've shown us here.

You've got a few hundred GB of local space unallocated, or not in use.

And you've got a mountain of external mounts of which none approach 100GB's in size.

What do you have here? Are your mount-names moving about? are you mouting by volume-label? You've got an 'sdj' which isn't mounted anywhere, what's that?
One long-haired git at your service...
joe_91
Super Advisor

Re: mount point shrinked

if have created a new volume for 100G in /dev/sdv11 but got this error message

/dev/sdv1 * 1 128 262128 83 Linux
/dev/sdv2 129 12152 24625152 83 Linux
/dev/sdv3 12153 16248 8388608 83 Linux
/dev/sdv4 16249 210019 396843008 f Win95 Ext'd (LBA)
/dev/sdv5 16249 19296 6242288 83 Linux
/dev/sdv6 19297 21344 4194288 83 Linux
/dev/sdv7 21345 22856 3096560 83 Linux
/dev/sdv8 22857 23880 2097136 83 Linux
/dev/sdv9 23881 24454 1175536 83 Linux
/dev/sdv10 24455 25454 2047984 82 Linux swap
/dev/sdv11 25455 74283 100001776 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

i unmounted the /backup and then created this new partitiol, not sure what is wrong?

Thanks

Joe
George Liu_4
Trusted Contributor

Re: mount point shrinked

If I read right, you are now testing sdv1. That's OK. On your last post, had you reboot the system and let the kernel update the fs?