1. uuid
1) vol_id
# sudo vol_id /dev/sda1
2) ls
# ls -l /dev/disk/by-uuid/
3) blkid
# blkid /dev/sda1
software raid
#mdadm -d /dev/md0
refer to: http://www.cyberciti.biz/faq/linux-finding-using-uuids-to-update-fstab/
2.major-minor number
1)
# cat /proc/partitions
major minor #blocks name
8 0 286513152 sda
8 1 104391 sda1
8 2 286390755 sda2
8 16 488243200 sdb
8 17 488239416 sdb1
8 32 976588800 sdc
8 33 976583286 sdc1
253 0 284327936 dm-0
253 1 2031616 dm-1
2)
# cat /sys/block/sda/sda1/dev
8:1
# cat /sys/block/sda/sda2/dev
8:2
2010年5月7日 星期五
linux block device uuid and major-minor number
訂閱:
張貼留言 (Atom)
文章分類
- 爬山 (3)
- 參考文章 (3)
- 鳥事 (5)
- 報稅 (1)
- AIX (2)
- ajax (1)
- BCB (3)
- C/C++ (2)
- cloudera (3)
- DISK (1)
- ftp (1)
- Fuse (2)
- gdb (2)
- hadoop (13)
- hdfs (8)
- HPC (2)
- hypertable (12)
- iOS (1)
- iscsi (1)
- JAVA (2)
- KFS (5)
- kickstart (1)
- KVM (2)
- LAMP (2)
- linux (2)
- Lion (1)
- LVM (2)
- mapreduce (3)
- mpi (3)
- mpich2 (4)
- msgpack (2)
- mysql (2)
- nfs (1)
- openmp (2)
- OS (1)
- OSX (2)
- others (5)
- PBS (1)
- performance_tuning (3)
- php (3)
- phplist (3)
- programming (27)
- REST (2)
- RHCA (6)
- rhel (13)
- rhel6 (4)
- scp (1)
- shell_scripts (2)
- snowleopard (2)
- Solaris (6)
- ssh (1)
- syslog (1)
- t-442-1 (4)
- torque (1)
- ubuntu (2)
- VNC (1)
- watercolor (5)
- windows (1)
- yum (1)
沒有留言:
張貼留言